Help us shape the future of Go! Take the 2026 Go Developer Survey

inter

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegistryContainerName = "registry"
)

Variables

View Source
var Logger = log.Log.WithName("inter-registry")

Functions

This section is empty.

Types

type Client

type Client struct {
	Name, Namespace string
	// contains filtered or unexported fields
}

func GetClient

func GetClient(c client.Client, reg *regv1.Registry, scheme *runtime.Scheme) (*Client, error)

GetClient returns client of internal registry

func NewClient

func NewClient(c client.Client, registry types.NamespacedName, scheme *runtime.Scheme, httpClient *cmhttp.HttpClient) *Client

NewClient is api client of internal registry

func (*Client) DeleteManifest

func (c *Client) DeleteManifest(image string, manifest *image.ImageManifest) error

DeleteManifest deletes manifest in the registry

func (*Client) ExistBlob

func (c *Client) ExistBlob(repository, digest string) (bool, error)

ExistBlob returns true, if blob exists

func (*Client) GetManifest

func (c *Client) GetManifest(image string) (*image.ImageManifest, error)

GetManifest gets manifests of image in the registry

func (*Client) ListRepositories

func (c *Client) ListRepositories() *image.APIRepositories

ListRepositories get repository list from registry server

func (*Client) ListTags

func (c *Client) ListTags(repository string) *image.APIRepository

ListTags get tag list of repository from registry server

func (*Client) PullBlob

func (c *Client) PullBlob(repository, digest string) (string, int64, error)

PullBlob pulls and stores blob

func (*Client) PushBlob

func (c *Client) PushBlob(repository, digest, blobPath string, size int64) error

PushBlob pushes and stores blob

func (*Client) PutManifest

func (c *Client) PutManifest(image string, manifest *image.ImageManifest) error

PutManifest updates manifest in the registry

func (*Client) Synchronize

func (c *Client) Synchronize() error

Synchronize synchronizes repository list between tmax.io.Repository resource and Registry server

type Commander

type Commander struct {
	// contains filtered or unexported fields
}

func NewCommander

func NewCommander(podName, namespace string) *Commander

func (*Commander) GarbageCollect

func (c *Commander) GarbageCollect() (out *Exec, err error)

type Exec

type Exec struct {
	Command string
	Outbuf  *bytes.Buffer
	Errbuf  *bytes.Buffer
}

func NewExec

func NewExec() *Exec

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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