option

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 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"

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

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

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

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

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

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

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

	// SubscribersOfFlag is the flag name for the subscribers-of flag.
	SubscribersOfFlag = "subscribers-of"

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

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

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

Variables

This section is empty.

Functions

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

func SubscribersOf(fs *pflag.FlagSet, subscribersOf *string, usage string)

SubscribersOf adds the SubscribersOfFlag 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 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