resourcefakes

package
v4.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeFetchSource

type FakeFetchSource struct {
	LockNameStub func() (string, error)

	FindStub func() (resource.VersionedSource, bool, error)

	CreateStub func(context.Context) (resource.VersionedSource, error)
	// contains filtered or unexported fields
}

func (*FakeFetchSource) Create

func (*FakeFetchSource) CreateArgsForCall

func (fake *FakeFetchSource) CreateArgsForCall(i int) context.Context

func (*FakeFetchSource) CreateCallCount

func (fake *FakeFetchSource) CreateCallCount() int

func (*FakeFetchSource) CreateReturns

func (fake *FakeFetchSource) CreateReturns(result1 resource.VersionedSource, result2 error)

func (*FakeFetchSource) CreateReturnsOnCall

func (fake *FakeFetchSource) CreateReturnsOnCall(i int, result1 resource.VersionedSource, result2 error)

func (*FakeFetchSource) Find

func (*FakeFetchSource) FindCallCount

func (fake *FakeFetchSource) FindCallCount() int

func (*FakeFetchSource) FindReturns

func (fake *FakeFetchSource) FindReturns(result1 resource.VersionedSource, result2 bool, result3 error)

func (*FakeFetchSource) FindReturnsOnCall

func (fake *FakeFetchSource) FindReturnsOnCall(i int, result1 resource.VersionedSource, result2 bool, result3 error)

func (*FakeFetchSource) Invocations

func (fake *FakeFetchSource) Invocations() map[string][][]interface{}

func (*FakeFetchSource) LockName

func (fake *FakeFetchSource) LockName() (string, error)

func (*FakeFetchSource) LockNameCallCount

func (fake *FakeFetchSource) LockNameCallCount() int

func (*FakeFetchSource) LockNameReturns

func (fake *FakeFetchSource) LockNameReturns(result1 string, result2 error)

func (*FakeFetchSource) LockNameReturnsOnCall

func (fake *FakeFetchSource) LockNameReturnsOnCall(i int, result1 string, result2 error)

type FakeFetchSourceProvider

type FakeFetchSourceProvider struct {
	GetStub func() (resource.FetchSource, error)
	// contains filtered or unexported fields
}

func (*FakeFetchSourceProvider) Get

func (*FakeFetchSourceProvider) GetCallCount

func (fake *FakeFetchSourceProvider) GetCallCount() int

func (*FakeFetchSourceProvider) GetReturns

func (fake *FakeFetchSourceProvider) GetReturns(result1 resource.FetchSource, result2 error)

func (*FakeFetchSourceProvider) GetReturnsOnCall

func (fake *FakeFetchSourceProvider) GetReturnsOnCall(i int, result1 resource.FetchSource, result2 error)

func (*FakeFetchSourceProvider) Invocations

func (fake *FakeFetchSourceProvider) Invocations() map[string][][]interface{}

type FakeFetchSourceProviderFactory

type FakeFetchSourceProviderFactory struct {
	NewFetchSourceProviderStub func(logger lager.Logger, session resource.Session, metadata resource.Metadata, tags atc.Tags, teamID int, resourceTypes creds.VersionedResourceTypes, resourceInstance resource.ResourceInstance, imageFetchingDelegate worker.ImageFetchingDelegate) resource.FetchSourceProvider
	// contains filtered or unexported fields
}

func (*FakeFetchSourceProviderFactory) Invocations

func (fake *FakeFetchSourceProviderFactory) Invocations() map[string][][]interface{}

func (*FakeFetchSourceProviderFactory) NewFetchSourceProvider

func (fake *FakeFetchSourceProviderFactory) NewFetchSourceProvider(logger lager.Logger, session resource.Session, metadata resource.Metadata, tags atc.Tags, teamID int, resourceTypes creds.VersionedResourceTypes, resourceInstance resource.ResourceInstance, imageFetchingDelegate worker.ImageFetchingDelegate) resource.FetchSourceProvider

func (*FakeFetchSourceProviderFactory) NewFetchSourceProviderCallCount

func (fake *FakeFetchSourceProviderFactory) NewFetchSourceProviderCallCount() int

func (*FakeFetchSourceProviderFactory) NewFetchSourceProviderReturns

func (fake *FakeFetchSourceProviderFactory) NewFetchSourceProviderReturns(result1 resource.FetchSourceProvider)

func (*FakeFetchSourceProviderFactory) NewFetchSourceProviderReturnsOnCall

func (fake *FakeFetchSourceProviderFactory) NewFetchSourceProviderReturnsOnCall(i int, result1 resource.FetchSourceProvider)

type FakeFetcher

type FakeFetcher struct {
	FetchStub func(ctx context.Context, logger lager.Logger, session resource.Session, tags atc.Tags, teamID int, resourceTypes creds.VersionedResourceTypes, resourceInstance resource.ResourceInstance, metadata resource.Metadata, imageFetchingDelegate worker.ImageFetchingDelegate) (resource.VersionedSource, error)
	// contains filtered or unexported fields
}

func (*FakeFetcher) Fetch

func (fake *FakeFetcher) Fetch(ctx context.Context, logger lager.Logger, session resource.Session, tags atc.Tags, teamID int, resourceTypes creds.VersionedResourceTypes, resourceInstance resource.ResourceInstance, metadata resource.Metadata, imageFetchingDelegate worker.ImageFetchingDelegate) (resource.VersionedSource, error)

func (*FakeFetcher) FetchCallCount

func (fake *FakeFetcher) FetchCallCount() int

func (*FakeFetcher) FetchReturns

func (fake *FakeFetcher) FetchReturns(result1 resource.VersionedSource, result2 error)

func (*FakeFetcher) FetchReturnsOnCall

func (fake *FakeFetcher) FetchReturnsOnCall(i int, result1 resource.VersionedSource, result2 error)

func (*FakeFetcher) Invocations

func (fake *FakeFetcher) Invocations() map[string][][]interface{}

type FakeFetcherFactory

type FakeFetcherFactory struct {
	FetcherForStub func(workerClient worker.Client) resource.Fetcher
	// contains filtered or unexported fields
}

func (*FakeFetcherFactory) FetcherFor

func (fake *FakeFetcherFactory) FetcherFor(workerClient worker.Client) resource.Fetcher

func (*FakeFetcherFactory) FetcherForArgsForCall

func (fake *FakeFetcherFactory) FetcherForArgsForCall(i int) worker.Client

func (*FakeFetcherFactory) FetcherForCallCount

func (fake *FakeFetcherFactory) FetcherForCallCount() int

func (*FakeFetcherFactory) FetcherForReturns

func (fake *FakeFetcherFactory) FetcherForReturns(result1 resource.Fetcher)

func (*FakeFetcherFactory) FetcherForReturnsOnCall

func (fake *FakeFetcherFactory) FetcherForReturnsOnCall(i int, result1 resource.Fetcher)

func (*FakeFetcherFactory) Invocations

func (fake *FakeFetcherFactory) Invocations() map[string][][]interface{}

type FakeResource

type FakeResource struct {
	GetStub func(context.Context, worker.Volume, resource.IOConfig, atc.Source, atc.Params, atc.Version) (resource.VersionedSource, error)

	PutStub func(context.Context, resource.IOConfig, atc.Source, atc.Params) (resource.VersionedSource, error)

	CheckStub func(context.Context, atc.Source, atc.Version) ([]atc.Version, error)

	ContainerStub func() worker.Container
	// contains filtered or unexported fields
}

func (*FakeResource) Check

func (fake *FakeResource) Check(arg1 context.Context, arg2 atc.Source, arg3 atc.Version) ([]atc.Version, error)

func (*FakeResource) CheckArgsForCall

func (fake *FakeResource) CheckArgsForCall(i int) (context.Context, atc.Source, atc.Version)

func (*FakeResource) CheckCallCount

func (fake *FakeResource) CheckCallCount() int

func (*FakeResource) CheckReturns

func (fake *FakeResource) CheckReturns(result1 []atc.Version, result2 error)

func (*FakeResource) CheckReturnsOnCall

func (fake *FakeResource) CheckReturnsOnCall(i int, result1 []atc.Version, result2 error)

func (*FakeResource) Container

func (fake *FakeResource) Container() worker.Container

func (*FakeResource) ContainerCallCount

func (fake *FakeResource) ContainerCallCount() int

func (*FakeResource) ContainerReturns

func (fake *FakeResource) ContainerReturns(result1 worker.Container)

func (*FakeResource) ContainerReturnsOnCall

func (fake *FakeResource) ContainerReturnsOnCall(i int, result1 worker.Container)

func (*FakeResource) Get

func (*FakeResource) GetArgsForCall

func (*FakeResource) GetCallCount

func (fake *FakeResource) GetCallCount() int

func (*FakeResource) GetReturns

func (fake *FakeResource) GetReturns(result1 resource.VersionedSource, result2 error)

func (*FakeResource) GetReturnsOnCall

func (fake *FakeResource) GetReturnsOnCall(i int, result1 resource.VersionedSource, result2 error)

func (*FakeResource) Invocations

func (fake *FakeResource) Invocations() map[string][][]interface{}

func (*FakeResource) Put

func (*FakeResource) PutArgsForCall

func (fake *FakeResource) PutArgsForCall(i int) (context.Context, resource.IOConfig, atc.Source, atc.Params)

func (*FakeResource) PutCallCount

func (fake *FakeResource) PutCallCount() int

func (*FakeResource) PutReturns

func (fake *FakeResource) PutReturns(result1 resource.VersionedSource, result2 error)

func (*FakeResource) PutReturnsOnCall

func (fake *FakeResource) PutReturnsOnCall(i int, result1 resource.VersionedSource, result2 error)

type FakeResourceFactory

type FakeResourceFactory struct {
	NewResourceStub func(ctx context.Context, logger lager.Logger, owner db.ContainerOwner, metadata db.ContainerMetadata, containerSpec worker.ContainerSpec, resourceTypes creds.VersionedResourceTypes, imageFetchingDelegate worker.ImageFetchingDelegate) (resource.Resource, error)
	// contains filtered or unexported fields
}

func (*FakeResourceFactory) Invocations

func (fake *FakeResourceFactory) Invocations() map[string][][]interface{}

func (*FakeResourceFactory) NewResource

func (fake *FakeResourceFactory) NewResource(ctx context.Context, logger lager.Logger, owner db.ContainerOwner, metadata db.ContainerMetadata, containerSpec worker.ContainerSpec, resourceTypes creds.VersionedResourceTypes, imageFetchingDelegate worker.ImageFetchingDelegate) (resource.Resource, error)

func (*FakeResourceFactory) NewResourceCallCount

func (fake *FakeResourceFactory) NewResourceCallCount() int

func (*FakeResourceFactory) NewResourceReturns

func (fake *FakeResourceFactory) NewResourceReturns(result1 resource.Resource, result2 error)

func (*FakeResourceFactory) NewResourceReturnsOnCall

func (fake *FakeResourceFactory) NewResourceReturnsOnCall(i int, result1 resource.Resource, result2 error)

type FakeResourceInstance

type FakeResourceInstance struct {
	SourceStub func() atc.Source

	ParamsStub func() atc.Params

	VersionStub func() atc.Version

	ResourceTypeStub func() resource.ResourceType

	ResourceCacheStub func() db.UsedResourceCache

	ContainerOwnerStub func() db.ContainerOwner

	LockNameStub func(string) (string, error)

	FindOnStub func(lager.Logger, worker.Worker) (worker.Volume, bool, error)
	// contains filtered or unexported fields
}

func (*FakeResourceInstance) ContainerOwner

func (fake *FakeResourceInstance) ContainerOwner() db.ContainerOwner

func (*FakeResourceInstance) ContainerOwnerCallCount

func (fake *FakeResourceInstance) ContainerOwnerCallCount() int

func (*FakeResourceInstance) ContainerOwnerReturns

func (fake *FakeResourceInstance) ContainerOwnerReturns(result1 db.ContainerOwner)

func (*FakeResourceInstance) ContainerOwnerReturnsOnCall

func (fake *FakeResourceInstance) ContainerOwnerReturnsOnCall(i int, result1 db.ContainerOwner)

func (*FakeResourceInstance) FindOn

func (fake *FakeResourceInstance) FindOn(arg1 lager.Logger, arg2 worker.Worker) (worker.Volume, bool, error)

func (*FakeResourceInstance) FindOnArgsForCall

func (fake *FakeResourceInstance) FindOnArgsForCall(i int) (lager.Logger, worker.Worker)

func (*FakeResourceInstance) FindOnCallCount

func (fake *FakeResourceInstance) FindOnCallCount() int

func (*FakeResourceInstance) FindOnReturns

func (fake *FakeResourceInstance) FindOnReturns(result1 worker.Volume, result2 bool, result3 error)

func (*FakeResourceInstance) FindOnReturnsOnCall

func (fake *FakeResourceInstance) FindOnReturnsOnCall(i int, result1 worker.Volume, result2 bool, result3 error)

func (*FakeResourceInstance) Invocations

func (fake *FakeResourceInstance) Invocations() map[string][][]interface{}

func (*FakeResourceInstance) LockName

func (fake *FakeResourceInstance) LockName(arg1 string) (string, error)

func (*FakeResourceInstance) LockNameArgsForCall

func (fake *FakeResourceInstance) LockNameArgsForCall(i int) string

func (*FakeResourceInstance) LockNameCallCount

func (fake *FakeResourceInstance) LockNameCallCount() int

func (*FakeResourceInstance) LockNameReturns

func (fake *FakeResourceInstance) LockNameReturns(result1 string, result2 error)

func (*FakeResourceInstance) LockNameReturnsOnCall

func (fake *FakeResourceInstance) LockNameReturnsOnCall(i int, result1 string, result2 error)

func (*FakeResourceInstance) Params

func (fake *FakeResourceInstance) Params() atc.Params

func (*FakeResourceInstance) ParamsCallCount

func (fake *FakeResourceInstance) ParamsCallCount() int

func (*FakeResourceInstance) ParamsReturns

func (fake *FakeResourceInstance) ParamsReturns(result1 atc.Params)

func (*FakeResourceInstance) ParamsReturnsOnCall

func (fake *FakeResourceInstance) ParamsReturnsOnCall(i int, result1 atc.Params)

func (*FakeResourceInstance) ResourceCache

func (fake *FakeResourceInstance) ResourceCache() db.UsedResourceCache

func (*FakeResourceInstance) ResourceCacheCallCount

func (fake *FakeResourceInstance) ResourceCacheCallCount() int

func (*FakeResourceInstance) ResourceCacheReturns

func (fake *FakeResourceInstance) ResourceCacheReturns(result1 db.UsedResourceCache)

func (*FakeResourceInstance) ResourceCacheReturnsOnCall

func (fake *FakeResourceInstance) ResourceCacheReturnsOnCall(i int, result1 db.UsedResourceCache)

func (*FakeResourceInstance) ResourceType

func (fake *FakeResourceInstance) ResourceType() resource.ResourceType

func (*FakeResourceInstance) ResourceTypeCallCount

func (fake *FakeResourceInstance) ResourceTypeCallCount() int

func (*FakeResourceInstance) ResourceTypeReturns

func (fake *FakeResourceInstance) ResourceTypeReturns(result1 resource.ResourceType)

func (*FakeResourceInstance) ResourceTypeReturnsOnCall

func (fake *FakeResourceInstance) ResourceTypeReturnsOnCall(i int, result1 resource.ResourceType)

func (*FakeResourceInstance) Source

func (fake *FakeResourceInstance) Source() atc.Source

func (*FakeResourceInstance) SourceCallCount

func (fake *FakeResourceInstance) SourceCallCount() int

func (*FakeResourceInstance) SourceReturns

func (fake *FakeResourceInstance) SourceReturns(result1 atc.Source)

func (*FakeResourceInstance) SourceReturnsOnCall

func (fake *FakeResourceInstance) SourceReturnsOnCall(i int, result1 atc.Source)

func (*FakeResourceInstance) Version

func (fake *FakeResourceInstance) Version() atc.Version

func (*FakeResourceInstance) VersionCallCount

func (fake *FakeResourceInstance) VersionCallCount() int

func (*FakeResourceInstance) VersionReturns

func (fake *FakeResourceInstance) VersionReturns(result1 atc.Version)

func (*FakeResourceInstance) VersionReturnsOnCall

func (fake *FakeResourceInstance) VersionReturnsOnCall(i int, result1 atc.Version)

type FakeVersionedSource

type FakeVersionedSource struct {
	VersionStub func() atc.Version

	MetadataStub func() []atc.MetadataField

	StreamOutStub func(string) (io.ReadCloser, error)

	StreamInStub func(string, io.Reader) error

	VolumeStub func() worker.Volume
	// contains filtered or unexported fields
}

func (*FakeVersionedSource) Invocations

func (fake *FakeVersionedSource) Invocations() map[string][][]interface{}

func (*FakeVersionedSource) Metadata

func (fake *FakeVersionedSource) Metadata() []atc.MetadataField

func (*FakeVersionedSource) MetadataCallCount

func (fake *FakeVersionedSource) MetadataCallCount() int

func (*FakeVersionedSource) MetadataReturns

func (fake *FakeVersionedSource) MetadataReturns(result1 []atc.MetadataField)

func (*FakeVersionedSource) MetadataReturnsOnCall

func (fake *FakeVersionedSource) MetadataReturnsOnCall(i int, result1 []atc.MetadataField)

func (*FakeVersionedSource) StreamIn

func (fake *FakeVersionedSource) StreamIn(arg1 string, arg2 io.Reader) error

func (*FakeVersionedSource) StreamInArgsForCall

func (fake *FakeVersionedSource) StreamInArgsForCall(i int) (string, io.Reader)

func (*FakeVersionedSource) StreamInCallCount

func (fake *FakeVersionedSource) StreamInCallCount() int

func (*FakeVersionedSource) StreamInReturns

func (fake *FakeVersionedSource) StreamInReturns(result1 error)

func (*FakeVersionedSource) StreamInReturnsOnCall

func (fake *FakeVersionedSource) StreamInReturnsOnCall(i int, result1 error)

func (*FakeVersionedSource) StreamOut

func (fake *FakeVersionedSource) StreamOut(arg1 string) (io.ReadCloser, error)

func (*FakeVersionedSource) StreamOutArgsForCall

func (fake *FakeVersionedSource) StreamOutArgsForCall(i int) string

func (*FakeVersionedSource) StreamOutCallCount

func (fake *FakeVersionedSource) StreamOutCallCount() int

func (*FakeVersionedSource) StreamOutReturns

func (fake *FakeVersionedSource) StreamOutReturns(result1 io.ReadCloser, result2 error)

func (*FakeVersionedSource) StreamOutReturnsOnCall

func (fake *FakeVersionedSource) StreamOutReturnsOnCall(i int, result1 io.ReadCloser, result2 error)

func (*FakeVersionedSource) Version

func (fake *FakeVersionedSource) Version() atc.Version

func (*FakeVersionedSource) VersionCallCount

func (fake *FakeVersionedSource) VersionCallCount() int

func (*FakeVersionedSource) VersionReturns

func (fake *FakeVersionedSource) VersionReturns(result1 atc.Version)

func (*FakeVersionedSource) VersionReturnsOnCall

func (fake *FakeVersionedSource) VersionReturnsOnCall(i int, result1 atc.Version)

func (*FakeVersionedSource) Volume

func (fake *FakeVersionedSource) Volume() worker.Volume

func (*FakeVersionedSource) VolumeCallCount

func (fake *FakeVersionedSource) VolumeCallCount() int

func (*FakeVersionedSource) VolumeReturns

func (fake *FakeVersionedSource) VolumeReturns(result1 worker.Volume)

func (*FakeVersionedSource) VolumeReturnsOnCall

func (fake *FakeVersionedSource) VolumeReturnsOnCall(i int, result1 worker.Volume)

Jump to

Keyboard shortcuts

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