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 Image ¶
type Image struct { Library string Repo string Tag string UUID string Hash string datastore.VersionedEntity }
func (*Image) ValidEntity ¶
type ImageRegistryStore ¶
type ImageRegistryStore interface { // Get an image by id. Return ErrNoSuchEntity if not found Get(ctx datastore.Context, id string) (*Image, error) // Put adds/updates an image to the registry Put(ctx datastore.Context, image *Image) error // Delete removes an image from the registry Delete(ctx datastore.Context, id string) error // GetImages returns all the images that are in the registry GetImages(ctx datastore.Context) ([]Image, error) // SearchLibraryByTag looks for repos that are registered under a library and tag SearchLibraryByTag(ctx datastore.Context, library, tag string) ([]Image, error) }
RegistryImageStore is the database for the docker image registry
Click to show internal directories.
Click to hide internal directories.