Documentation ¶
Index ¶
- Constants
- Variables
- func CreateBusyboxContract(env map[string]string) E.Either[error, C.RawMap]
- func CreateContract(env map[string]string) func(composeFolder string) E.Either[error, C.RawMap]
- func DefaultEncryption() ENC.Encryption
- func EncryptContract(encCert []byte) func(contract C.RawMap) E.Either[error, C.RawMap]
- func ValidateContract(contract C.RawMap) E.Either[error, C.RawMap]
- type Credential
- type Credentials
- type LogDNA
- type Logging
Constants ¶
View Source
const (
KEY_TARGET_CONTRACT_PUB_KEY_FILENAME = "TARGET_CONTRACT_PUB_KEY_FILENAME"
)
Variables ¶
View Source
var LoadPublicKeyFromEnv = F.Flow3( lookupCrt, E.FromOption[string](errors.OnNone("unable to locate the contract certificate from the environment variable [%s].", KEY_TARGET_CONTRACT_PUB_KEY_FILENAME)), E.Chain(readFile), )
LoadPublicKeyFromEnv locats the contract key from the environment and loads it
View Source
var ( // LoadRawContractFromYAML reads a contract from a YAML file LoadRawContractFromYAML = F.Flow2( readFile, E.Chain(C.ParseRawMapE), ) )
Functions ¶
func CreateBusyboxContract ¶
CreateBusyboxContract constructs the contract for the busybox image
func CreateContract ¶
CreateContract constructs the contract for a specified image
func DefaultEncryption ¶
func DefaultEncryption() ENC.Encryption
DefaultEncryption returns the default encryption implementation
func EncryptContract ¶
EncryptContract creates an encryption function on top of an encryption certificate that will encrypt and sign the contract. The signing key will be a temporary private key
Types ¶
type Credential ¶
type Credentials ¶
type Credentials = map[string]Credential
Click to show internal directories.
Click to hide internal directories.