package config
import "github.com/containers/ocicrypt/config/keyprovider-config"
Index ¶
Constants ¶
const ENVVARNAME = "OCICRYPT_KEYPROVIDER_CONFIG"
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
Source Files ¶
- Version
- v1.2.0
- Published
- Jul 1, 2024
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 5 hours ago –
Tools for package owners.