surveyutils

package
v0.0.0-...-5a6645a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoneOfTheAbove = "None of the above"
)

Variables

View Source
var PromptInteractiveNamespace = "Please choose a namespace"
View Source
var PromptInteractiveResourceName = "name of the resource: "

Functions

func AddRouteFlagsInteractive

func AddRouteFlagsInteractive(opts *options.Options) error

func AddSettingsExtAuthFlagsInteractive

func AddSettingsExtAuthFlagsInteractive(opts *options.OIDCSettings) error

func AddUpstreamFlagsInteractive

func AddUpstreamFlagsInteractive(upstream *options.InputUpstream) error

func AddUpstreamGroupFlagsInteractive

func AddUpstreamGroupFlagsInteractive(upstreamGroup *options.InputUpstreamGroup) error

func AddVirtualServiceFlagsInteractive

func AddVirtualServiceFlagsInteractive(vs *options.InputVirtualService) error

func EnsureInteractiveNamespace

func EnsureInteractiveNamespace(namespace *string) error

EnsureInteractiveNamespace checks the provided namespace and only prompts for input if the namespace is empty or the flag's default value

func EnsureMetadataSurvey

func EnsureMetadataSurvey(metadata *core.Metadata) error

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 EnsureResourceByName(message string, static bool, source string, target *resources.Resource, resources resources.ResourceList) error

func InteractiveNamespace

func InteractiveNamespace(namespace *string) error

func MetadataSurvey

func MetadataSurvey(metadata *core.Metadata) error

DEPRECATE - use EnsureMetadataSurvey

func RemoveRouteFlagsInteractive

func RemoveRouteFlagsInteractive(opts *options.Options) error

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

func SelectRouteInteractive(opts *options.Options, virtualServicePrompt, routePrompt string) (*gatewayv1.VirtualService, int, error)

func SelectVirtualServiceInteractive

func SelectVirtualServiceInteractive(opts *options.Options) error

func SelectVirtualServiceInteractiveWithPrompt

func SelectVirtualServiceInteractiveWithPrompt(opts *options.Options, prompt string) (*gatewayv1.VirtualService, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL