option

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AliasFlag is the flag name for the alias flag.
	AliasFlag = "alias"
	// AliasShortFlag is the short flag name for the alias flag.
	AliasShortFlag = "a"

	// AsKubernetesResourcesFlag is the flag name for the as-kubernetes-resources
	// flag.
	AsKubernetesResourcesFlag = "as-kubernetes-resources"
	// AsKubernetesResourcesShortFlag is the short flag name for the
	// as-kubernetes-resources flag.
	AsKubernetesResourcesShortFlag = "k"

	// ClaimFlag is a flag name for the claim flag.
	ClaimFlag = "claim"

	// ContainerFlag is the flag name for the container flag.
	ContainerFlag = "container"

	// FilenameFlag is the flag name for the filename flag.
	FilenameFlag = "filename"
	// FilenameShortFlag is the short flag name for the filename flag.
	FilenameShortFlag = "f"

	// FreightFlag is the flag name for the freight flag.
	FreightFlag = "freight"

	// FreightAliasFlag is the flag name for the freight-alias flag.
	FreightAliasFlag = "freight-alias"

	// GitFlag is the flag name for the git flag.
	GitFlag = string(credentials.TypeGit)

	// HelmFlag is the flag name for the helm flag.
	HelmFlag = string(credentials.TypeHelm)

	// ImageFlag is the flag name for the image flag.
	ImageFlag = string(credentials.TypeImage)

	// InsecureTLSFlag is the flag name for the insecure-tls flag.
	InsecureTLSFlag = "insecure-skip-tls-verify"

	// InteractivePasswordFlag is the flag name for the interactive-password flag.
	InteractivePasswordFlag = "interactive-password"

	// MetricFlag is the flag name for the metric flag.
	MetricFlag = "metric"

	// NameFlag is the flag name for the name flag.
	NameFlag = "name"

	// DescriptionFlag is the flag name for the description flag.
	DescriptionFlag = "description"

	// NewAliasFlag is the flag name for the new-alias flag.
	NewAliasFlag = "new-alias"

	// NoHeadersFlag is the flag name for the no-headers flag.
	NoHeadersFlag = "no-headers"

	// OldAliasFlag is the flag name for the old-alias flag.
	OldAliasFlag = "old-alias"

	// OriginFlag is the flag name for the origin flag.
	OriginFlag = "origin"

	// PasswordFlag is the flag name for the password flag.
	PasswordFlag = "password"

	// ProjectFlag is the flag name for the project flag.
	ProjectFlag = "project"
	// ProjectShortFlag is the short flag name for the project flag.
	ProjectShortFlag = "p"

	// RecursiveFlag is the flag name for the recursive flag.
	RecursiveFlag = "recursive"
	// RecursiveShortFlag is the short flag name for the recursive flag.
	RecursiveShortFlag = "R"

	// RegexFlag is the flag name for the regex flag.
	RegexFlag = "regex"

	// RepoURLFlag is the flag name for the repo-url flag.
	RepoURLFlag = "repo-url"

	// ResourceNameFlag is the flag name for the resource-name flag.
	ResourceNameFlag = "resource-name"

	// ResourceTypeFlag is the flag name for the resource-type flag.
	ResourceTypeFlag = "resource-type"

	// RoleFlag is the flag name for the role flag.
	RoleFlag = "role"

	// StageFlag is the flag name for the stage flag.
	StageFlag = "stage"

	// DownstreamFromFlag is the flag name for the downstream-from flag.
	DownstreamFromFlag = "downstream-from"

	// TypeFlag is the flag name for the type flag.
	TypeFlag = "type"

	// UsernameFlag is the flag name for the username flag.
	UsernameFlag = "username"

	// VerbFlag is the flag name for the verb flag.
	VerbFlag = "verb"

	// WaitFlag is the flag name for the wait flag.
	WaitFlag = "wait"

	// AbortFlag is the flag name for the abort flag.
	AbortFlag = "abort"
)

Variables

This section is empty.

Functions

func Abort

func Abort(fs *pflag.FlagSet, abort *bool, defaultAbort bool, usage string)

Abort adds the AbortFlag to the provided flag set.

func Alias

func Alias(fs *pflag.FlagSet, stage *string, usage string)

Alias adds the AliasFlag to the provided flag set.

func Aliases

func Aliases(fs *pflag.FlagSet, stage *[]string, usage string)

Aliases adds a multi-value AliasFlag to the provided flag set.

func AsKubernetesResources

func AsKubernetesResources(fs *pflag.FlagSet, asKubernetesResources *bool, usage string)

AsKubernetesResources adds the AsKubernetesResourcesFlag and AsKubernetesResourcesShortFlag to the provided flag set.

func Claims

func Claims(fs *pflag.FlagSet, claims *[]string, usage string)

Claims adds a multi-value ClaimFlag to the provided flag set.

func Container

func Container(fs *pflag.FlagSet, container *string, usage string)

func Description

func Description(fs *pflag.FlagSet, stage *string, usage string)

Description adds the DescriptionFlag to the provided flag set.

func DownstreamFrom

func DownstreamFrom(fs *pflag.FlagSet, downstreamFrom *string, usage string)

DownstreamFrom adds the DownstreamFromFlag to the provided flag set.

func ExactArgs

func ExactArgs(n int) cobra.PositionalArgs

ExactArgs is a wrapper around cobra.ExactArgs to additionally print usage string

func Filenames

func Filenames(fs *pflag.FlagSet, filenames *[]string, usage string)

Filenames adds the FilenameFlag and FilenameShortFlag to the provided flag set.

func Freight

func Freight(fs *pflag.FlagSet, freight *string, usage string)

Freight adds the FreightFlag to the provided flag set.

func FreightAlias

func FreightAlias(fs *pflag.FlagSet, stage *string, usage string)

FreightAlias adds the FreightAliasFlag to the provided flag set.

func Git

func Git(fs *pflag.FlagSet, git *bool, usage string)

Git adds the GitFlag to the provided flag set.

func Helm

func Helm(fs *pflag.FlagSet, helm *bool, usage string)

Helm adds the HelmFlag to the provided flag set.

func Image

func Image(fs *pflag.FlagSet, image *bool, usage string)

Image adds the ImageFlag to the provided flag set.

func InsecureTLS

func InsecureTLS(fs *pflag.FlagSet, insecure *bool)

InsecureTLS adds the InsecureTLSFlag to the provided flag set.

func InteractivePassword

func InteractivePassword(fs *pflag.FlagSet, changePasswordInteractively *bool, usage string)

InteractivePassword adds the InteractivePasswordFlag to the provided flag set.

func MaximumNArgs

func MaximumNArgs(n int) cobra.PositionalArgs

MaximumNArgs is a wrapper around cobra.MaximumNArgs to additionally print usage string

func Metric

func Metric(fs *pflag.FlagSet, metric *string, usage string)

Metric adds the MetricFlag to the provided flag set.

func MinimumNArgs

func MinimumNArgs(n int) cobra.PositionalArgs

MinimumNArgs is a wrapper around cobra.MinimumNArgs to additionally print usage string

func Name

func Name(fs *pflag.FlagSet, stage *string, usage string)

Name adds the NameFlag to the provided flag set.

func Names

func Names(fs *pflag.FlagSet, stage *[]string, usage string)

Names adds a multi-value NameFlag to the provided flag set.

func NewAlias

func NewAlias(fs *pflag.FlagSet, stage *string, usage string)

NewAlias adds the NewAliasFlag to the provided flag set.

func NoArgs

func NoArgs(cmd *cobra.Command, args []string) error

NoArgs is a wrapper around cobra.NoArgs to additionally print usage string

func NoHeaders

func NoHeaders(fs *pflag.FlagSet, noHeaders *bool)

NoHeaders adds the NoHeadersFlag to the provided flag set.

func OldAlias

func OldAlias(fs *pflag.FlagSet, stage *string, usage string)

OldAlias adds the OldAliasFlag to the provided flag set.

func Origins

func Origins(fs *pflag.FlagSet, origin *[]string, usage string)

Origins adds the OriginsFlag to the provided flag set.

func Password

func Password(fs *pflag.FlagSet, password *string, usage string)

Password adds the PasswordFlag to the provided flag set.

func Project

func Project(fs *pflag.FlagSet, project *string, defaultProject, usage string)

Project adds the ProjectFlag and ProjectShortFlag to the provided flag set.

func ReadManifests

func ReadManifests(recursive bool, filenames ...string) ([]byte, error)

ReadManifests reads Kubernetes manifests from local files or remote files via HTTP/S.

WARNING: This function should not be used with untrusted input!

func Recursive

func Recursive(fs *pflag.FlagSet, recursive *bool)

Recursive adds the RecursiveFlag and RecursiveShortFlag to the provided flag set.

func Regex

func Regex(fs *pflag.FlagSet, regex *bool, usage string)

Regex adds the RegexFlag to the provided flag set.

func RepoURL

func RepoURL(fs *pflag.FlagSet, repoURL *string, usage string)

RepoURL adds the RepoURLFlag to the provided flag set.

func ResourceName

func ResourceName(fs *pflag.FlagSet, resourceName *string, usage string)

ResourceName adds the ResourceNameFlag to the provided flag set.

func ResourceType

func ResourceType(fs *pflag.FlagSet, repoType *string, usage string)

ResourceType adds the ResourceTypeFlag to the provided flag set.

func Role

func Role(fs *pflag.FlagSet, role *string, usage string)

Role adds the RoleFlag to the provided flag set.

func Stage

func Stage(fs *pflag.FlagSet, stage *string, usage string)

Stage adds the StageFlag to the provided flag set.

func Type

func Type(fs *pflag.FlagSet, repoType *string, usage string)

Type adds the TypeFlag to the provided flag set.

func Username

func Username(fs *pflag.FlagSet, username *string, usage string)

Username adds the UsernameFlag to the provided flag set.

func Verbs

func Verbs(fs *pflag.FlagSet, verbs *[]string, usage string)

Verbs adds a multi-value VerbFlag to the provided flag set.

func Wait

func Wait(fs *pflag.FlagSet, wait *bool, defaultWait bool, usage string)

Wait adds the WaitFlag to the provided flag set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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