...
1
2
3 package asker
4
5 import (
6 "github.com/redhat-developer/odo/pkg/api"
7 "github.com/redhat-developer/odo/pkg/registry"
8 )
9
10
11 type Asker interface {
12
13 AskArchitectures(archs []string, selectedDefault []string) ([]string, error)
14
15
16
17 AskLanguage(langs []string) (back bool, result string, err error)
18
19
20
21 AskType(types registry.TypesWithDetails) (back bool, _ api.DevfileStack, _ error)
22
23
24
25 AskVersion(versions []api.DevfileStackVersion) (back bool, version string, _ error)
26
27
28
29 AskStarterProject(projects []string) (selected bool, _ int, _ error)
30
31
32 AskName(defaultName string) (string, error)
33
34
35 AskCorrect() (bool, error)
36
37 AskContainerName(containers []string) (string, error)
38
39
40 AskPersonalizeConfiguration(configuration ContainerConfiguration) (OperationOnContainer, error)
41
42
43 AskAddEnvVar() (string, string, error)
44
45
46 AskAddPort() (string, error)
47 }
48
49 type ContainerConfiguration struct {
50 Ports []string
51 Envs map[string]string
52 }
53
54 type OperationOnContainer struct {
55 Ops string
56 Kind string
57 Key string
58 }
59
60
61 type DevfileConfiguration map[string]ContainerConfiguration
62
View as plain text