Documentation ¶
Index ¶
- Constants
- func Alias(fs *pflag.FlagSet, stage *string, usage string)
- func Aliases(fs *pflag.FlagSet, stage *[]string, usage string)
- func AsKubernetesResources(fs *pflag.FlagSet, asKubernetesResources *bool, usage string)
- func Description(fs *pflag.FlagSet, stage *string, usage string)
- func DownstreamFrom(fs *pflag.FlagSet, downstreamFrom *string, usage string)
- func Emails(fs *pflag.FlagSet, emails *[]string, usage string)
- func ExactArgs(n int) cobra.PositionalArgs
- func Filenames(fs *pflag.FlagSet, filenames *[]string, usage string)
- func Freight(fs *pflag.FlagSet, freight *string, usage string)
- func FreightAlias(fs *pflag.FlagSet, stage *string, usage string)
- func Git(fs *pflag.FlagSet, git *bool, usage string)
- func Groups(fs *pflag.FlagSet, groups *[]string, usage string)
- func Helm(fs *pflag.FlagSet, helm *bool, usage string)
- func Image(fs *pflag.FlagSet, image *bool, usage string)
- func InsecureTLS(fs *pflag.FlagSet, insecure *bool)
- func InteractivePassword(fs *pflag.FlagSet, changePasswordInteractively *bool, usage string)
- func MaximumNArgs(n int) cobra.PositionalArgs
- func MinimumNArgs(n int) cobra.PositionalArgs
- func Name(fs *pflag.FlagSet, stage *string, usage string)
- func Names(fs *pflag.FlagSet, stage *[]string, usage string)
- func NewAlias(fs *pflag.FlagSet, stage *string, usage string)
- func NoArgs(cmd *cobra.Command, args []string) error
- func NoHeaders(fs *pflag.FlagSet, noHeaders *bool)
- func OldAlias(fs *pflag.FlagSet, stage *string, usage string)
- func Origins(fs *pflag.FlagSet, origin *[]string, usage string)
- func Password(fs *pflag.FlagSet, password *string, usage string)
- func Project(fs *pflag.FlagSet, project *string, defaultProject, usage string)
- func ReadManifests(recursive bool, filenames ...string) ([]byte, error)
- func Recursive(fs *pflag.FlagSet, recursive *bool)
- func Regex(fs *pflag.FlagSet, regex *bool, usage string)
- func RepoURL(fs *pflag.FlagSet, repoURL *string, usage string)
- func ResourceName(fs *pflag.FlagSet, resourceName *string, usage string)
- func ResourceType(fs *pflag.FlagSet, repoType *string, usage string)
- func Role(fs *pflag.FlagSet, role *string, usage string)
- func Stage(fs *pflag.FlagSet, stage *string, usage string)
- func Subs(fs *pflag.FlagSet, subs *[]string, usage string)
- func Type(fs *pflag.FlagSet, repoType *string, usage string)
- func Username(fs *pflag.FlagSet, username *string, usage string)
- func Verbs(fs *pflag.FlagSet, verbs *[]string, usage string)
- func Wait(fs *pflag.FlagSet, wait *bool, defaultWait bool, usage string)
Constants ¶
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" // EmailFlag is the flag name for the email flag. EmailFlag = "email" // 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) // GroupFlag is the flag name for the group flag. GroupFlag = "group" // 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" // SubFlag is the flag name for the sub flag. SubFlag = "sub" // 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" )
Variables ¶
This section is empty.
Functions ¶
func AsKubernetesResources ¶ added in v0.6.0
AsKubernetesResources adds the AsKubernetesResourcesFlag and AsKubernetesResourcesShortFlag to the provided flag set.
func Description ¶ added in v0.6.0
Description adds the DescriptionFlag to the provided flag set.
func DownstreamFrom ¶ added in v0.8.0
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 FreightAlias ¶ added in v0.5.0
FreightAlias adds the FreightAliasFlag to the provided flag set.
func InsecureTLS ¶
InsecureTLS adds the InsecureTLSFlag to the provided flag set.
func InteractivePassword ¶ added in v0.5.0
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 NoArgs ¶ added in v0.5.0
NoArgs is a wrapper around cobra.NoArgs to additionally print usage string
func Project ¶ added in v0.3.0
Project adds the ProjectFlag and ProjectShortFlag to the provided flag set.
func ReadManifests ¶
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
Recursive adds the RecursiveFlag and RecursiveShortFlag to the provided flag set.
func ResourceName ¶ added in v0.6.0
ResourceName adds the ResourceNameFlag to the provided flag set.
func ResourceType ¶ added in v0.6.0
ResourceType adds the ResourceTypeFlag to the provided flag set.
Types ¶
This section is empty.