registry

package
v0.0.0-...-66e6960 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

type Registry

type Registry struct {
	Client  *http.Client
	BaseUrl string
}

func NewRegistry

func NewRegistry(url string, insecure bool) Registry

func (Registry) DeleteImage

func (r Registry) DeleteImage(image, tag, digest string) error

func (Registry) GetDigestFromManifest

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

func (Registry) ListImageTags

func (r Registry) ListImageTags(image string) (Response, error)

func (Registry) ListRepositories

func (r Registry) ListRepositories(n int) (Response, error)

func (Registry) VersionCheck

func (r Registry) VersionCheck() error

type Repository

type Repository struct {
	List []string `json:"repositories"`
}

type Response

type Response struct {
	Body       []byte
	Header     http.Header
	StatusCode int
	Writer     io.Writer
}

func NewResponse

func NewResponse(body []byte, header http.Header, status int) Response

func (Response) GetImage

func (r Response) GetImage() Image

func (Response) GetRepository

func (r Response) GetRepository() Repository

Jump to

Keyboard shortcuts

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