flux: github.com/weaveworks/flux/pkg/registry/mock Index | Files

package mock

import "github.com/weaveworks/flux/pkg/registry/mock"

Index

Package Files

mock.go

type Client Uses

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

func (*Client) Manifest Uses

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

func (*Client) Tags Uses

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

type ClientFactory Uses

type ClientFactory struct {
    Client registry.Client
    Err    error
}

func (*ClientFactory) ClientFor Uses

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

func (*ClientFactory) Succeed Uses

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

type Registry Uses

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

func (*Registry) GetImage Uses

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

func (*Registry) GetImageRepositoryMetadata Uses

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

Package mock imports 4 packages (graph). Updated 2019-09-29. Refresh now. Tools for package owners.