state

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: GPL-2.0 Imports: 14 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 NewGetCommand added in v0.4.10

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

NewGetCommand creates and returns a new get 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 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

func (*GetCommand) Run added in v0.4.10

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

Run implements the 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