client

package
v1.9.0-industry.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ParseEndpoint

func ParseEndpoint(endpoint string) (*url.URL, error)

ParseEndpoint parses endpoint to a URL

Types

type Error

type Error struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Error wrap HTTP status code and message as an error

func (*Error) Error

func (e *Error) Error() string

Error ...

func (*Error) String

func (e *Error) String() string

String wraps the error msg to the well formatted error message

type Repository

type Repository struct {
	Endpoint *url.URL
	// contains filtered or unexported fields
}

Repository holds information of a repository entity

func NewRepository

func NewRepository(endpoint string, privateKey libtrust.PrivateKey) (*Repository, error)

NewRepository returns an instance of Repository

func (*Repository) DeleteManifest

func (r *Repository) DeleteManifest(digest, repoName, tag, user, tenantID string) error

DeleteManifest ...

func (*Repository) DeleteTag

func (r *Repository) DeleteTag(repoName, tag, user, tenantID string) error

DeleteTag ...

func (*Repository) ListTag

func (r *Repository) ListTag(repoName, user, tenantID string) ([]string, error)

ListTag ...

func (*Repository) ManifestExist

func (r *Repository) ManifestExist(reference, repoName, tag, user, tenantID string) (digest string, exist bool, err error)

ManifestExist ...

Jump to

Keyboard shortcuts

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