config

package
v1.26.25 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CliFlags = struct {
	OutputDir     cli.StringFlag
	DeletePrevDir cli.BoolFlag
	EncryptKey    cli.StringFlag
}{
	OutputDir: cli.StringFlag{
		Name:     "output-dir",
		Aliases:  []string{"o"},
		Usage:    "output directory to create",
		Required: true,
	},
	DeletePrevDir: cli.BoolFlag{
		Name:  "delete-previous-dir",
		Usage: "if to delete previous output directory",
		Value: false,
	},
	EncryptKey: cli.StringFlag{
		Name:  "secrets-encryption-key",
		Usage: "symmetric secrets encryption hex key for aes GCM (lower case 64 chars)",
	},
}

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	OutputDir             string
	DeletePrevDir         bool
	ExcludedResourceTypes []string
	SecretsEncryptKey     string
}

func GetDefaultAppConfig

func GetDefaultAppConfig() AppConfig

func (*AppConfig) FilterIncludedResources

func (config *AppConfig) FilterIncludedResources(resourceTypes []*k8s.ApiResourceType) []*k8s.ApiResourceType

func (*AppConfig) IncludeSecrets

func (config *AppConfig) IncludeSecrets() bool

func (*AppConfig) IsResourceIncluded

func (config *AppConfig) IsResourceIncluded(resourceType *k8s.ApiResourceType) bool

func (*AppConfig) Validate

func (config *AppConfig) Validate()

Jump to

Keyboard shortcuts

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