Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ComponentsOutputYaml is an option used to print the components in yaml format. ComponentsOutputYaml = "yaml" // ComponentsOutputText is an option used to print the components in text format. ComponentsOutputText = "text" )
View Source
const ( // RepositoriesOutputYaml is an option used to print the repository list in yaml format. RepositoriesOutputYaml = "yaml" // RepositoriesOutputText is an option used to print the repository list in text format. RepositoriesOutputText = "text" )
View Source
const Indentation = ` `
Variables ¶
View Source
var ( // ComponentsOutputs is a list of valid components outputs. ComponentsOutputs = []string{ComponentsOutputText, ComponentsOutputYaml} )
View Source
var ( // RepositoriesOutputs is a list of valid repository list outputs. RepositoriesOutputs = []string{RepositoriesOutputYaml, RepositoriesOutputText} )
View Source
var RootCmd = &cobra.Command{ Use: "clusterctl", SilenceUsage: true, Short: "clusterctl controls the lifecyle of a Cluster API management cluster", Long: LongDesc(` Get started with Cluster API using clusterctl to create a management cluster, install providers, and create templates for your workload cluster.`), PersistentPostRunE: func(cmd *cobra.Command, args []string) error { configClient, err := config.New(cfgFile) if err != nil { return err } output, err := newVersionChecker(configClient.Variables()).Check() if err != nil { return errors.Wrap(err, "unable to verify clusterctl version") } if len(output) != 0 { fmt.Fprintf(os.Stderr, "\033[33m%s\033[0m", output) } return nil }, }
Functions ¶
Types ¶
type ReleaseInfo ¶ added in v0.3.9
ReleaseInfo stores information about the release.
type VersionState ¶ added in v0.3.9
type VersionState struct { LastCheck time.Time LatestRelease ReleaseInfo }
VersionState stores the release info and the last time it was updated.
Click to show internal directories.
Click to hide internal directories.