...
1 package backend
2
3 import (
4 "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
5 "k8s.io/apimachinery/pkg/runtime/schema"
6
7 "github.com/redhat-developer/odo/pkg/binding/asker"
8 )
9
10 type AddBindingBackend interface {
11
12
13 SelectNamespace(flags map[string]string) (string, error)
14
15 Validate(flags map[string]string, withDevfile bool) error
16
17
18 SelectWorkloadInstance(workloadName string) (string, schema.GroupVersionKind, error)
19
20
21 SelectServiceInstance(serviceName string, serviceMap map[string]unstructured.Unstructured) (string, error)
22
23 AskBindingName(defaultName string, flags map[string]string) (string, error)
24
25 AskBindAsFiles(flags map[string]string) (bool, error)
26
27 AskNamingStrategy(flags map[string]string) (string, error)
28
29 SelectCreationOptions(flags map[string]string) ([]asker.CreationOption, error)
30
31 AskOutputFilePath(flags map[string]string, defaultValue string) (string, error)
32 }
33
View as plain text