grootfakes

package
v0.0.0-...-ea9d892 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 6 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 FakeBaseImagePuller

type FakeBaseImagePuller struct {
	FetchBaseImageInfoStub func(logger lager.Logger, spec groot.BaseImageSpec) (groot.BaseImageInfo, error)

	PullStub func(logger lager.Logger, imageInfo groot.BaseImageInfo, spec groot.BaseImageSpec) error
	// contains filtered or unexported fields
}

func (*FakeBaseImagePuller) FetchBaseImageInfo

func (fake *FakeBaseImagePuller) FetchBaseImageInfo(logger lager.Logger, spec groot.BaseImageSpec) (groot.BaseImageInfo, error)

func (*FakeBaseImagePuller) FetchBaseImageInfoArgsForCall

func (fake *FakeBaseImagePuller) FetchBaseImageInfoArgsForCall(i int) (lager.Logger, groot.BaseImageSpec)

func (*FakeBaseImagePuller) FetchBaseImageInfoCallCount

func (fake *FakeBaseImagePuller) FetchBaseImageInfoCallCount() int

func (*FakeBaseImagePuller) FetchBaseImageInfoReturns

func (fake *FakeBaseImagePuller) FetchBaseImageInfoReturns(result1 groot.BaseImageInfo, result2 error)

func (*FakeBaseImagePuller) FetchBaseImageInfoReturnsOnCall

func (fake *FakeBaseImagePuller) FetchBaseImageInfoReturnsOnCall(i int, result1 groot.BaseImageInfo, result2 error)

func (*FakeBaseImagePuller) Invocations

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

func (*FakeBaseImagePuller) Pull

func (fake *FakeBaseImagePuller) Pull(logger lager.Logger, imageInfo groot.BaseImageInfo, spec groot.BaseImageSpec) error

func (*FakeBaseImagePuller) PullArgsForCall

func (*FakeBaseImagePuller) PullCallCount

func (fake *FakeBaseImagePuller) PullCallCount() int

func (*FakeBaseImagePuller) PullReturns

func (fake *FakeBaseImagePuller) PullReturns(result1 error)

func (*FakeBaseImagePuller) PullReturnsOnCall

func (fake *FakeBaseImagePuller) PullReturnsOnCall(i int, result1 error)

type FakeCleaner

type FakeCleaner struct {
	CleanStub func(logger lager.Logger, cacheSize int64, chainIDsToPreserve []string) (bool, error)
	// contains filtered or unexported fields
}

func (*FakeCleaner) Clean

func (fake *FakeCleaner) Clean(logger lager.Logger, cacheSize int64, chainIDsToPreserve []string) (bool, error)

func (*FakeCleaner) CleanArgsForCall

func (fake *FakeCleaner) CleanArgsForCall(i int) (lager.Logger, int64, []string)

func (*FakeCleaner) CleanCallCount

func (fake *FakeCleaner) CleanCallCount() int

func (*FakeCleaner) CleanReturns

func (fake *FakeCleaner) CleanReturns(result1 bool, result2 error)

func (*FakeCleaner) CleanReturnsOnCall

func (fake *FakeCleaner) CleanReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeCleaner) Invocations

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

type FakeDependencyManager

type FakeDependencyManager struct {
	RegisterStub func(id string, chainIDs []string) error

	DeregisterStub func(id string) error
	// contains filtered or unexported fields
}

func (*FakeDependencyManager) Deregister

func (fake *FakeDependencyManager) Deregister(id string) error

func (*FakeDependencyManager) DeregisterArgsForCall

func (fake *FakeDependencyManager) DeregisterArgsForCall(i int) string

func (*FakeDependencyManager) DeregisterCallCount

func (fake *FakeDependencyManager) DeregisterCallCount() int

func (*FakeDependencyManager) DeregisterReturns

func (fake *FakeDependencyManager) DeregisterReturns(result1 error)

func (*FakeDependencyManager) DeregisterReturnsOnCall

func (fake *FakeDependencyManager) DeregisterReturnsOnCall(i int, result1 error)

func (*FakeDependencyManager) Invocations

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

func (*FakeDependencyManager) Register

func (fake *FakeDependencyManager) Register(id string, chainIDs []string) error

func (*FakeDependencyManager) RegisterArgsForCall

func (fake *FakeDependencyManager) RegisterArgsForCall(i int) (string, []string)

func (*FakeDependencyManager) RegisterCallCount

func (fake *FakeDependencyManager) RegisterCallCount() int

func (*FakeDependencyManager) RegisterReturns

func (fake *FakeDependencyManager) RegisterReturns(result1 error)

func (*FakeDependencyManager) RegisterReturnsOnCall

func (fake *FakeDependencyManager) RegisterReturnsOnCall(i int, result1 error)

type FakeGarbageCollector

type FakeGarbageCollector struct {
	UnusedVolumesStub func(logger lager.Logger, chainIDsToPreserve []string) ([]string, error)

	MarkUnusedStub func(logger lager.Logger, unusedVolumes []string) error

	CollectStub func(logger lager.Logger) error
	// contains filtered or unexported fields
}

func (*FakeGarbageCollector) Collect

func (fake *FakeGarbageCollector) Collect(logger lager.Logger) error

func (*FakeGarbageCollector) CollectArgsForCall

func (fake *FakeGarbageCollector) CollectArgsForCall(i int) lager.Logger

func (*FakeGarbageCollector) CollectCallCount

func (fake *FakeGarbageCollector) CollectCallCount() int

func (*FakeGarbageCollector) CollectReturns

func (fake *FakeGarbageCollector) CollectReturns(result1 error)

func (*FakeGarbageCollector) CollectReturnsOnCall

func (fake *FakeGarbageCollector) CollectReturnsOnCall(i int, result1 error)

func (*FakeGarbageCollector) Invocations

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

func (*FakeGarbageCollector) MarkUnused

func (fake *FakeGarbageCollector) MarkUnused(logger lager.Logger, unusedVolumes []string) error

func (*FakeGarbageCollector) MarkUnusedArgsForCall

func (fake *FakeGarbageCollector) MarkUnusedArgsForCall(i int) (lager.Logger, []string)

func (*FakeGarbageCollector) MarkUnusedCallCount

func (fake *FakeGarbageCollector) MarkUnusedCallCount() int

func (*FakeGarbageCollector) MarkUnusedReturns

func (fake *FakeGarbageCollector) MarkUnusedReturns(result1 error)

func (*FakeGarbageCollector) MarkUnusedReturnsOnCall

func (fake *FakeGarbageCollector) MarkUnusedReturnsOnCall(i int, result1 error)

func (*FakeGarbageCollector) UnusedVolumes

func (fake *FakeGarbageCollector) UnusedVolumes(logger lager.Logger, chainIDsToPreserve []string) ([]string, error)

func (*FakeGarbageCollector) UnusedVolumesArgsForCall

func (fake *FakeGarbageCollector) UnusedVolumesArgsForCall(i int) (lager.Logger, []string)

func (*FakeGarbageCollector) UnusedVolumesCallCount

func (fake *FakeGarbageCollector) UnusedVolumesCallCount() int

func (*FakeGarbageCollector) UnusedVolumesReturns

func (fake *FakeGarbageCollector) UnusedVolumesReturns(result1 []string, result2 error)

func (*FakeGarbageCollector) UnusedVolumesReturnsOnCall

func (fake *FakeGarbageCollector) UnusedVolumesReturnsOnCall(i int, result1 []string, result2 error)

type FakeImageCloner

type FakeImageCloner struct {
	ExistsStub func(id string) (bool, error)

	CreateStub func(logger lager.Logger, spec groot.ImageSpec) (groot.ImageInfo, error)

	DestroyStub func(logger lager.Logger, id string) error

	StatsStub func(logger lager.Logger, id string) (groot.VolumeStats, error)
	// contains filtered or unexported fields
}

func (*FakeImageCloner) Create

func (fake *FakeImageCloner) Create(logger lager.Logger, spec groot.ImageSpec) (groot.ImageInfo, error)

func (*FakeImageCloner) CreateArgsForCall

func (fake *FakeImageCloner) CreateArgsForCall(i int) (lager.Logger, groot.ImageSpec)

func (*FakeImageCloner) CreateCallCount

func (fake *FakeImageCloner) CreateCallCount() int

func (*FakeImageCloner) CreateReturns

func (fake *FakeImageCloner) CreateReturns(result1 groot.ImageInfo, result2 error)

func (*FakeImageCloner) CreateReturnsOnCall

func (fake *FakeImageCloner) CreateReturnsOnCall(i int, result1 groot.ImageInfo, result2 error)

func (*FakeImageCloner) Destroy

func (fake *FakeImageCloner) Destroy(logger lager.Logger, id string) error

func (*FakeImageCloner) DestroyArgsForCall

func (fake *FakeImageCloner) DestroyArgsForCall(i int) (lager.Logger, string)

func (*FakeImageCloner) DestroyCallCount

func (fake *FakeImageCloner) DestroyCallCount() int

func (*FakeImageCloner) DestroyReturns

func (fake *FakeImageCloner) DestroyReturns(result1 error)

func (*FakeImageCloner) DestroyReturnsOnCall

func (fake *FakeImageCloner) DestroyReturnsOnCall(i int, result1 error)

func (*FakeImageCloner) Exists

func (fake *FakeImageCloner) Exists(id string) (bool, error)

func (*FakeImageCloner) ExistsArgsForCall

func (fake *FakeImageCloner) ExistsArgsForCall(i int) string

func (*FakeImageCloner) ExistsCallCount

func (fake *FakeImageCloner) ExistsCallCount() int

func (*FakeImageCloner) ExistsReturns

func (fake *FakeImageCloner) ExistsReturns(result1 bool, result2 error)

func (*FakeImageCloner) ExistsReturnsOnCall

func (fake *FakeImageCloner) ExistsReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeImageCloner) Invocations

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

func (*FakeImageCloner) Stats

func (fake *FakeImageCloner) Stats(logger lager.Logger, id string) (groot.VolumeStats, error)

func (*FakeImageCloner) StatsArgsForCall

func (fake *FakeImageCloner) StatsArgsForCall(i int) (lager.Logger, string)

func (*FakeImageCloner) StatsCallCount

func (fake *FakeImageCloner) StatsCallCount() int

func (*FakeImageCloner) StatsReturns

func (fake *FakeImageCloner) StatsReturns(result1 groot.VolumeStats, result2 error)

func (*FakeImageCloner) StatsReturnsOnCall

func (fake *FakeImageCloner) StatsReturnsOnCall(i int, result1 groot.VolumeStats, result2 error)

type FakeLocksmith

type FakeLocksmith struct {
	LockStub func(key string) (*os.File, error)

	UnlockStub func(lockFile *os.File) error
	// contains filtered or unexported fields
}

func (*FakeLocksmith) Invocations

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

func (*FakeLocksmith) Lock

func (fake *FakeLocksmith) Lock(key string) (*os.File, error)

func (*FakeLocksmith) LockArgsForCall

func (fake *FakeLocksmith) LockArgsForCall(i int) string

func (*FakeLocksmith) LockCallCount

func (fake *FakeLocksmith) LockCallCount() int

func (*FakeLocksmith) LockReturns

func (fake *FakeLocksmith) LockReturns(result1 *os.File, result2 error)

func (*FakeLocksmith) LockReturnsOnCall

func (fake *FakeLocksmith) LockReturnsOnCall(i int, result1 *os.File, result2 error)

func (*FakeLocksmith) Unlock

func (fake *FakeLocksmith) Unlock(lockFile *os.File) error

func (*FakeLocksmith) UnlockArgsForCall

func (fake *FakeLocksmith) UnlockArgsForCall(i int) *os.File

func (*FakeLocksmith) UnlockCallCount

func (fake *FakeLocksmith) UnlockCallCount() int

func (*FakeLocksmith) UnlockReturns

func (fake *FakeLocksmith) UnlockReturns(result1 error)

func (*FakeLocksmith) UnlockReturnsOnCall

func (fake *FakeLocksmith) UnlockReturnsOnCall(i int, result1 error)

type FakeMetricsEmitter

type FakeMetricsEmitter struct {
	TryEmitUsageStub func(logger lager.Logger, name string, usage int64, units string)

	TryEmitDurationFromStub func(logger lager.Logger, name string, from time.Time)
	// contains filtered or unexported fields
}

func (*FakeMetricsEmitter) Invocations

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

func (*FakeMetricsEmitter) TryEmitDurationFrom

func (fake *FakeMetricsEmitter) TryEmitDurationFrom(logger lager.Logger, name string, from time.Time)

func (*FakeMetricsEmitter) TryEmitDurationFromArgsForCall

func (fake *FakeMetricsEmitter) TryEmitDurationFromArgsForCall(i int) (lager.Logger, string, time.Time)

func (*FakeMetricsEmitter) TryEmitDurationFromCallCount

func (fake *FakeMetricsEmitter) TryEmitDurationFromCallCount() int

func (*FakeMetricsEmitter) TryEmitUsage

func (fake *FakeMetricsEmitter) TryEmitUsage(logger lager.Logger, name string, usage int64, units string)

func (*FakeMetricsEmitter) TryEmitUsageArgsForCall

func (fake *FakeMetricsEmitter) TryEmitUsageArgsForCall(i int) (lager.Logger, string, int64, string)

func (*FakeMetricsEmitter) TryEmitUsageCallCount

func (fake *FakeMetricsEmitter) TryEmitUsageCallCount() int

type FakeRootFSConfigurer

type FakeRootFSConfigurer struct {
	ConfigureStub func(rootFSPath string, baseImage *specsv1.Image) error
	// contains filtered or unexported fields
}

func (*FakeRootFSConfigurer) Configure

func (fake *FakeRootFSConfigurer) Configure(rootFSPath string, baseImage *specsv1.Image) error

func (*FakeRootFSConfigurer) ConfigureArgsForCall

func (fake *FakeRootFSConfigurer) ConfigureArgsForCall(i int) (string, *specsv1.Image)

func (*FakeRootFSConfigurer) ConfigureCallCount

func (fake *FakeRootFSConfigurer) ConfigureCallCount() int

func (*FakeRootFSConfigurer) ConfigureReturns

func (fake *FakeRootFSConfigurer) ConfigureReturns(result1 error)

func (*FakeRootFSConfigurer) ConfigureReturnsOnCall

func (fake *FakeRootFSConfigurer) ConfigureReturnsOnCall(i int, result1 error)

func (*FakeRootFSConfigurer) Invocations

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

type FakeStoreMeasurer

type FakeStoreMeasurer struct {
	UsageStub func(logger lager.Logger) (int64, error)

	CacheUsageStub func(logger lager.Logger, volumes []string) int64
	// contains filtered or unexported fields
}

func (*FakeStoreMeasurer) CacheUsage

func (fake *FakeStoreMeasurer) CacheUsage(logger lager.Logger, volumes []string) int64

func (*FakeStoreMeasurer) CacheUsageArgsForCall

func (fake *FakeStoreMeasurer) CacheUsageArgsForCall(i int) (lager.Logger, []string)

func (*FakeStoreMeasurer) CacheUsageCallCount

func (fake *FakeStoreMeasurer) CacheUsageCallCount() int

func (*FakeStoreMeasurer) CacheUsageReturns

func (fake *FakeStoreMeasurer) CacheUsageReturns(result1 int64)

func (*FakeStoreMeasurer) CacheUsageReturnsOnCall

func (fake *FakeStoreMeasurer) CacheUsageReturnsOnCall(i int, result1 int64)

func (*FakeStoreMeasurer) Invocations

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

func (*FakeStoreMeasurer) Usage

func (fake *FakeStoreMeasurer) Usage(logger lager.Logger) (int64, error)

func (*FakeStoreMeasurer) UsageArgsForCall

func (fake *FakeStoreMeasurer) UsageArgsForCall(i int) lager.Logger

func (*FakeStoreMeasurer) UsageCallCount

func (fake *FakeStoreMeasurer) UsageCallCount() int

func (*FakeStoreMeasurer) UsageReturns

func (fake *FakeStoreMeasurer) UsageReturns(result1 int64, result2 error)

func (*FakeStoreMeasurer) UsageReturnsOnCall

func (fake *FakeStoreMeasurer) UsageReturnsOnCall(i int, result1 int64, result2 error)

Jump to

Keyboard shortcuts

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