mock

package
v0.0.0-...-c42b1bb Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 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)

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) GetRepositoryImages

func (m *Registry) GetRepositoryImages(id image.Name) ([]image.Info, error)

Jump to

Keyboard shortcuts

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