Documentation ¶
Overview ¶
Package repository defines the api for the pub key stores
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct { // PublicKey contains the public key data PublicKey string // SAName is the optional GCP IAM service-account that has been associated. SAName string }
Key holds data + metadata of a public key entry
type PubKeyRepository ¶
type PubKeyRepository interface { // LookupKey retrieves the public key of a device from the repository. // An empty string return indicates that no key exists for the given identifier or // that the device is blocked. LookupKey(ctx context.Context, deviceID string) (*Key, error) PublishKey(ctx context.Context, deviceID, publicKey string) error }
PubKeyRepository defines the api for the pub key stores
Click to show internal directories.
Click to hide internal directories.