Documentation ¶
Index ¶
- Variables
- func AddRouteFlagsInteractive(opts *options.Options) error
- func AddUpstreamFlagsInteractive(upstream *options.InputUpstream) error
- func AddUpstreamGroupFlagsInteractive(upstreamGroup *options.InputUpstreamGroup) error
- func AddVirtualServiceFlagsInteractive(vs *options.InputVirtualService) error
- func EnsureInteractiveNamespace(namespace *string) error
- func EnsureMetadataSurvey(metadata *core.Metadata) error
- func EnsureResourceByName(message string, static bool, source string, target *resources.Resource, ...) error
- func InteractiveNamespace(namespace *string) error
- func MetadataSurvey(metadata *core.Metadata) error
- func RemoveRouteFlagsInteractive(opts *options.Options) error
- func ResourceSelectByName(message string, resources resources.ResourceList) (resources.ResourceList, error)
- func ResourceSelectByNamespace(resources resources.ResourceList) (resources.ResourceList, error)
- func ResourceSelectMultiByName(resources resources.ResourceList) (resources.ResourceList, error)
- func ResourceSelectMultiByNamespace(resources resources.ResourceList) (resources.ResourceList, error)
- func SelectRouteFromVirtualServiceInteractive(vs *gatewayv1.VirtualService, routePrompt string) (int, error)
- func SelectRouteInteractive(opts *options.Options, virtualServicePrompt, routePrompt string) (*gatewayv1.VirtualService, int, error)
- func SelectVirtualServiceInteractive(opts *options.Options) error
- func SelectVirtualServiceInteractiveWithPrompt(opts *options.Options, prompt string) (*gatewayv1.VirtualService, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var PromptInteractiveNamespace = "Please choose a namespace"
View Source
var PromptInteractiveResourceName = "name of the resource: "
Functions ¶
func AddUpstreamFlagsInteractive ¶
func AddUpstreamFlagsInteractive(upstream *options.InputUpstream) error
func AddUpstreamGroupFlagsInteractive ¶ added in v0.18.1
func AddUpstreamGroupFlagsInteractive(upstreamGroup *options.InputUpstreamGroup) error
func AddVirtualServiceFlagsInteractive ¶
func AddVirtualServiceFlagsInteractive(vs *options.InputVirtualService) error
func EnsureInteractiveNamespace ¶ added in v0.13.12
EnsureInteractiveNamespace checks the provided namespace and only prompts for input if the namespace is empty or the flag's default value
func EnsureMetadataSurvey ¶ added in v0.13.12
EnsureMetadataSurvey uses interactive prompts to gather any missing Metadata fields. If a field is not empty, it will keep that value and not produce the associated prompt. This allows users to set some values with flags and gather any missing values interactively.
func EnsureResourceByName ¶
func InteractiveNamespace ¶
func MetadataSurvey ¶
DEPRECATE - use EnsureMetadataSurvey
func ResourceSelectByName ¶
func ResourceSelectByName(message string, resources resources.ResourceList) (resources.ResourceList, error)
func ResourceSelectByNamespace ¶
func ResourceSelectByNamespace(resources resources.ResourceList) (resources.ResourceList, error)
func ResourceSelectMultiByName ¶
func ResourceSelectMultiByName(resources resources.ResourceList) (resources.ResourceList, error)
func ResourceSelectMultiByNamespace ¶
func ResourceSelectMultiByNamespace(resources resources.ResourceList) (resources.ResourceList, error)
func SelectRouteFromVirtualServiceInteractive ¶
func SelectRouteFromVirtualServiceInteractive(vs *gatewayv1.VirtualService, routePrompt string) (int, error)
func SelectRouteInteractive ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.