Documentation
¶
Index ¶
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" // DefaultClusterClientTimeout specifies the timeout for connecting to each cluster. DefaultClusterClientTimeout = 3 * time.Second )
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 )
Functions ¶
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.