plugin

package
v0.0.0-...-890e07e Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

Types

type Config

type Config struct {
	Kubernetes kube.Config `json:"kubernetes"`

	InitTemplates []string `json:"init_templates"`
	ConfigFiles   []string `json:"config_files"` // namespace:name:file, namespace:name:file
	Templates     []string `json:"templates"`
	Namespace     string   `json:"namespace"`
	Debug         bool     `json:"debug"`
	// contains filtered or unexported fields
}

func (*Config) BindEnvs

func (c *Config) BindEnvs()

func (*Config) GetConfigFiles

func (c *Config) GetConfigFiles() []ConfigFile

func (*Config) Parse

func (c *Config) Parse(configPath string, envPrefix string) error

func (*Config) Validate

func (c *Config) Validate(envs []string) error

type ConfigFile

type ConfigFile struct {
	Namespace string
	Name      string
	FilePath  string
	FileName  string
}

type Option

type Option struct {
	ConfigPath string
}

func (*Option) Config

func (o *Option) Config() *Config

Jump to

Keyboard shortcuts

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