Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity struct {
APIVersion string `json:"@apiVersion"`
Kind string `json:"@kind"`
Timestamp time.Time `json:"@timestamp"`
Description string `json:"@description"`
Public string `json:"public"`
Private *PrivateKey `json:"private"`
}
Identity object to hold container sealer identity information.
func FromReader ¶
FromReader extract identity instance from reader.
func (*Identity) Decrypt ¶
func (i *Identity) Decrypt(ctx context.Context, t value.Transformer) (*JSONWebKey, error)
Decrypt private key with given transformer.
func (*Identity) HasPrivateKey ¶
HasPrivateKey returns true if identity as a wrapped private.
type JSONWebKey ¶
type JSONWebKey struct {
Kty string `json:"kty"`
Crv string `json:"crv"`
X string `json:"x"`
D string `json:"d"`
}
JSONWebKey holds internal container key attributes.
type PrivateKey ¶
PrivateKey wraps encoded private and related informations.
Click to show internal directories.
Click to hide internal directories.