rundmcfakes

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

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 9 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

This file was generated by counterfeiter

This file was generated by counterfeiter

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 FakeBundleGenerator

type FakeBundleGenerator struct {
	GenerateStub func(spec gardener.DesiredContainerSpec) goci.Bndl
	// contains filtered or unexported fields
}

func (*FakeBundleGenerator) Generate

func (*FakeBundleGenerator) GenerateArgsForCall

func (fake *FakeBundleGenerator) GenerateArgsForCall(i int) gardener.DesiredContainerSpec

func (*FakeBundleGenerator) GenerateCallCount

func (fake *FakeBundleGenerator) GenerateCallCount() int

func (*FakeBundleGenerator) GenerateReturns

func (fake *FakeBundleGenerator) GenerateReturns(result1 goci.Bndl)

func (*FakeBundleGenerator) Invocations

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

type FakeBundleLoader

type FakeBundleLoader struct {
	LoadStub func(path string) (goci.Bndl, error)
	// contains filtered or unexported fields
}

func (*FakeBundleLoader) Invocations

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

func (*FakeBundleLoader) Load

func (fake *FakeBundleLoader) Load(path string) (goci.Bndl, error)

func (*FakeBundleLoader) LoadArgsForCall

func (fake *FakeBundleLoader) LoadArgsForCall(i int) string

func (*FakeBundleLoader) LoadCallCount

func (fake *FakeBundleLoader) LoadCallCount() int

func (*FakeBundleLoader) LoadReturns

func (fake *FakeBundleLoader) LoadReturns(result1 goci.Bndl, result2 error)

type FakeBundlerRule

type FakeBundlerRule struct {
	ApplyStub func(bndle goci.Bndl, spec gardener.DesiredContainerSpec) goci.Bndl
	// contains filtered or unexported fields
}

func (*FakeBundlerRule) Apply

func (fake *FakeBundlerRule) Apply(bndle goci.Bndl, spec gardener.DesiredContainerSpec) goci.Bndl

func (*FakeBundlerRule) ApplyArgsForCall

func (fake *FakeBundlerRule) ApplyArgsForCall(i int) (goci.Bndl, gardener.DesiredContainerSpec)

func (*FakeBundlerRule) ApplyCallCount

func (fake *FakeBundlerRule) ApplyCallCount() int

func (*FakeBundlerRule) ApplyReturns

func (fake *FakeBundlerRule) ApplyReturns(result1 goci.Bndl)

func (*FakeBundlerRule) Invocations

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

type FakeDepot

type FakeDepot struct {
	CreateStub func(log lager.Logger, handle string, bundle depot.BundleSaver) error

	LookupStub func(log lager.Logger, handle string) (path string, err error)

	DestroyStub func(log lager.Logger, handle string) error

	HandlesStub func() ([]string, error)
	// contains filtered or unexported fields
}

func (*FakeDepot) Create

func (fake *FakeDepot) Create(log lager.Logger, handle string, bundle depot.BundleSaver) error

func (*FakeDepot) CreateArgsForCall

func (fake *FakeDepot) CreateArgsForCall(i int) (lager.Logger, string, depot.BundleSaver)

func (*FakeDepot) CreateCallCount

func (fake *FakeDepot) CreateCallCount() int

func (*FakeDepot) CreateReturns

func (fake *FakeDepot) CreateReturns(result1 error)

func (*FakeDepot) Destroy

func (fake *FakeDepot) Destroy(log lager.Logger, handle string) error

func (*FakeDepot) DestroyArgsForCall

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

func (*FakeDepot) DestroyCallCount

func (fake *FakeDepot) DestroyCallCount() int

func (*FakeDepot) DestroyReturns

func (fake *FakeDepot) DestroyReturns(result1 error)

func (*FakeDepot) Handles

func (fake *FakeDepot) Handles() ([]string, error)

func (*FakeDepot) HandlesCallCount

func (fake *FakeDepot) HandlesCallCount() int

func (*FakeDepot) HandlesReturns

func (fake *FakeDepot) HandlesReturns(result1 []string, result2 error)

func (*FakeDepot) Invocations

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

func (*FakeDepot) Lookup

func (fake *FakeDepot) Lookup(log lager.Logger, handle string) (path string, err error)

func (*FakeDepot) LookupArgsForCall

func (fake *FakeDepot) LookupArgsForCall(i int) (lager.Logger, string)

func (*FakeDepot) LookupCallCount

func (fake *FakeDepot) LookupCallCount() int

func (*FakeDepot) LookupReturns

func (fake *FakeDepot) LookupReturns(result1 string, result2 error)

type FakeEventStore

type FakeEventStore struct {
	OnEventStub func(id string, event string) error

	EventsStub func(id string) []string
	// contains filtered or unexported fields
}

func (*FakeEventStore) Events

func (fake *FakeEventStore) Events(id string) []string

func (*FakeEventStore) EventsArgsForCall

func (fake *FakeEventStore) EventsArgsForCall(i int) string

func (*FakeEventStore) EventsCallCount

func (fake *FakeEventStore) EventsCallCount() int

func (*FakeEventStore) EventsReturns

func (fake *FakeEventStore) EventsReturns(result1 []string)

func (*FakeEventStore) Invocations

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

func (*FakeEventStore) OnEvent

func (fake *FakeEventStore) OnEvent(id string, event string) error

func (*FakeEventStore) OnEventArgsForCall

func (fake *FakeEventStore) OnEventArgsForCall(i int) (string, string)

func (*FakeEventStore) OnEventCallCount

func (fake *FakeEventStore) OnEventCallCount() int

func (*FakeEventStore) OnEventReturns

func (fake *FakeEventStore) OnEventReturns(result1 error)

type FakeNstarRunner

type FakeNstarRunner struct {
	StreamInStub func(log lager.Logger, pid int, path string, user string, tarStream io.Reader) error

	StreamOutStub func(log lager.Logger, pid int, path string, user string) (io.ReadCloser, error)
	// contains filtered or unexported fields
}

func (*FakeNstarRunner) Invocations

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

func (*FakeNstarRunner) StreamIn

func (fake *FakeNstarRunner) StreamIn(log lager.Logger, pid int, path string, user string, tarStream io.Reader) error

func (*FakeNstarRunner) StreamInArgsForCall

func (fake *FakeNstarRunner) StreamInArgsForCall(i int) (lager.Logger, int, string, string, io.Reader)

func (*FakeNstarRunner) StreamInCallCount

func (fake *FakeNstarRunner) StreamInCallCount() int

func (*FakeNstarRunner) StreamInReturns

func (fake *FakeNstarRunner) StreamInReturns(result1 error)

func (*FakeNstarRunner) StreamOut

func (fake *FakeNstarRunner) StreamOut(log lager.Logger, pid int, path string, user string) (io.ReadCloser, error)

func (*FakeNstarRunner) StreamOutArgsForCall

func (fake *FakeNstarRunner) StreamOutArgsForCall(i int) (lager.Logger, int, string, string)

func (*FakeNstarRunner) StreamOutCallCount

func (fake *FakeNstarRunner) StreamOutCallCount() int

func (*FakeNstarRunner) StreamOutReturns

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

type FakeOCIRuntime

type FakeOCIRuntime struct {
	CreateStub func(log lager.Logger, bundlePath, id string, io garden.ProcessIO) error

	ExecStub func(log lager.Logger, id, bundlePath string, spec garden.ProcessSpec, io garden.ProcessIO) (garden.Process, error)

	AttachStub func(log lager.Logger, id, bundlePath, processId string, io garden.ProcessIO) (garden.Process, error)

	KillStub func(log lager.Logger, bundlePath string) error

	DeleteStub func(log lager.Logger, bundlePath string) error

	StateStub func(log lager.Logger, id string) (runrunc.State, error)

	StatsStub func(log lager.Logger, id string) (gardener.ActualContainerMetrics, error)

	WatchEventsStub func(log lager.Logger, id string, eventsNotifier runrunc.EventsNotifier) error
	// contains filtered or unexported fields
}

func (*FakeOCIRuntime) Attach

func (fake *FakeOCIRuntime) Attach(log lager.Logger, id string, bundlePath string, processId string, io garden.ProcessIO) (garden.Process, error)

func (*FakeOCIRuntime) AttachArgsForCall

func (fake *FakeOCIRuntime) AttachArgsForCall(i int) (lager.Logger, string, string, string, garden.ProcessIO)

func (*FakeOCIRuntime) AttachCallCount

func (fake *FakeOCIRuntime) AttachCallCount() int

func (*FakeOCIRuntime) AttachReturns

func (fake *FakeOCIRuntime) AttachReturns(result1 garden.Process, result2 error)

func (*FakeOCIRuntime) Create

func (fake *FakeOCIRuntime) Create(log lager.Logger, bundlePath string, id string, io garden.ProcessIO) error

func (*FakeOCIRuntime) CreateArgsForCall

func (fake *FakeOCIRuntime) CreateArgsForCall(i int) (lager.Logger, string, string, garden.ProcessIO)

func (*FakeOCIRuntime) CreateCallCount

func (fake *FakeOCIRuntime) CreateCallCount() int

func (*FakeOCIRuntime) CreateReturns

func (fake *FakeOCIRuntime) CreateReturns(result1 error)

func (*FakeOCIRuntime) Delete

func (fake *FakeOCIRuntime) Delete(log lager.Logger, bundlePath string) error

func (*FakeOCIRuntime) DeleteArgsForCall

func (fake *FakeOCIRuntime) DeleteArgsForCall(i int) (lager.Logger, string)

func (*FakeOCIRuntime) DeleteCallCount

func (fake *FakeOCIRuntime) DeleteCallCount() int

func (*FakeOCIRuntime) DeleteReturns

func (fake *FakeOCIRuntime) DeleteReturns(result1 error)

func (*FakeOCIRuntime) Exec

func (fake *FakeOCIRuntime) Exec(log lager.Logger, id string, bundlePath string, spec garden.ProcessSpec, io garden.ProcessIO) (garden.Process, error)

func (*FakeOCIRuntime) ExecArgsForCall

func (fake *FakeOCIRuntime) ExecArgsForCall(i int) (lager.Logger, string, string, garden.ProcessSpec, garden.ProcessIO)

func (*FakeOCIRuntime) ExecCallCount

func (fake *FakeOCIRuntime) ExecCallCount() int

func (*FakeOCIRuntime) ExecReturns

func (fake *FakeOCIRuntime) ExecReturns(result1 garden.Process, result2 error)

func (*FakeOCIRuntime) Invocations

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

func (*FakeOCIRuntime) Kill

func (fake *FakeOCIRuntime) Kill(log lager.Logger, bundlePath string) error

func (*FakeOCIRuntime) KillArgsForCall

func (fake *FakeOCIRuntime) KillArgsForCall(i int) (lager.Logger, string)

func (*FakeOCIRuntime) KillCallCount

func (fake *FakeOCIRuntime) KillCallCount() int

func (*FakeOCIRuntime) KillReturns

func (fake *FakeOCIRuntime) KillReturns(result1 error)

func (*FakeOCIRuntime) State

func (fake *FakeOCIRuntime) State(log lager.Logger, id string) (runrunc.State, error)

func (*FakeOCIRuntime) StateArgsForCall

func (fake *FakeOCIRuntime) StateArgsForCall(i int) (lager.Logger, string)

func (*FakeOCIRuntime) StateCallCount

func (fake *FakeOCIRuntime) StateCallCount() int

func (*FakeOCIRuntime) StateReturns

func (fake *FakeOCIRuntime) StateReturns(result1 runrunc.State, result2 error)

func (*FakeOCIRuntime) Stats

func (*FakeOCIRuntime) StatsArgsForCall

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

func (*FakeOCIRuntime) StatsCallCount

func (fake *FakeOCIRuntime) StatsCallCount() int

func (*FakeOCIRuntime) StatsReturns

func (fake *FakeOCIRuntime) StatsReturns(result1 gardener.ActualContainerMetrics, result2 error)

func (*FakeOCIRuntime) WatchEvents

func (fake *FakeOCIRuntime) WatchEvents(log lager.Logger, id string, eventsNotifier runrunc.EventsNotifier) error

func (*FakeOCIRuntime) WatchEventsArgsForCall

func (fake *FakeOCIRuntime) WatchEventsArgsForCall(i int) (lager.Logger, string, runrunc.EventsNotifier)

func (*FakeOCIRuntime) WatchEventsCallCount

func (fake *FakeOCIRuntime) WatchEventsCallCount() int

func (*FakeOCIRuntime) WatchEventsReturns

func (fake *FakeOCIRuntime) WatchEventsReturns(result1 error)

type FakeProperties

type FakeProperties struct {
	SetStub func(handle string, key string, value string)

	GetStub func(handle string, key string) (string, bool)
	// contains filtered or unexported fields
}

func (*FakeProperties) Get

func (fake *FakeProperties) Get(handle string, key string) (string, bool)

func (*FakeProperties) GetArgsForCall

func (fake *FakeProperties) GetArgsForCall(i int) (string, string)

func (*FakeProperties) GetCallCount

func (fake *FakeProperties) GetCallCount() int

func (*FakeProperties) GetReturns

func (fake *FakeProperties) GetReturns(result1 string, result2 bool)

func (*FakeProperties) Invocations

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

func (*FakeProperties) Set

func (fake *FakeProperties) Set(handle string, key string, value string)

func (*FakeProperties) SetArgsForCall

func (fake *FakeProperties) SetArgsForCall(i int) (string, string, string)

func (*FakeProperties) SetCallCount

func (fake *FakeProperties) SetCallCount() int

type FakeStateStore

type FakeStateStore struct {
	StoreStoppedStub func(handle string)

	IsStoppedStub func(handle string) bool
	// contains filtered or unexported fields
}

func (*FakeStateStore) Invocations

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

func (*FakeStateStore) IsStopped

func (fake *FakeStateStore) IsStopped(handle string) bool

func (*FakeStateStore) IsStoppedArgsForCall

func (fake *FakeStateStore) IsStoppedArgsForCall(i int) string

func (*FakeStateStore) IsStoppedCallCount

func (fake *FakeStateStore) IsStoppedCallCount() int

func (*FakeStateStore) IsStoppedReturns

func (fake *FakeStateStore) IsStoppedReturns(result1 bool)

func (*FakeStateStore) StoreStopped

func (fake *FakeStateStore) StoreStopped(handle string)

func (*FakeStateStore) StoreStoppedArgsForCall

func (fake *FakeStateStore) StoreStoppedArgsForCall(i int) string

func (*FakeStateStore) StoreStoppedCallCount

func (fake *FakeStateStore) StoreStoppedCallCount() int

type FakeStopper

type FakeStopper struct {
	StopAllStub func(log lager.Logger, cgroupName string, save []int, kill bool) error
	// contains filtered or unexported fields
}

func (*FakeStopper) Invocations

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

func (*FakeStopper) StopAll

func (fake *FakeStopper) StopAll(log lager.Logger, cgroupName string, save []int, kill bool) error

func (*FakeStopper) StopAllArgsForCall

func (fake *FakeStopper) StopAllArgsForCall(i int) (lager.Logger, string, []int, bool)

func (*FakeStopper) StopAllCallCount

func (fake *FakeStopper) StopAllCallCount() int

func (*FakeStopper) StopAllReturns

func (fake *FakeStopper) StopAllReturns(result1 error)

Jump to

Keyboard shortcuts

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