config

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ENVVARNAME = "OCICRYPT_KEYPROVIDER_CONFIG"

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Path string   `json:"path,omitempty"`
	Args []string `json:"args,omitempty"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL