mock

package
v0.0.0-...-7eed66f Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 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 NoOpDockerClient

type NoOpDockerClient struct {
	ImageInspectLabels map[string]string
	Calls              map[string][]interface{}
}

NoOpDockerClient is a mock implementation of dockerClient.Docker interface

func (*NoOpDockerClient) ImageBuild

func (n *NoOpDockerClient) ImageBuild(parent string, buildLabels map[string]string, tag string) error

ImageBuild is a mock implementation of ImageBuild method from dockerClient.Client interface

func (*NoOpDockerClient) Inspect

func (n *NoOpDockerClient) Inspect(image string) (types.ImageInspect, error)

Inspect is a mock implementation of Inspect method from dockerClient.Client interface

func (*NoOpDockerClient) Pull

func (n *NoOpDockerClient) Pull(image string) error

Pull is a mock implementation of Pull method from dockerClient.Client interface

func (*NoOpDockerClient) Push

func (n *NoOpDockerClient) Push(image string) error

Push is a mock implementation of Push method from dockerClient.Client interface

func (*NoOpDockerClient) Remove

func (n *NoOpDockerClient) Remove(image string) error

Remove is a mock implementation of Remove method from dockerClient.Client interface

type NoOpRegistryClient

type NoOpRegistryClient struct {
	client.Registry
	RepositoriesFn    func(repos []string, last string) (int, error)
	WalkRepoitoriesFn func() <-chan dim.Repository
	NewRepositoryFn   func(parsedName reference.Named) (dim.Repository, error)
}

NoOpRegistryClient is a mock implementation of dim.RegistryClient

func (*NoOpRegistryClient) DeleteImage

func (r *NoOpRegistryClient) DeleteImage(parsedName reference.Named) error

DeleteImage is a mock implementation of DeleteImage method of dim.RegistryClient interface

func (*NoOpRegistryClient) NewRepository

func (r *NoOpRegistryClient) NewRepository(parsedName reference.Named) (dim.Repository, error)

NewRepository is a mock implementation of NewRepository method of dim.RegistryClient interface

func (*NoOpRegistryClient) PrintImageInfo

func (r *NoOpRegistryClient) PrintImageInfo(w io.Writer, parsedName reference.Named, tpl *template.Template) error

PrintImageInfo is a mock implementation of PrintImageInfo method of dim.RegistryClient interface

func (*NoOpRegistryClient) Repositories

func (r *NoOpRegistryClient) Repositories(ctx context.Context, repos []string, last string) (int, error)

Repositories is a mock implementation of Repositories method of dim.RegistryClient interface

func (*NoOpRegistryClient) Search

func (r *NoOpRegistryClient) Search(query, advanced string, offset, numResults int) (*dim.SearchResults, error)

Search is a mock implementation of Search method of dim.RegistryClient interface

func (*NoOpRegistryClient) ServerVersion

func (r *NoOpRegistryClient) ServerVersion() (*dim.Info, error)

ServerVersion is a mock implementation of ServerVersion method of dim.RegistryClient interface

func (*NoOpRegistryClient) WalkRepositories

func (r *NoOpRegistryClient) WalkRepositories() <-chan dim.Repository

WalkRepositories is a mock implementation of WalkRepositories method of dim.RegistryClient interface

type NoOpRegistryIndex

type NoOpRegistryIndex struct {
	Calls map[string][]interface{}
}

NoOpRegistryIndex is a mock implementation of dim.RegistryIndex interface

func (*NoOpRegistryIndex) Build

func (i *NoOpRegistryIndex) Build() <-chan bool

Build is a mock implementation of Build method from dim.RegistryIndex interface

func (*NoOpRegistryIndex) DeleteImage

func (i *NoOpRegistryIndex) DeleteImage(id string)

DeleteImage is a mock implementation of DeleteImage method from dim.RegistryIndex interface

func (*NoOpRegistryIndex) FindImage

func (i *NoOpRegistryIndex) FindImage(id string) (*dim.IndexImage, error)

FindImage is a mock implementation of FindImage method from dim.RegistryIndex interface

func (*NoOpRegistryIndex) GetImage

func (i *NoOpRegistryIndex) GetImage(repository, tag string, dg digest.Digest) (*dim.IndexImage, error)

GetImage is a mock implementation of GetImage method from dim.RegistryIndex interface

func (*NoOpRegistryIndex) IndexImage

func (i *NoOpRegistryIndex) IndexImage(image *dim.IndexImage)

IndexImage is a mock implementation of IndexImage method from dim.RegistryIndex interface

func (*NoOpRegistryIndex) SearchImages

func (i *NoOpRegistryIndex) SearchImages(q, a string, fields []string, offset, maxResults int) (*dim.IndexResults, error)

SearchImages is a mock implementation of SearchImages method from dim.RegistryIndex interface

func (*NoOpRegistryIndex) Submit

func (i *NoOpRegistryIndex) Submit(job *dim.NotificationJob)

Submit is a mock implementation of Submit method from dim.RegistryIndex interface

type NoOpRegistryRepository

type NoOpRegistryRepository struct {
	distribution.Repository
	Name                string
	AllTagsFn           func() ([]string, error)
	ImageFn             func(tag string) (*dim.RegistryImage, error)
	ImageFromManifestFn func(tagDigest digest.Digest, digest string) (img *dim.RegistryImage, err error)
	WalkImagesFn        func() <-chan *dim.RegistryImage
	NamedFn             func() ref.Named
}

NoOpRegistryRepository is a mock implementation of dim.Repository interface

func (*NoOpRegistryRepository) AllTags

func (r *NoOpRegistryRepository) AllTags() ([]string, error)

AllTags is a mock implementation of AllTags method from dim.Repository interface

func (*NoOpRegistryRepository) DeleteImage

func (r *NoOpRegistryRepository) DeleteImage(tag string) error

DeleteImage is a mock implementation of DeleteImage method from dim.Repository interface

func (*NoOpRegistryRepository) Image

func (r *NoOpRegistryRepository) Image(tag string) (*dim.RegistryImage, error)

Image is a mock implementation of Image method from dim.Repository interface

func (*NoOpRegistryRepository) ImageFromManifest

func (r *NoOpRegistryRepository) ImageFromManifest(tagDigest digest.Digest, digest string) (*dim.RegistryImage, error)

ImageFromManifest is a mock implementation of ImageFromManifest method from dim.Repository interface

func (*NoOpRegistryRepository) Named

func (r *NoOpRegistryRepository) Named() ref.Named

Named is a mock implementation of Named method from dim.Repository interface

func (*NoOpRegistryRepository) WalkImages

func (r *NoOpRegistryRepository) WalkImages() <-chan *dim.RegistryImage

WalkImages is a mock implementation of WalkImages method from dim.Repository interface

Jump to

Keyboard shortcuts

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