surveyutils

package
v1.12.0-beta29 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 19 Imported by: 15

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 AddAuthConfigFlagsInteractive added in v1.0.0

func AddAuthConfigFlagsInteractive(ac *options.InputAuthConfig) error

func AddRouteFlagsInteractive

func AddRouteFlagsInteractive(opts *options.Options) error

func AddSettingsExtAuthFlagsInteractive added in v0.18.42

func AddSettingsExtAuthFlagsInteractive(opts *options.OIDCSettings) error

func AddUpstreamFlagsInteractive

func AddUpstreamFlagsInteractive(ctx context.Context, upstream *options.InputUpstream) error

func AddUpstreamGroupFlagsInteractive added in v0.18.1

func AddUpstreamGroupFlagsInteractive(ctx context.Context, upstreamGroup *options.InputUpstreamGroup) error

func AddVirtualServiceFlagsInteractive

func AddVirtualServiceFlagsInteractive(vs *options.InputVirtualService) error

func EnsureInteractiveNamespace added in v0.13.12

func EnsureInteractiveNamespace(ctx context.Context, 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 added in v0.13.12

func EnsureMetadataSurvey(ctx context.Context, 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(ctx context.Context, namespace *string) error

func MetadataSurvey

func MetadataSurvey(ctx context.Context, 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