Package asker
- Constants
- type Asker
- type CreationOption
- type ServiceInstancesNamespaceListOption
- type Survey
- func NewSurveyAsker() *Survey
- func (o *Survey) AskBindAsFiles() (bool, error)
- func (s *Survey) AskNamespace() (string, error)
- func (o *Survey) AskNamingStrategy() (string, error)
- func (o *Survey) AskOutputFilePath(defaultValue string) (string, error)
- func (s *Survey) AskServiceBindingName(defaultName string) (string, error)
- func (s *Survey) AskServiceInstance(serviceInstances []string) (string, error)
- func (s *Survey) AskWorkloadResourceName() (string, error)
- func (o *Survey) SelectCreationOptions() ([]CreationOption, error)
- func (s *Survey) SelectNamespace(options []string) (string, error)
- func (s *Survey) SelectNamespaceListOption() (ServiceInstancesNamespaceListOption, error)
- func (s *Survey) SelectNamingStrategy() (string, error)
- func (s *Survey) SelectWorkloadResource(options []string) (int, error)
- func (s *Survey) SelectWorkloadResourceName(names []string) (bool, string, error)
Package files
interface.go
survey_asker.go
Constants
const (
NamingStrategyCustom = "CUSTOM"
)
type Asker interface {
SelectNamespaceListOption() (ServiceInstancesNamespaceListOption, error)
AskNamespace() (string, error)
SelectNamespace(options []string) (string, error)
SelectWorkloadResource(options []string) (int, error)
SelectWorkloadResourceName(names []string) (back bool, selected string, err error)
SelectNamingStrategy() (string, error)
AskWorkloadResourceName() (string, error)
AskServiceInstance(serviceInstanceOptions []string) (string, error)
AskServiceBindingName(defaultName string) (string, error)
AskBindAsFiles() (bool, error)
AskNamingStrategy() (string, error)
SelectCreationOptions() ([]CreationOption, error)
AskOutputFilePath(defaultValue string) (string, error)
}
type CreationOption int
const (
CreateOnCluster CreationOption = iota
OutputToStdout
OutputToFile
)
type ServiceInstancesNamespaceListOption int
const (
CurrentNamespace ServiceInstancesNamespaceListOption = iota + 1
AllAccessibleNamespaces
)
type Survey struct{}
func NewSurveyAsker() *Survey
func (o *Survey) AskBindAsFiles() (bool, error)
func (s *Survey) AskNamespace() (string, error)
func (o *Survey) AskNamingStrategy() (string, error)
func (o *Survey) AskOutputFilePath(defaultValue string) (string, error)
func (s *Survey) AskServiceBindingName(defaultName string) (string, error)
func (s *Survey) AskServiceInstance(serviceInstances []string) (string, error)
func (s *Survey) AskWorkloadResourceName() (string, error)
func (o *Survey) SelectCreationOptions() ([]CreationOption, error)
func (s *Survey) SelectNamespace(options []string) (string, error)
func (s *Survey) SelectNamespaceListOption() (ServiceInstancesNamespaceListOption, error)
func (s *Survey) SelectNamingStrategy() (string, error)
func (s *Survey) SelectWorkloadResource(options []string) (int, error)
func (s *Survey) SelectWorkloadResourceName(names []string) (bool, string, error)