Documentation ¶
Index ¶
- Constants
- type ImageManifest
- type ImageManifestV1
- type ImageTags
- type LayerInfo
- type Registry
- func (r Registry) DeleteImageByTag(image string, tag string) error
- func (r Registry) ImageManifest(image string, tag string) (ImageManifest, error)
- func (r Registry) ImageManifestV1(image string, tag string) (ImageManifestV1, error)
- func (r Registry) ListImages() ([]string, error)
- func (r Registry) ListTagsByImage(image string) ([]string, error)
- type Repositories
Constants ¶
View Source
const ACCEPT_HEADER = "application/vnd.docker.distribution.manifest.v2+json"
View Source
const ACCEPT_HEADER_V1 = "application/vnd.docker.distribution.manifest.v1+json"
View Source
const CREDENTIALS_FILE = ".credentials"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageManifest ¶
type ImageManifestV1 ¶
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"` }
func NewRegistry ¶
func (Registry) DeleteImageByTag ¶
func (Registry) ImageManifest ¶
func (r Registry) ImageManifest(image string, tag string) (ImageManifest, error)
func (Registry) ImageManifestV1 ¶
func (r Registry) ImageManifestV1(image string, tag string) (ImageManifestV1, error)
func (Registry) ListImages ¶
type Repositories ¶
type Repositories struct {
Images []string `json:"repositories"`
}
Click to show internal directories.
Click to hide internal directories.