Documentation ¶
Index ¶
- Constants
- Variables
- func AddAuthConfigFlagsInteractive(ac *options.InputAuthConfig) error
- func AddRouteFlagsInteractive(opts *options.Options) error
- func AddSettingsExtAuthFlagsInteractive(opts *options.OIDCSettings) error
- func AddUpstreamFlagsInteractive(ctx context.Context, upstream *options.InputUpstream) error
- func AddUpstreamGroupFlagsInteractive(ctx context.Context, upstreamGroup *options.InputUpstreamGroup) error
- func AddVirtualServiceFlagsInteractive(vs *options.InputVirtualService) error
- func EnsureInteractiveNamespace(ctx context.Context, namespace *string) error
- func EnsureMetadataSurvey(ctx context.Context, metadata *core.Metadata) error
- func EnsureResourceByName(message string, static bool, source string, target *resources.Resource, ...) error
- func InteractiveNamespace(ctx context.Context, namespace *string) error
- func MetadataSurvey(ctx context.Context, 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 ¶
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 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
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 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.