Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyPairAggregate models.AggregateType = "key_pair" KeyPairAdded models.EventType = "key_pair.added" )
View Source
const (
KeyPairVersion = "v1"
)
Variables ¶
This section is empty.
Functions ¶
func KeyPairToModel ¶
func KeyToModel ¶
Types ¶
type Key ¶
type Key struct { Key *crypto.CryptoValue `json:"key"` Expiry time.Time `json:"expiry"` }
func KeyFromModel ¶
type KeyPair ¶
type KeyPair struct { es_models.ObjectRoot Usage int32 `json:"usage"` Algorithm string `json:"algorithm"` PrivateKey *Key `json:"privateKey"` PublicKey *Key `json:"publicKey"` }
func KeyPairFromModel ¶
Click to show internal directories.
Click to hide internal directories.