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 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 ManifestsConfig ¶
type ManifestsConfig struct {
Dump bool `yaml:"dump" json:"dump"`
}
Click to show internal directories.
Click to hide internal directories.