state

package
v0.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: GPL-2.0 Imports: 11 Imported by: 0

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

func NewCleanCommand(factory cmd.Factory) *cobra.Command

NewCleanCommand creates and returns a new clean command

func NewCommand

func NewCommand(factory cmd.Factory) *cobra.Command

NewCommand returns a new instance of the command

func NewListCommand

func NewListCommand(factory cmd.Factory) *cobra.Command

NewListCommand creates and returns a new list 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

func (*CleanCommand) Run

func (o *CleanCommand) Run(ctx context.Context) error

Run implements the command

type Command

type Command struct {
	cmd.Factory
}

Command returns the cobra command

type ListCommand

type ListCommand struct {
	cmd.Factory
	// ControllerNamespace is the namespace the controller is running in
	ControllerNamespace string
	// Namespace is the namespace to list the configurations, defaults to all
	Namespace string
}

ListCommand is the options for the list command

func (*ListCommand) Run

func (o *ListCommand) Run(ctx context.Context) error

Run implements the command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL