Documentation ¶
Index ¶
- Constants
- Variables
- func AddAPIServerTimeout(cmd *cobra.Command)
- func AddClusters(cmd *cobra.Command)
- func AddContexts(cmd *cobra.Command)
- func AddOutputFormat(cmd *cobra.Command)
- func AddPath(cmd *cobra.Command)
- func AddSkipAPIServerCheck(cmd *cobra.Command)
- func AddSourceFormat(cmd *cobra.Command)
- func AllClusters() bool
Constants ¶
View Source
const ( // PathDefault is the default value of the path flag if unset. PathDefault = "." // SkipAPIServerFlag is the flag name for SkipAPIServer below. SkipAPIServerFlag = "no-api-server-check" // OutputYAML specifies exporting the output in YAML format. OutputYAML = "yaml" // OutputJSON specifies exporting the output in JSON format. OutputJSON = "json" // DefaultHydrationOutput specifies the default location to write the hydrated output. DefaultHydrationOutput = "compiled" )
Variables ¶
View Source
var ( // Contexts contains the list of .kubeconfig contexts that are targets of cross-cluster // commands. Contexts []string // Clusters contains the list of Cluster names (specified in clusters/) to perform an action on. Clusters []string // Path says where the Nomos directory is Path string // SkipAPIServer directs whether to try to contact the API Server for checks. SkipAPIServer bool // SourceFormat indicates the format of the Git repository. SourceFormat string // OutputFormat is the format of output. OutputFormat string // ClientTimeout is a flag value to specify how long to wait before timeout of client connection. ClientTimeout time.Duration // APIServerTimeout specifies the timeout for requests to the cluster API servers APIServerTimeout = restconfig.DefaultTimeout )
Functions ¶
func AddAPIServerTimeout ¶ added in v1.15.1
AddAPIServerTimeout adds the --api-server-timeout flag
func AddOutputFormat ¶
AddOutputFormat adds the --format flag.
func AddSkipAPIServerCheck ¶
AddSkipAPIServerCheck adds the --no-api-server-check flag.
func AddSourceFormat ¶
AddSourceFormat adds the --source-format flag.
func AllClusters ¶
func AllClusters() bool
AllClusters returns true if all clusters should be processed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.