dockerregistry

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	Repositories []string `json:"repositories"`
}

Catalog lists repositories in a registry. See https://docs.docker.com/registry/spec/api/#catalog

type Registry

type Registry struct {
	Host    string
	UseHTTP bool
}

func (*Registry) Catalog

func (r *Registry) Catalog() (Catalog, error)

func (*Registry) Do

func (r *Registry) Do(req *http.Request) (*http.Response, error)

func (*Registry) Get

func (r *Registry) Get(path string, out interface{}) error

func (*Registry) HostName

func (r *Registry) HostName() string

func (*Registry) ImageName

func (r *Registry) ImageName(path string) string

func (*Registry) NewRequest

func (r *Registry) NewRequest(method, path string, body io.Reader) (*http.Request, error)

func (*Registry) Scheme

func (r *Registry) Scheme() string

Jump to

Keyboard shortcuts

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