registry

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func NewRegistry() (Registry, error)

NewRegistry : creates new Registry structure

func (Registry) DeleteImageByTag

func (r Registry) DeleteImageByTag(image string, tag string) error

DeleteImageByTag : delete specific image tag from registry

func (Registry) GetImageTagDate

func (r Registry) GetImageTagDate(image string, tag string) (time.Time, error)

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

func (r Registry) ListImages() ([]string, error)

ListImages : List images in Nexus Docker registry

func (Registry) ListTagsByImage

func (r Registry) ListTagsByImage(image string) ([]string, error)

ListTagsByImage : list image tags in Nexus Docker registry

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL