option

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 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"

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

	// 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"

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

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

Abort adds the AbortFlag to the provided flag set.

func Alias added in v0.5.0

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

Alias adds the AliasFlag to the provided flag set.

func Aliases added in v0.5.0

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

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

func AsKubernetesResources added in v0.6.0

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

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

func Claims added in v0.9.0

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

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

func Description added in v0.6.0

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

Description adds the DescriptionFlag to the provided flag set.

func DownstreamFrom added in v0.8.0

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

DownstreamFrom adds the DownstreamFromFlag to the provided flag set.

func ExactArgs added in v0.2.0

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 added in v0.5.0

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

FreightAlias adds the FreightAliasFlag to the provided flag set.

func Git added in v0.5.0

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

Git adds the GitFlag to the provided flag set.

func Helm added in v0.5.0

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

Helm adds the HelmFlag to the provided flag set.

func Image added in v0.5.0

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 added in v0.5.0

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

InteractivePassword adds the InteractivePasswordFlag to the provided flag set.

func MaximumNArgs added in v0.7.0

func MaximumNArgs(n int) cobra.PositionalArgs

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

func MinimumNArgs added in v0.2.0

func MinimumNArgs(n int) cobra.PositionalArgs

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

func Name added in v0.5.0

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

Name adds the NameFlag to the provided flag set.

func Names added in v0.5.0

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

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

func NewAlias added in v0.5.0

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

NewAlias adds the NewAliasFlag to the provided flag set.

func NoArgs added in v0.5.0

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

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

func NoHeaders added in v0.6.0

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

NoHeaders adds the NoHeadersFlag to the provided flag set.

func OldAlias added in v0.5.0

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

OldAlias adds the OldAliasFlag to the provided flag set.

func Origins added in v0.8.0

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

Origins adds the OriginsFlag to the provided flag set.

func Password added in v0.5.0

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

Password adds the PasswordFlag to the provided flag set.

func Project added in v0.3.0

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 added in v0.5.0

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

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

func Regex added in v0.5.0

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

Regex adds the RegexFlag to the provided flag set.

func RepoURL added in v0.5.0

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

RepoURL adds the RepoURLFlag to the provided flag set.

func ResourceName added in v0.6.0

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

ResourceName adds the ResourceNameFlag to the provided flag set.

func ResourceType added in v0.6.0

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

ResourceType adds the ResourceTypeFlag to the provided flag set.

func Role added in v0.6.0

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

Role adds the RoleFlag to the provided flag set.

func Stage added in v0.4.0

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

Stage adds the StageFlag to the provided flag set.

func Type added in v0.5.0

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

Type adds the TypeFlag to the provided flag set.

func Username added in v0.5.0

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

Username adds the UsernameFlag to the provided flag set.

func Verbs added in v0.6.0

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

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

func Wait added in v0.4.0

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