mirror

package
v0.0.0-...-ca44064 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrDigestNotSupported

type ErrDigestNotSupported string

func (ErrDigestNotSupported) Error

func (e ErrDigestNotSupported) Error() string

type ErrLatestTagNotSupported

type ErrLatestTagNotSupported string

func (ErrLatestTagNotSupported) Error

func (e ErrLatestTagNotSupported) Error() string

type ImageNotFoundError

type ImageNotFoundError string

func (ImageNotFoundError) Error

func (e ImageNotFoundError) Error() string

type ImageReplacer

type ImageReplacer func(image string) string

type MirrorFetcher

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

func NewMirrorFetcher

func NewMirrorFetcher(logger logging.Logger, dockerClient client.CommonAPIClient, replacer ImageReplacer) *MirrorFetcher

func (*MirrorFetcher) CheckReadAccess

func (m *MirrorFetcher) CheckReadAccess(repo string, options packImage.FetchOptions) bool

func (*MirrorFetcher) Fetch

func (m *MirrorFetcher) Fetch(ctx context.Context, name string, options packImage.FetchOptions) (imgutil.Image, error)

Jump to

Keyboard shortcuts

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