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"` Signature string `json:"signature"` }
Identity object to hold container sealer identity information.
func FromReader ¶
FromReader extract identity instance from reader.
func New ¶
func New(random io.Reader, description string, generator PrivateKeyGeneratorFunc) (*Identity, []byte, error)
New identity from description.
func (*Identity) Decrypt ¶
func (i *Identity) Decrypt(ctx context.Context, t value.Transformer) (*key.JSONWebKey, error)
Decrypt private key with given transformer.
func (*Identity) HasPrivateKey ¶
HasPrivateKey returns true if identity as a wrapped private.
type PrivateKey ¶
type PrivateKey struct { Encoding string `json:"encoding,omitempty"` Content string `json:"content"` }
PrivateKey wraps encoded private and related informations.
type PrivateKeyGeneratorFunc ¶
Click to show internal directories.
Click to hide internal directories.