Documentation ¶
Index ¶
- type ImageManifest
- type Registry
- func (r Registry) DeleteImageByTag(image string, tag string) error
- func (r Registry) GetImageTagDate(image string, tag string) (time.Time, error)
- func (r Registry) ImageManifest(image string, tag string) (ImageManifest, error)
- func (r Registry) ListImages() ([]string, error)
- func (r Registry) ListTagsByImage(image string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageManifest ¶
type ImageManifest struct { SchemaVersion int64 `json:"schemaVersion"` MediaType string `json:"mediaType"` Config layerInfo `json:"config"` Layers []layerInfo `json:"layers"` }
ImageManifest : docker registry manifest v2
type Registry ¶
type Registry struct { Host string `toml:"nexus_host"` Username string `toml:"nexus_username"` Password string `toml:"nexus_password"` Repository string `toml:"nexus_repository"` }
Registry credentials structure
func NewRegistry ¶
NewRegistry : creates new Registry structure
func (Registry) DeleteImageByTag ¶
DeleteImageByTag : delete specific image tag from registry
func (Registry) GetImageTagDate ¶
GetImageTagDate : get last modified date for the image tag
func (Registry) ImageManifest ¶
func (r Registry) ImageManifest(image string, tag string) (ImageManifest, error)
ImageManifest : get docker image manifest from registry
func (Registry) ListImages ¶
ListImages : List images in Nexus Docker registry
Click to show internal directories.
Click to hide internal directories.