runruncfakes

package
v0.0.0-...-cf22b21 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 8 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.

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 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)

func (*FakeBundleLoader) LoadReturnsOnCall

func (fake *FakeBundleLoader) LoadReturnsOnCall(i int, result1 goci.Bndl, result2 error)

type FakeEnvDeterminer

type FakeEnvDeterminer struct {
	EnvForStub func(bndl goci.Bndl, spec runrunc.ProcessSpec) []string
	// contains filtered or unexported fields
}

func (*FakeEnvDeterminer) EnvFor

func (fake *FakeEnvDeterminer) EnvFor(bndl goci.Bndl, spec runrunc.ProcessSpec) []string

func (*FakeEnvDeterminer) EnvForArgsForCall

func (fake *FakeEnvDeterminer) EnvForArgsForCall(i int) (goci.Bndl, runrunc.ProcessSpec)

func (*FakeEnvDeterminer) EnvForCallCount

func (fake *FakeEnvDeterminer) EnvForCallCount() int

func (*FakeEnvDeterminer) EnvForReturns

func (fake *FakeEnvDeterminer) EnvForReturns(result1 []string)

func (*FakeEnvDeterminer) EnvForReturnsOnCall

func (fake *FakeEnvDeterminer) EnvForReturnsOnCall(i int, result1 []string)

func (*FakeEnvDeterminer) Invocations

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

type FakeEventsNotifier

type FakeEventsNotifier struct {
	OnEventStub func(handle string, event string) error
	// contains filtered or unexported fields
}

func (*FakeEventsNotifier) Invocations

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

func (*FakeEventsNotifier) OnEvent

func (fake *FakeEventsNotifier) OnEvent(handle string, event string) error

func (*FakeEventsNotifier) OnEventArgsForCall

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

func (*FakeEventsNotifier) OnEventCallCount

func (fake *FakeEventsNotifier) OnEventCallCount() int

func (*FakeEventsNotifier) OnEventReturns

func (fake *FakeEventsNotifier) OnEventReturns(result1 error)

func (*FakeEventsNotifier) OnEventReturnsOnCall

func (fake *FakeEventsNotifier) OnEventReturnsOnCall(i int, result1 error)

type FakeExecRunner

type FakeExecRunner struct {
	RunStub func(log lager.Logger, processID, processPath, sandboxHandle, sandboxBundlePath string, containerRootHostUID, containerRootHostGID uint32, pio garden.ProcessIO, tty bool, procJSON io.Reader, extraCleanup func() error) (garden.Process, error)

	AttachStub func(log lager.Logger, processID string, io garden.ProcessIO, processesPath string) (garden.Process, error)
	// contains filtered or unexported fields
}

func (*FakeExecRunner) Attach

func (fake *FakeExecRunner) Attach(log lager.Logger, processID string, io garden.ProcessIO, processesPath string) (garden.Process, error)

func (*FakeExecRunner) AttachArgsForCall

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

func (*FakeExecRunner) AttachCallCount

func (fake *FakeExecRunner) AttachCallCount() int

func (*FakeExecRunner) AttachReturns

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

func (*FakeExecRunner) AttachReturnsOnCall

func (fake *FakeExecRunner) AttachReturnsOnCall(i int, result1 garden.Process, result2 error)

func (*FakeExecRunner) Invocations

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

func (*FakeExecRunner) Run

func (fake *FakeExecRunner) Run(log lager.Logger, processID string, processPath string, sandboxHandle string, sandboxBundlePath string, containerRootHostUID uint32, containerRootHostGID uint32, pio garden.ProcessIO, tty bool, procJSON io.Reader, extraCleanup func() error) (garden.Process, error)

func (*FakeExecRunner) RunArgsForCall

func (fake *FakeExecRunner) RunArgsForCall(i int) (lager.Logger, string, string, string, string, uint32, uint32, garden.ProcessIO, bool, io.Reader, func() error)

func (*FakeExecRunner) RunCallCount

func (fake *FakeExecRunner) RunCallCount() int

func (*FakeExecRunner) RunReturns

func (fake *FakeExecRunner) RunReturns(result1 garden.Process, result2 error)

func (*FakeExecRunner) RunReturnsOnCall

func (fake *FakeExecRunner) RunReturnsOnCall(i int, result1 garden.Process, result2 error)

type FakeMkdirer

type FakeMkdirer struct {
	MkdirAsStub func(rootFSPathFile string, uid, gid int, mode os.FileMode, recreate bool, path ...string) error
	// contains filtered or unexported fields
}

func (*FakeMkdirer) Invocations

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

func (*FakeMkdirer) MkdirAs

func (fake *FakeMkdirer) MkdirAs(rootFSPathFile string, uid int, gid int, mode os.FileMode, recreate bool, path ...string) error

func (*FakeMkdirer) MkdirAsArgsForCall

func (fake *FakeMkdirer) MkdirAsArgsForCall(i int) (string, int, int, os.FileMode, bool, []string)

func (*FakeMkdirer) MkdirAsCallCount

func (fake *FakeMkdirer) MkdirAsCallCount() int

func (*FakeMkdirer) MkdirAsReturns

func (fake *FakeMkdirer) MkdirAsReturns(result1 error)

func (*FakeMkdirer) MkdirAsReturnsOnCall

func (fake *FakeMkdirer) MkdirAsReturnsOnCall(i int, result1 error)

type FakeProcessBuilder

type FakeProcessBuilder struct {
	BuildProcessStub func(bndl goci.Bndl, processSpec runrunc.ProcessSpec) *runrunc.PreparedSpec
	// contains filtered or unexported fields
}

func (*FakeProcessBuilder) BuildProcess

func (fake *FakeProcessBuilder) BuildProcess(bndl goci.Bndl, processSpec runrunc.ProcessSpec) *runrunc.PreparedSpec

func (*FakeProcessBuilder) BuildProcessArgsForCall

func (fake *FakeProcessBuilder) BuildProcessArgsForCall(i int) (goci.Bndl, runrunc.ProcessSpec)

func (*FakeProcessBuilder) BuildProcessCallCount

func (fake *FakeProcessBuilder) BuildProcessCallCount() int

func (*FakeProcessBuilder) BuildProcessReturns

func (fake *FakeProcessBuilder) BuildProcessReturns(result1 *runrunc.PreparedSpec)

func (*FakeProcessBuilder) BuildProcessReturnsOnCall

func (fake *FakeProcessBuilder) BuildProcessReturnsOnCall(i int, result1 *runrunc.PreparedSpec)

func (*FakeProcessBuilder) Invocations

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

type FakeRuncBinary

type FakeRuncBinary struct {
	ExecCommandStub func(id, processJSONPath, pidFilePath string) *exec.Cmd

	EventsCommandStub func(id string) *exec.Cmd

	StateCommandStub func(id, logFile string) *exec.Cmd

	StatsCommandStub func(id, logFile string) *exec.Cmd

	KillCommandStub func(id, signal, logFile string) *exec.Cmd

	DeleteCommandStub func(id string, force bool, logFile string) *exec.Cmd
	// contains filtered or unexported fields
}

func (*FakeRuncBinary) DeleteCommand

func (fake *FakeRuncBinary) DeleteCommand(id string, force bool, logFile string) *exec.Cmd

func (*FakeRuncBinary) DeleteCommandArgsForCall

func (fake *FakeRuncBinary) DeleteCommandArgsForCall(i int) (string, bool, string)

func (*FakeRuncBinary) DeleteCommandCallCount

func (fake *FakeRuncBinary) DeleteCommandCallCount() int

func (*FakeRuncBinary) DeleteCommandReturns

func (fake *FakeRuncBinary) DeleteCommandReturns(result1 *exec.Cmd)

func (*FakeRuncBinary) DeleteCommandReturnsOnCall

func (fake *FakeRuncBinary) DeleteCommandReturnsOnCall(i int, result1 *exec.Cmd)

func (*FakeRuncBinary) EventsCommand

func (fake *FakeRuncBinary) EventsCommand(id string) *exec.Cmd

func (*FakeRuncBinary) EventsCommandArgsForCall

func (fake *FakeRuncBinary) EventsCommandArgsForCall(i int) string

func (*FakeRuncBinary) EventsCommandCallCount

func (fake *FakeRuncBinary) EventsCommandCallCount() int

func (*FakeRuncBinary) EventsCommandReturns

func (fake *FakeRuncBinary) EventsCommandReturns(result1 *exec.Cmd)

func (*FakeRuncBinary) EventsCommandReturnsOnCall

func (fake *FakeRuncBinary) EventsCommandReturnsOnCall(i int, result1 *exec.Cmd)

func (*FakeRuncBinary) ExecCommand

func (fake *FakeRuncBinary) ExecCommand(id string, processJSONPath string, pidFilePath string) *exec.Cmd

func (*FakeRuncBinary) ExecCommandArgsForCall

func (fake *FakeRuncBinary) ExecCommandArgsForCall(i int) (string, string, string)

func (*FakeRuncBinary) ExecCommandCallCount

func (fake *FakeRuncBinary) ExecCommandCallCount() int

func (*FakeRuncBinary) ExecCommandReturns

func (fake *FakeRuncBinary) ExecCommandReturns(result1 *exec.Cmd)

func (*FakeRuncBinary) ExecCommandReturnsOnCall

func (fake *FakeRuncBinary) ExecCommandReturnsOnCall(i int, result1 *exec.Cmd)

func (*FakeRuncBinary) Invocations

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

func (*FakeRuncBinary) KillCommand

func (fake *FakeRuncBinary) KillCommand(id string, signal string, logFile string) *exec.Cmd

func (*FakeRuncBinary) KillCommandArgsForCall

func (fake *FakeRuncBinary) KillCommandArgsForCall(i int) (string, string, string)

func (*FakeRuncBinary) KillCommandCallCount

func (fake *FakeRuncBinary) KillCommandCallCount() int

func (*FakeRuncBinary) KillCommandReturns

func (fake *FakeRuncBinary) KillCommandReturns(result1 *exec.Cmd)

func (*FakeRuncBinary) KillCommandReturnsOnCall

func (fake *FakeRuncBinary) KillCommandReturnsOnCall(i int, result1 *exec.Cmd)

func (*FakeRuncBinary) StateCommand

func (fake *FakeRuncBinary) StateCommand(id string, logFile string) *exec.Cmd

func (*FakeRuncBinary) StateCommandArgsForCall

func (fake *FakeRuncBinary) StateCommandArgsForCall(i int) (string, string)

func (*FakeRuncBinary) StateCommandCallCount

func (fake *FakeRuncBinary) StateCommandCallCount() int

func (*FakeRuncBinary) StateCommandReturns

func (fake *FakeRuncBinary) StateCommandReturns(result1 *exec.Cmd)

func (*FakeRuncBinary) StateCommandReturnsOnCall

func (fake *FakeRuncBinary) StateCommandReturnsOnCall(i int, result1 *exec.Cmd)

func (*FakeRuncBinary) StatsCommand

func (fake *FakeRuncBinary) StatsCommand(id string, logFile string) *exec.Cmd

func (*FakeRuncBinary) StatsCommandArgsForCall

func (fake *FakeRuncBinary) StatsCommandArgsForCall(i int) (string, string)

func (*FakeRuncBinary) StatsCommandCallCount

func (fake *FakeRuncBinary) StatsCommandCallCount() int

func (*FakeRuncBinary) StatsCommandReturns

func (fake *FakeRuncBinary) StatsCommandReturns(result1 *exec.Cmd)

func (*FakeRuncBinary) StatsCommandReturnsOnCall

func (fake *FakeRuncBinary) StatsCommandReturnsOnCall(i int, result1 *exec.Cmd)

type FakeRuncCmdRunner

type FakeRuncCmdRunner struct {
	RunAndLogStub func(log lager.Logger, cmd runrunc.LoggingCmd) error
	// contains filtered or unexported fields
}

func (*FakeRuncCmdRunner) Invocations

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

func (*FakeRuncCmdRunner) RunAndLog

func (fake *FakeRuncCmdRunner) RunAndLog(log lager.Logger, cmd runrunc.LoggingCmd) error

func (*FakeRuncCmdRunner) RunAndLogArgsForCall

func (fake *FakeRuncCmdRunner) RunAndLogArgsForCall(i int) (lager.Logger, runrunc.LoggingCmd)

func (*FakeRuncCmdRunner) RunAndLogCallCount

func (fake *FakeRuncCmdRunner) RunAndLogCallCount() int

func (*FakeRuncCmdRunner) RunAndLogReturns

func (fake *FakeRuncCmdRunner) RunAndLogReturns(result1 error)

func (*FakeRuncCmdRunner) RunAndLogReturnsOnCall

func (fake *FakeRuncCmdRunner) RunAndLogReturnsOnCall(i int, result1 error)

type FakeRunner

type FakeRunner struct {
	RunStub func(log lager.Logger)
	// contains filtered or unexported fields
}

func (*FakeRunner) Invocations

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

func (*FakeRunner) Run

func (fake *FakeRunner) Run(log lager.Logger)

func (*FakeRunner) RunArgsForCall

func (fake *FakeRunner) RunArgsForCall(i int) lager.Logger

func (*FakeRunner) RunCallCount

func (fake *FakeRunner) RunCallCount() int

type FakeStatsNotifier

type FakeStatsNotifier struct {
	OnStatStub func(handle string, cpuStat garden.ContainerCPUStat, memoryStat garden.ContainerMemoryStat)
	// contains filtered or unexported fields
}

func (*FakeStatsNotifier) Invocations

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

func (*FakeStatsNotifier) OnStat

func (fake *FakeStatsNotifier) OnStat(handle string, cpuStat garden.ContainerCPUStat, memoryStat garden.ContainerMemoryStat)

func (*FakeStatsNotifier) OnStatArgsForCall

func (*FakeStatsNotifier) OnStatCallCount

func (fake *FakeStatsNotifier) OnStatCallCount() int

type FakeUidGenerator

type FakeUidGenerator struct {
	GenerateStub func() string
	// contains filtered or unexported fields
}

func (*FakeUidGenerator) Generate

func (fake *FakeUidGenerator) Generate() string

func (*FakeUidGenerator) GenerateCallCount

func (fake *FakeUidGenerator) GenerateCallCount() int

func (*FakeUidGenerator) GenerateReturns

func (fake *FakeUidGenerator) GenerateReturns(result1 string)

func (*FakeUidGenerator) GenerateReturnsOnCall

func (fake *FakeUidGenerator) GenerateReturnsOnCall(i int, result1 string)

func (*FakeUidGenerator) Invocations

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

type FakeUserLookupper

type FakeUserLookupper struct {
	LookupStub func(rootFsPath string, user string) (*runrunc.ExecUser, error)
	// contains filtered or unexported fields
}

func (*FakeUserLookupper) Invocations

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

func (*FakeUserLookupper) Lookup

func (fake *FakeUserLookupper) Lookup(rootFsPath string, user string) (*runrunc.ExecUser, error)

func (*FakeUserLookupper) LookupArgsForCall

func (fake *FakeUserLookupper) LookupArgsForCall(i int) (string, string)

func (*FakeUserLookupper) LookupCallCount

func (fake *FakeUserLookupper) LookupCallCount() int

func (*FakeUserLookupper) LookupReturns

func (fake *FakeUserLookupper) LookupReturns(result1 *runrunc.ExecUser, result2 error)

func (*FakeUserLookupper) LookupReturnsOnCall

func (fake *FakeUserLookupper) LookupReturnsOnCall(i int, result1 *runrunc.ExecUser, result2 error)

type FakeWaitWatcher

type FakeWaitWatcher struct {
	OnExitStub func(log lager.Logger, process runrunc.Waiter, onExit runrunc.Runner)
	// contains filtered or unexported fields
}

func (*FakeWaitWatcher) Invocations

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

func (*FakeWaitWatcher) OnExit

func (fake *FakeWaitWatcher) OnExit(log lager.Logger, process runrunc.Waiter, onExit runrunc.Runner)

func (*FakeWaitWatcher) OnExitArgsForCall

func (fake *FakeWaitWatcher) OnExitArgsForCall(i int) (lager.Logger, runrunc.Waiter, runrunc.Runner)

func (*FakeWaitWatcher) OnExitCallCount

func (fake *FakeWaitWatcher) OnExitCallCount() int

type FakeWaiter

type FakeWaiter struct {
	WaitStub func() (int, error)
	// contains filtered or unexported fields
}

func (*FakeWaiter) Invocations

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

func (*FakeWaiter) Wait

func (fake *FakeWaiter) Wait() (int, error)

func (*FakeWaiter) WaitCallCount

func (fake *FakeWaiter) WaitCallCount() int

func (*FakeWaiter) WaitReturns

func (fake *FakeWaiter) WaitReturns(result1 int, result2 error)

func (*FakeWaiter) WaitReturnsOnCall

func (fake *FakeWaiter) WaitReturnsOnCall(i int, result1 int, result2 error)

Jump to

Keyboard shortcuts

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