Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyKeySetError = errors.New("KeySet is empty")
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// ID is unique identifier for the given (raw) key.
ID string `json:"id"`
// Raw is the key itself.
Raw string `json:"raw"`
// Priority allows easier and more graceful key rotation.
Priority KeyPriority `json:"priority"`
// CreatedAt represents the date the key was generated.
CreatedAt time.Time `json:"created_at"`
}
Key is the representation for a single key with its metadata.
type KeyPriority ¶
type KeyPriority uint8
KeyPriority is an indicator how a key should be handled by the KMS. 0 = no priority 1 = highest priority 255 = lowest priority
type KeySet ¶
type KeySet struct {
// Keys hold all keys.
Keys []Key
}
KeySet holds all the keys provided.
func FromString ¶
FromString initializes a KeySey from a JSON string.
Click to show internal directories.
Click to hide internal directories.