grootfakes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBundle

type FakeBundle struct {
	PathStub func() string

	RootFSPathStub func() string
	// contains filtered or unexported fields
}

func (*FakeBundle) Invocations

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

func (*FakeBundle) Path

func (fake *FakeBundle) Path() string

func (*FakeBundle) PathCallCount

func (fake *FakeBundle) PathCallCount() int

func (*FakeBundle) PathReturns

func (fake *FakeBundle) PathReturns(result1 string)

func (*FakeBundle) RootFSPath

func (fake *FakeBundle) RootFSPath() string

func (*FakeBundle) RootFSPathCallCount

func (fake *FakeBundle) RootFSPathCallCount() int

func (*FakeBundle) RootFSPathReturns

func (fake *FakeBundle) RootFSPathReturns(result1 string)

type FakeBundler

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

	CreateStub func(logger lager.Logger, id string, spec groot.BundleSpec) (groot.Bundle, error)

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

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

func (*FakeBundler) Create

func (fake *FakeBundler) Create(logger lager.Logger, id string, spec groot.BundleSpec) (groot.Bundle, error)

func (*FakeBundler) CreateArgsForCall

func (fake *FakeBundler) CreateArgsForCall(i int) (lager.Logger, string, groot.BundleSpec)

func (*FakeBundler) CreateCallCount

func (fake *FakeBundler) CreateCallCount() int

func (*FakeBundler) CreateReturns

func (fake *FakeBundler) CreateReturns(result1 groot.Bundle, result2 error)

func (*FakeBundler) Destroy

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

func (*FakeBundler) DestroyArgsForCall

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

func (*FakeBundler) DestroyCallCount

func (fake *FakeBundler) DestroyCallCount() int

func (*FakeBundler) DestroyReturns

func (fake *FakeBundler) DestroyReturns(result1 error)

func (*FakeBundler) Exists

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

func (*FakeBundler) ExistsArgsForCall

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

func (*FakeBundler) ExistsCallCount

func (fake *FakeBundler) ExistsCallCount() int

func (*FakeBundler) ExistsReturns

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

func (*FakeBundler) Invocations

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

func (*FakeBundler) Metrics

func (fake *FakeBundler) Metrics(logger lager.Logger, id string) (groot.VolumeMetrics, error)

func (*FakeBundler) MetricsArgsForCall

func (fake *FakeBundler) MetricsArgsForCall(i int) (lager.Logger, string)

func (*FakeBundler) MetricsCallCount

func (fake *FakeBundler) MetricsCallCount() int

func (*FakeBundler) MetricsReturns

func (fake *FakeBundler) MetricsReturns(result1 groot.VolumeMetrics, result2 error)

type FakeImagePuller

type FakeImagePuller struct {
	PullStub func(logger lager.Logger, spec groot.ImageSpec) (groot.BundleSpec, error)
	// contains filtered or unexported fields
}

func (*FakeImagePuller) Invocations

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

func (*FakeImagePuller) Pull

func (fake *FakeImagePuller) Pull(logger lager.Logger, spec groot.ImageSpec) (groot.BundleSpec, error)

func (*FakeImagePuller) PullArgsForCall

func (fake *FakeImagePuller) PullArgsForCall(i int) (lager.Logger, groot.ImageSpec)

func (*FakeImagePuller) PullCallCount

func (fake *FakeImagePuller) PullCallCount() int

func (*FakeImagePuller) PullReturns

func (fake *FakeImagePuller) PullReturns(result1 groot.BundleSpec, 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) 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)

Jump to

Keyboard shortcuts

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