mock

package
v0.0.0-...-5272525 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ManifestFn func(ref string) (registry.ImageEntry, error)
	TagsFn     func() ([]string, error)
}

func (*Client) Manifest

func (m *Client) Manifest(ctx context.Context, tag string) (registry.ImageEntry, error)

func (*Client) Tags

func (m *Client) Tags(context.Context) ([]string, error)

type ClientFactory

type ClientFactory struct {
	Client registry.Client
	Err    error
}

func (*ClientFactory) ClientFor

func (m *ClientFactory) ClientFor(repository image.CanonicalName, creds registry.Credentials) (registry.Client, error)

func (*ClientFactory) Succeed

func (_ *ClientFactory) Succeed(_ image.CanonicalName)

type Registry

type Registry struct {
	Images []image.Info
	Err    error
}

func (*Registry) GetImage

func (m *Registry) GetImage(id image.Ref) (image.Info, error)

func (*Registry) GetImageRepositoryMetadata

func (m *Registry) GetImageRepositoryMetadata(id image.Name) (image.RepositoryMetadata, error)

Jump to

Keyboard shortcuts

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