Documentation
¶
Index ¶
- Constants
- func CredentialGraph(cmd *cobra.Command) error
- func FilesystemConfig(cmd *cobra.Command, opts FilesystemConfigOptions)
- func OCMConfig(cmd *cobra.Command) error
- func PluginManager(cmd *cobra.Command) error
- func VersionCheck(cmd *cobra.Command, currentVersion string)
- type FilesystemConfigOptions
Constants ¶
View Source
const (
// VersionCheckEnvVar is the environment variable that disables the version check when set to a truthy value.
VersionCheckEnvVar = "OCM_DISABLE_VERSION_CHECK"
)
Variables ¶
This section is empty.
Functions ¶
func CredentialGraph ¶
func FilesystemConfig ¶
func FilesystemConfig(cmd *cobra.Command, opts FilesystemConfigOptions)
FilesystemConfig sets up file system configuration entity.
func PluginManager ¶
func VersionCheck ¶ added in v0.7.0
VersionCheck starts an asynchronous version check and registers a cobra.OnFinalize callback to print the upgrade warning (if applicable) after command execution completes.
The check is skipped entirely when any opt-out mechanism is active or the binary has no build version set. This function is called from PersistentPreRunE, so it runs before every command.
Types ¶
type FilesystemConfigOptions ¶
Click to show internal directories.
Click to hide internal directories.