Documentation ¶
Index ¶
Constants ¶
View Source
const ENVVARNAME = "OCICRYPT_KEYPROVIDER_CONFIG"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command describes the structure of command, it consist of path and args, where path defines the location of binary executable and args are passed on to the binary executable
type KeyProviderAttrs ¶
type KeyProviderAttrs struct { Command *Command `json:"cmd,omitempty"` Grpc string `json:"grpc,omitempty"` }
KeyProviderAttrs describes the structure of key provider, it defines the way of invocation to key provider
type OcicryptConfig ¶
type OcicryptConfig struct {
KeyProviderConfig map[string]KeyProviderAttrs `json:"key-providers"`
}
OcicryptConfig represents the format of an ocicrypt_provider.conf config file
func GetConfiguration ¶
func GetConfiguration() (*OcicryptConfig, error)
getConfiguration tries to read the configuration file at the following locations ${OCICRYPT_KEYPROVIDER_CONFIG} == "/etc/ocicrypt_keyprovider.yaml" If no configuration file could be found or read a null pointer is returned
Click to show internal directories.
Click to hide internal directories.