v1

package
v0.0.0-...-8376368 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 0 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRegistry = "distribution: registry returned error"

ErrRegistry is the string returned by and ErrorResponse error.

Functions

This section is empty.

Types

type ErrorInfo

type ErrorInfo struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Detail  string `json:"detail"`
}

ErrorInfo describes a server error returned from a registry.

type ErrorResponse

type ErrorResponse struct {
	Errors []ErrorInfo `json:"errors"`
}

ErrorResponse is returned by a registry on an invalid request.

func (*ErrorResponse) Detail

func (er *ErrorResponse) Detail() []ErrorInfo

Detail returns an ErrorInfo

func (*ErrorResponse) Error

func (er *ErrorResponse) Error() string

Error implements the Error interface.

type RepositoryList

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

RepositoryList returns a catalog of repositories maintained on the registry.

type TagList

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

TagList is a list of tags for a given repository.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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