clients

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

clients package contains the clients for the distribution service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients interface {
	// AuthToken auth the clients
	AuthToken() error
	// DoRequest request the target with auth
	DoRequest(ctx context.Context, method, path string, headers http.Header, bodyReaders ...io.Reader) (int, http.Header, io.ReadCloser, error)
	// GetBlob get blob from target
	GetBlob(ctx context.Context, repository string, digest digest.Digest) (distribution.Descriptor, io.ReadCloser, error)
	// HeadBlob get blob metadata from target
	HeadBlob(ctx context.Context, repository string, digest digest.Digest) (distribution.Descriptor, error)
	// PutBlob upload blob to target
	PutBlob(ctx context.Context, repository string, digest digest.Digest, content io.Reader) error
	// GetManifest ...
	GetManifest(ctx context.Context, repository, reference string) (distribution.Manifest, distribution.Descriptor, error)
	// HeadManifest ...
	HeadManifest(ctx context.Context, repository, reference string) (bool, error)
}

Clients is the interface of clients

type ClientsFactory

type ClientsFactory interface {
	New(config configs.Configuration) (Clients, error)
}

ClientsFactory ...

func NewClientsFactory

func NewClientsFactory() ClientsFactory

NewClientsFactory ...

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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