Documentation ¶
Index ¶
- func EnterServiceNameInteractively(defaultValue, promptText string, validateName validation.Validator) (serviceName string)
- func EnterServicePropertiesInteractively(svcPlan scv1beta1.ClusterServicePlan) (values map[string]string)
- func GetServicePlanNames(stringMap map[string]scv1beta1.ClusterServicePlan) (keys []string)
- func SelectClassInteractively(classesByCategory map[string][]scv1beta1.ClusterServiceClass) (class scv1beta1.ClusterServiceClass, serviceType string)
- func SelectPlanNameInteractively(plans map[string]scv1beta1.ClusterServicePlan, promptText string) (plan string)
- func ShouldOutputNonInteractiveEquivalent() bool
- func StyledOutput(text, style string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnterServiceNameInteractively ¶
func EnterServiceNameInteractively(defaultValue, promptText string, validateName validation.Validator) (serviceName string)
EnterServiceNameInteractively lets the user enter the name of the service instance to create, defaulting to the provided default value and specifying both the prompt text and validation function for the name
func EnterServicePropertiesInteractively ¶
func EnterServicePropertiesInteractively(svcPlan scv1beta1.ClusterServicePlan) (values map[string]string)
EnterServicePropertiesInteractively lets the user enter the properties specified by the provided plan if not already specified by the passed values
func GetServicePlanNames ¶
func GetServicePlanNames(stringMap map[string]scv1beta1.ClusterServicePlan) (keys []string)
GetServicePlanNames returns the service plan names included in the specified map
func SelectClassInteractively ¶
func SelectClassInteractively(classesByCategory map[string][]scv1beta1.ClusterServiceClass) (class scv1beta1.ClusterServiceClass, serviceType string)
SelectClassInteractively lets the user select target service class from possible options, first filtering by categories then by class name
func SelectPlanNameInteractively ¶
func SelectPlanNameInteractively(plans map[string]scv1beta1.ClusterServicePlan, promptText string) (plan string)
SelectPlanNameInteractively lets the user to select the plan name from possible options, specifying which text should appear in the prompt
func ShouldOutputNonInteractiveEquivalent ¶ added in v0.0.19
func ShouldOutputNonInteractiveEquivalent() bool
ShouldOutputNonInteractiveEquivalent asks the user if they want to output the equivalent non-interactive command line version of the interactively entered options
func StyledOutput ¶ added in v0.0.19
StyledOutput returns an ANSI color code to style the specified text accordingly, issuing a reset code when done using the https://github.com/mgutz/ansi#style-format format
Types ¶
This section is empty.