Documentation ¶
Overview ¶
Package nitriding implements a lightweight framework to build networked Go applications that run in AWS Nitro Enclaves.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestKeys ¶ added in v1.1.0
RequestKeys asks a remote enclave to share its key material with us, which is then written to the provided variable.
This is only necessary if you intend to scale enclaves horizontally. If you will only ever run a single enclave, ignore this function.
Types ¶
type Config ¶
type Config struct { SOCKSProxy string FQDN string Port int UseACME bool Debug bool FdCur uint64 FdMax uint64 AppURL string }
Config represents the configuration of our enclave service.
type Enclave ¶
Enclave represents a service running inside an AWS Nitro Enclave.
func NewEnclave ¶
NewEnclave creates and returns a new enclave with the given config.
func (*Enclave) AddRoute ¶
func (e *Enclave) AddRoute(method, pattern string, handlerFn http.HandlerFunc)
AddRoute adds an HTTP handler for the given HTTP method and pattern.
func (*Enclave) KeyMaterial ¶ added in v1.1.0
KeyMaterial returns the key material or, if none was registered, an error.
func (*Enclave) SetKeyMaterial ¶ added in v1.1.0
SetKeyMaterial registers the enclave's key material (e.g., secret encryption keys) as being ready to be synchronized to other, identical enclaves. Note that the key material's underlying data structure must be marshallable to JSON.
This is only necessary if you intend to scale enclaves horizontally. If you will only ever run a single enclave, ignore this function.