Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) Attest ¶
func (a *Agent) Attest(ctx context.Context, req message.RequestAttestation) (message.ResponseAttestation, error)
type Config ¶
type Config struct {
Attestation map[string]ConfigAttestation `json:"attestation" yaml:"attestation"`
}
func (*Config) DefaultAttestationConfig ¶
func (c *Config) DefaultAttestationConfig() (string, *ConfigAttestation)
type ConfigAttestation ¶
type ConfigAttestation struct { ExpiresAfter time.Duration `json:"expires_after" yaml:"expires_after"` Template ConfigTemplate `json:"template" yaml:"template"` PrivateKeys map[string]ConfigPrivateKey `json:"private_keys" yaml:"private_keys"` }
func (*ConfigAttestation) DefaultPrivateKey ¶
func (c *ConfigAttestation) DefaultPrivateKey() (string, *ConfigPrivateKey)
type ConfigPrivateKey ¶
type ConfigPrivateKey struct { NotAfter time.Time `json:"not_after" yaml:"not_after"` File struct { Path string `json:"path" yaml:"path"` Format string `json:"format" yaml:"format"` Encoding string `json:"encoding" yaml:"encoding"` } `json:"file" yaml:"file"` KMS string `json:"aws_kms" yaml:"aws_kms"` }
type ConfigTemplate ¶
Click to show internal directories.
Click to hide internal directories.