Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// MAPPING is the elastic mapping for the docker registry
MAPPING, _ = elastic.NewMapping(mappingString)
)
Functions ¶
Types ¶
type HostKey ¶
type HostKey struct { PEM string datastore.VersionedEntity }
Entity containing a PEM-encoded RSA public key
func (*HostKey) ValidEntity ¶
type Store ¶
type Store interface { // Get an RSA Key by host id. Return ErrNoSuchEntity if not found Get(ctx datastore.Context, id string) (*HostKey, error) // Put adds/updates an RSA Key to the registry Put(ctx datastore.Context, id string, val *HostKey) error // Delete removes an RSA Key from the registry Delete(ctx datastore.Context, id string) error }
Store is the database for the RSA keys per host
Click to show internal directories.
Click to hide internal directories.