Documentation ¶
Index ¶
- Constants
- func GetImageNames() ([]string, error)
- func GetTagsByImage(imgName string) ([]string, error)
- func GetTotalImageSize(imageName string) (int64, error)
- func GetTotalImageSizeWithHumanReadable(imageName string) (string, error)
- type ImageManifest
- type ImageTags
- type LayerInfo
- type Registry
- type Repositories
Constants ¶
View Source
const ACCEPT_HEADER = "application/vnd.docker.distribution.manifest.v2+json"
View Source
const CREDENTIALS_FILE = ".credentials"
Variables ¶
This section is empty.
Functions ¶
func GetImageNames ¶ added in v1.3.0
func GetTagsByImage ¶ added in v1.3.0
func GetTotalImageSize ¶ added in v1.3.0
func GetTotalImageSizeWithHumanReadable ¶ added in v1.3.0
Types ¶
type ImageManifest ¶
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) ListImages ¶
type Repositories ¶
type Repositories struct {
Images []string `json:"repositories"`
}
Click to show internal directories.
Click to hide internal directories.