fakes

package
v0.0.0-...-68efac8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBackend

type FakeBackend struct {
	PingStub func() error

	CapacityStub func() (api.Capacity, error)

	CreateStub func(api.ContainerSpec) (api.Container, error)

	DestroyStub func(handle string) error

	ContainersStub func(api.Properties) ([]api.Container, error)

	LookupStub func(handle string) (api.Container, error)

	StartStub func() error

	StopStub func()

	GraceTimeStub func(api.Container) time.Duration
	// contains filtered or unexported fields
}

func (*FakeBackend) Capacity

func (fake *FakeBackend) Capacity() (api.Capacity, error)

func (*FakeBackend) CapacityCallCount

func (fake *FakeBackend) CapacityCallCount() int

func (*FakeBackend) CapacityReturns

func (fake *FakeBackend) CapacityReturns(result1 api.Capacity, result2 error)

func (*FakeBackend) Containers

func (fake *FakeBackend) Containers(arg1 api.Properties) ([]api.Container, error)

func (*FakeBackend) ContainersArgsForCall

func (fake *FakeBackend) ContainersArgsForCall(i int) api.Properties

func (*FakeBackend) ContainersCallCount

func (fake *FakeBackend) ContainersCallCount() int

func (*FakeBackend) ContainersReturns

func (fake *FakeBackend) ContainersReturns(result1 []api.Container, result2 error)

func (*FakeBackend) Create

func (fake *FakeBackend) Create(arg1 api.ContainerSpec) (api.Container, error)

func (*FakeBackend) CreateArgsForCall

func (fake *FakeBackend) CreateArgsForCall(i int) api.ContainerSpec

func (*FakeBackend) CreateCallCount

func (fake *FakeBackend) CreateCallCount() int

func (*FakeBackend) CreateReturns

func (fake *FakeBackend) CreateReturns(result1 api.Container, result2 error)

func (*FakeBackend) Destroy

func (fake *FakeBackend) Destroy(handle string) error

func (*FakeBackend) DestroyArgsForCall

func (fake *FakeBackend) DestroyArgsForCall(i int) string

func (*FakeBackend) DestroyCallCount

func (fake *FakeBackend) DestroyCallCount() int

func (*FakeBackend) DestroyReturns

func (fake *FakeBackend) DestroyReturns(result1 error)

func (*FakeBackend) GraceTime

func (fake *FakeBackend) GraceTime(arg1 api.Container) time.Duration

func (*FakeBackend) GraceTimeArgsForCall

func (fake *FakeBackend) GraceTimeArgsForCall(i int) api.Container

func (*FakeBackend) GraceTimeCallCount

func (fake *FakeBackend) GraceTimeCallCount() int

func (*FakeBackend) GraceTimeReturns

func (fake *FakeBackend) GraceTimeReturns(result1 time.Duration)

func (*FakeBackend) Lookup

func (fake *FakeBackend) Lookup(handle string) (api.Container, error)

func (*FakeBackend) LookupArgsForCall

func (fake *FakeBackend) LookupArgsForCall(i int) string

func (*FakeBackend) LookupCallCount

func (fake *FakeBackend) LookupCallCount() int

func (*FakeBackend) LookupReturns

func (fake *FakeBackend) LookupReturns(result1 api.Container, result2 error)

func (*FakeBackend) Ping

func (fake *FakeBackend) Ping() error

func (*FakeBackend) PingCallCount

func (fake *FakeBackend) PingCallCount() int

func (*FakeBackend) PingReturns

func (fake *FakeBackend) PingReturns(result1 error)

func (*FakeBackend) Start

func (fake *FakeBackend) Start() error

func (*FakeBackend) StartCallCount

func (fake *FakeBackend) StartCallCount() int

func (*FakeBackend) StartReturns

func (fake *FakeBackend) StartReturns(result1 error)

func (*FakeBackend) Stop

func (fake *FakeBackend) Stop()

func (*FakeBackend) StopCallCount

func (fake *FakeBackend) StopCallCount() int

type FakeContainer

type FakeContainer struct {
	HandleStub func() string

	StopStub func(kill bool) error

	InfoStub func() (api.ContainerInfo, error)

	StreamInStub func(dstPath string, tarStream io.Reader) error

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

	LimitBandwidthStub func(limits api.BandwidthLimits) error

	CurrentBandwidthLimitsStub func() (api.BandwidthLimits, error)

	LimitCPUStub func(limits api.CPULimits) error

	CurrentCPULimitsStub func() (api.CPULimits, error)

	LimitDiskStub func(limits api.DiskLimits) error

	CurrentDiskLimitsStub func() (api.DiskLimits, error)

	LimitMemoryStub func(limits api.MemoryLimits) error

	CurrentMemoryLimitsStub func() (api.MemoryLimits, error)

	NetInStub func(hostPort, containerPort uint32) (uint32, uint32, error)

	NetOutStub func(network string, port uint32) error

	RunStub func(api.ProcessSpec, api.ProcessIO) (api.Process, error)

	AttachStub func(uint32, api.ProcessIO) (api.Process, error)
	// contains filtered or unexported fields
}

func (*FakeContainer) Attach

func (fake *FakeContainer) Attach(arg1 uint32, arg2 api.ProcessIO) (api.Process, error)

func (*FakeContainer) AttachArgsForCall

func (fake *FakeContainer) AttachArgsForCall(i int) (uint32, api.ProcessIO)

func (*FakeContainer) AttachCallCount

func (fake *FakeContainer) AttachCallCount() int

func (*FakeContainer) AttachReturns

func (fake *FakeContainer) AttachReturns(result1 api.Process, result2 error)

func (*FakeContainer) CurrentBandwidthLimits

func (fake *FakeContainer) CurrentBandwidthLimits() (api.BandwidthLimits, error)

func (*FakeContainer) CurrentBandwidthLimitsCallCount

func (fake *FakeContainer) CurrentBandwidthLimitsCallCount() int

func (*FakeContainer) CurrentBandwidthLimitsReturns

func (fake *FakeContainer) CurrentBandwidthLimitsReturns(result1 api.BandwidthLimits, result2 error)

func (*FakeContainer) CurrentCPULimits

func (fake *FakeContainer) CurrentCPULimits() (api.CPULimits, error)

func (*FakeContainer) CurrentCPULimitsCallCount

func (fake *FakeContainer) CurrentCPULimitsCallCount() int

func (*FakeContainer) CurrentCPULimitsReturns

func (fake *FakeContainer) CurrentCPULimitsReturns(result1 api.CPULimits, result2 error)

func (*FakeContainer) CurrentDiskLimits

func (fake *FakeContainer) CurrentDiskLimits() (api.DiskLimits, error)

func (*FakeContainer) CurrentDiskLimitsCallCount

func (fake *FakeContainer) CurrentDiskLimitsCallCount() int

func (*FakeContainer) CurrentDiskLimitsReturns

func (fake *FakeContainer) CurrentDiskLimitsReturns(result1 api.DiskLimits, result2 error)

func (*FakeContainer) CurrentMemoryLimits

func (fake *FakeContainer) CurrentMemoryLimits() (api.MemoryLimits, error)

func (*FakeContainer) CurrentMemoryLimitsCallCount

func (fake *FakeContainer) CurrentMemoryLimitsCallCount() int

func (*FakeContainer) CurrentMemoryLimitsReturns

func (fake *FakeContainer) CurrentMemoryLimitsReturns(result1 api.MemoryLimits, result2 error)

func (*FakeContainer) Handle

func (fake *FakeContainer) Handle() string

func (*FakeContainer) HandleCallCount

func (fake *FakeContainer) HandleCallCount() int

func (*FakeContainer) HandleReturns

func (fake *FakeContainer) HandleReturns(result1 string)

func (*FakeContainer) Info

func (fake *FakeContainer) Info() (api.ContainerInfo, error)

func (*FakeContainer) InfoCallCount

func (fake *FakeContainer) InfoCallCount() int

func (*FakeContainer) InfoReturns

func (fake *FakeContainer) InfoReturns(result1 api.ContainerInfo, result2 error)

func (*FakeContainer) LimitBandwidth

func (fake *FakeContainer) LimitBandwidth(limits api.BandwidthLimits) error

func (*FakeContainer) LimitBandwidthArgsForCall

func (fake *FakeContainer) LimitBandwidthArgsForCall(i int) api.BandwidthLimits

func (*FakeContainer) LimitBandwidthCallCount

func (fake *FakeContainer) LimitBandwidthCallCount() int

func (*FakeContainer) LimitBandwidthReturns

func (fake *FakeContainer) LimitBandwidthReturns(result1 error)

func (*FakeContainer) LimitCPU

func (fake *FakeContainer) LimitCPU(limits api.CPULimits) error

func (*FakeContainer) LimitCPUArgsForCall

func (fake *FakeContainer) LimitCPUArgsForCall(i int) api.CPULimits

func (*FakeContainer) LimitCPUCallCount

func (fake *FakeContainer) LimitCPUCallCount() int

func (*FakeContainer) LimitCPUReturns

func (fake *FakeContainer) LimitCPUReturns(result1 error)

func (*FakeContainer) LimitDisk

func (fake *FakeContainer) LimitDisk(limits api.DiskLimits) error

func (*FakeContainer) LimitDiskArgsForCall

func (fake *FakeContainer) LimitDiskArgsForCall(i int) api.DiskLimits

func (*FakeContainer) LimitDiskCallCount

func (fake *FakeContainer) LimitDiskCallCount() int

func (*FakeContainer) LimitDiskReturns

func (fake *FakeContainer) LimitDiskReturns(result1 error)

func (*FakeContainer) LimitMemory

func (fake *FakeContainer) LimitMemory(limits api.MemoryLimits) error

func (*FakeContainer) LimitMemoryArgsForCall

func (fake *FakeContainer) LimitMemoryArgsForCall(i int) api.MemoryLimits

func (*FakeContainer) LimitMemoryCallCount

func (fake *FakeContainer) LimitMemoryCallCount() int

func (*FakeContainer) LimitMemoryReturns

func (fake *FakeContainer) LimitMemoryReturns(result1 error)

func (*FakeContainer) NetIn

func (fake *FakeContainer) NetIn(hostPort uint32, containerPort uint32) (uint32, uint32, error)

func (*FakeContainer) NetInArgsForCall

func (fake *FakeContainer) NetInArgsForCall(i int) (uint32, uint32)

func (*FakeContainer) NetInCallCount

func (fake *FakeContainer) NetInCallCount() int

func (*FakeContainer) NetInReturns

func (fake *FakeContainer) NetInReturns(result1 uint32, result2 uint32, result3 error)

func (*FakeContainer) NetOut

func (fake *FakeContainer) NetOut(network string, port uint32) error

func (*FakeContainer) NetOutArgsForCall

func (fake *FakeContainer) NetOutArgsForCall(i int) (string, uint32)

func (*FakeContainer) NetOutCallCount

func (fake *FakeContainer) NetOutCallCount() int

func (*FakeContainer) NetOutReturns

func (fake *FakeContainer) NetOutReturns(result1 error)

func (*FakeContainer) Run

func (fake *FakeContainer) Run(arg1 api.ProcessSpec, arg2 api.ProcessIO) (api.Process, error)

func (*FakeContainer) RunArgsForCall

func (fake *FakeContainer) RunArgsForCall(i int) (api.ProcessSpec, api.ProcessIO)

func (*FakeContainer) RunCallCount

func (fake *FakeContainer) RunCallCount() int

func (*FakeContainer) RunReturns

func (fake *FakeContainer) RunReturns(result1 api.Process, result2 error)

func (*FakeContainer) Stop

func (fake *FakeContainer) Stop(kill bool) error

func (*FakeContainer) StopArgsForCall

func (fake *FakeContainer) StopArgsForCall(i int) bool

func (*FakeContainer) StopCallCount

func (fake *FakeContainer) StopCallCount() int

func (*FakeContainer) StopReturns

func (fake *FakeContainer) StopReturns(result1 error)

func (*FakeContainer) StreamIn

func (fake *FakeContainer) StreamIn(dstPath string, tarStream io.Reader) error

func (*FakeContainer) StreamInArgsForCall

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

func (*FakeContainer) StreamInCallCount

func (fake *FakeContainer) StreamInCallCount() int

func (*FakeContainer) StreamInReturns

func (fake *FakeContainer) StreamInReturns(result1 error)

func (*FakeContainer) StreamOut

func (fake *FakeContainer) StreamOut(srcPath string) (io.ReadCloser, error)

func (*FakeContainer) StreamOutArgsForCall

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

func (*FakeContainer) StreamOutCallCount

func (fake *FakeContainer) StreamOutCallCount() int

func (*FakeContainer) StreamOutReturns

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

type FakeProcess

type FakeProcess struct {
	IDStub func() uint32

	WaitStub func() (int, error)

	SetTTYStub func(api.TTYSpec) error
	// contains filtered or unexported fields
}

func (*FakeProcess) ID

func (fake *FakeProcess) ID() uint32

func (*FakeProcess) IDCallCount

func (fake *FakeProcess) IDCallCount() int

func (*FakeProcess) IDReturns

func (fake *FakeProcess) IDReturns(result1 uint32)

func (*FakeProcess) SetTTY

func (fake *FakeProcess) SetTTY(arg1 api.TTYSpec) error

func (*FakeProcess) SetTTYArgsForCall

func (fake *FakeProcess) SetTTYArgsForCall(i int) api.TTYSpec

func (*FakeProcess) SetTTYCallCount

func (fake *FakeProcess) SetTTYCallCount() int

func (*FakeProcess) SetTTYReturns

func (fake *FakeProcess) SetTTYReturns(result1 error)

func (*FakeProcess) Wait

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

func (*FakeProcess) WaitCallCount

func (fake *FakeProcess) WaitCallCount() int

func (*FakeProcess) WaitReturns

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

Jump to

Keyboard shortcuts

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