registry

package
v0.0.0-...-aa5f7aa Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options RegistryClientOptions) (*registryClient, error)

Types

type AllImages

type AllImages struct {
	Images []ImageData
}

AllImages is used to get all the images

type BasicTransport

type BasicTransport struct {
	Transport http.RoundTripper
	URL       string
	Username  string
	Password  string
}

func (*BasicTransport) RoundTrip

func (t *BasicTransport) RoundTrip(req *http.Request) (*http.Response, error)

type ErrorTransport

type ErrorTransport struct {
	Transport http.RoundTripper
}

func (*ErrorTransport) RoundTrip

func (t *ErrorTransport) RoundTrip(request *http.Request) (*http.Response, error)

type HTTPStatusError

type HTTPStatusError struct {
	Response *http.Response
	// Copied from `Response.Body` to avoid problems with unclosed bodies later.
	// Nobody calls `err.Response.Body.Close()`, ever.
	Body []byte
}

func (*HTTPStatusError) Error

func (err *HTTPStatusError) Error() string

type ImageData

type ImageData struct {
	Name     string
	Created  time.Time
	Tag      string
	Hostname string
}

ImageData represents image object

type RegistryClientOptions

type RegistryClientOptions struct {
	Hostname string
}

type TagData

type TagData struct {
	Name      string
	Version   string
	CreatedAt time.Time
}

TagData represents only necessary fields from maniest

type V1Compatibility

type V1Compatibility struct {
	Architecture  string    `json:"architecture"`
	Created       time.Time `json:"created"`
	DockerVersion string    `json:"docker_version"`
	ID            string    `json:"id"`
	Os            string    `json:"os"`
}

V1Compatibility represents a field from Manifest struct

Jump to

Keyboard shortcuts

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