Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteToConfig ¶
func WriteToConfig(config KubeLockConfig) error
There might be a good way of doing this with viper, but this will do for now
Types ¶
type KubeLockConfig ¶
type KubeLockConfig struct { Contexts []KubeLockContexts `yaml:"contexts"` Profiles []KubeLockProfiles `yaml:"profiles"` DefaultProfile string `yaml:"defaultProfile"` UnlockTimeoutPeriod string `yaml:"unlockTimeoutPeriod"` }
type KubeLockContexts ¶
type KubeLockProfiles ¶
type KubeLockProfiles struct { Name string `yaml:"name"` BlockedVerbs []string `yaml:"blockedVerbs"` DeleteExceptions []KubeLockDeleteExceptions `yaml:"deleteExceptions"` }
type PlainFormatter ¶
type PlainFormatter struct { }
Click to show internal directories.
Click to hide internal directories.