Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsPGPImportError ¶
isPGPImportError asserts pgpImportError.
Types ¶
type SOPSEnv ¶
type SOPSEnv struct {
// contains filtered or unexported fields
}
func NewSOPSEnv ¶
func NewSOPSEnv(config SOPSEnvConfig) (*SOPSEnv, error)
NewSOPSEnv creates SOPS environment configurator, it works according to the below combinations.
User expects to run SOPS against his local default keychains for GPG and AGE: keysDir="" keysSource="local"
User expects to run SOPS against his custom keychains located under `path`: keysDir="path" keysSource="local"
User expects to run SOPS against Kubernetes-downloaded keys stored at tmp location: keysDir="" keysSource="kubernetes"
User expects to run SOPS against Kubernetes-downloaded keys stored under `path`: keysDir="path" keysSource="kubernetes"
func (*SOPSEnv) GetKeysDir ¶
type SOPSEnvConfig ¶
type SOPSEnvConfig struct { K8sClient kubernetes.Interface KeysDir string KeysSource string Logger micrologger.Logger }
Click to show internal directories.
Click to hide internal directories.