config

package
v0.0.2-0...-359623c Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Separator      = "="
	SetCommandName = "set"
	FieldNameTag   = "yaml"
	ReadonlyTag    = "readonly"
	DebugFlag      = "debug"
)
View Source
const (
	KubeConfigPathConfigName = "kube-configPath"
)

Variables

View Source
var (
	Config    ConfigStruct
	DebugMode bool

	ConfigFilePath string
)

Functions

func InitConfig

func InitConfig(cmd *cobra.Command) error

func WriteConfig

func WriteConfig(config *ConfigStruct) error

Types

type ConfigStruct

type ConfigStruct struct {
	Tap                 configStructs.TapConfig       `yaml:"tap" json:"tap"`
	Logs                configStructs.LogsConfig      `yaml:"logs" json:"logs"`
	Config              configStructs.ConfigConfig    `yaml:"config,omitempty" json:"config,omitempty"`
	Kube                KubeConfig                    `yaml:"kube" json:"kube"`
	DumpLogs            bool                          `yaml:"dumpLogs" json:"dumpLogs" default:"false"`
	HeadlessMode        bool                          `yaml:"headless" json:"headless" default:"false"`
	License             string                        `yaml:"license" json:"license" default:""`
	CloudLicenseEnabled bool                          `yaml:"cloudLicenseEnabled" json:"cloudLicenseEnabled" default:"true"`
	Scripting           configStructs.ScriptingConfig `yaml:"scripting" json:"scripting"`
	Manifests           ManifestsConfig               `yaml:"manifests,omitempty" json:"manifests,omitempty"`
	Timezone            string                        `yaml:"timezone" json:"timezone"`
}

func CreateDefaultConfig

func CreateDefaultConfig() ConfigStruct

func GetConfigWithDefaults

func GetConfigWithDefaults() (*ConfigStruct, error)

func (*ConfigStruct) ImagePullPolicy

func (config *ConfigStruct) ImagePullPolicy() v1.PullPolicy

func (*ConfigStruct) ImagePullSecrets

func (config *ConfigStruct) ImagePullSecrets() []v1.LocalObjectReference

func (*ConfigStruct) KubeConfigPath

func (config *ConfigStruct) KubeConfigPath() string

type KubeConfig

type KubeConfig struct {
	ConfigPathStr string `yaml:"configPath" json:"configPath"`
	Context       string `yaml:"context" json:"context"`
}

type ManifestsConfig

type ManifestsConfig struct {
	Dump bool `yaml:"dump" json:"dump"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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