Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigurationSecretRegex = regexp.MustCompile(
`^(tfstate-default|config|policy|cost)-(([a-z0-9]){8}-([a-z0-9]){4}-([a-z0-9]){4}-([a-z0-9]){4}-([a-z0-9]){12})$`,
)
ConfigurationSecretRegex is the regex for a configuration secret
View Source
var SecretPrefixes = []string{
"tfstate-default-",
"config-",
"policy-",
"cost-",
}
SecretPrefixes is a list of secret prefixes the controller uses
Functions ¶
func NewCleanCommand ¶
NewCleanCommand creates and returns a new clean command
func NewCommand ¶
NewCommand returns a new instance of the command
func NewGetCommand ¶ added in v0.4.10
NewGetCommand creates and returns a new get command
Types ¶
type CleanCommand ¶
type CleanCommand struct { cmd.Factory // ControllerNamespace is the namespace the controller is running in ControllerNamespace string // Force will force the deletion of the state Force bool }
CleanCommand is the options for the clean command
type GetCommand ¶ added in v0.4.10
type GetCommand struct { cmd.Factory // ControllerNamespace is the namespace the controller is running in ControllerNamespace string // Name is the name of the configuration to retrieve Name string // Namespace is the namespace to list the configurations, defaults to all Namespace string }
GetCommand is the options for the list command
Click to show internal directories.
Click to hide internal directories.