fakes

package
v0.0.0-...-33bca21 Latest Latest
Warning

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

Go to latest
Published: May 7, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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 FakeContainer

type FakeContainer struct {
	IDStub func() string

	HasPropertiesStub func(garden.Properties) bool

	GraceTimeStub func() time.Duration

	StartStub func() error

	SnapshotStub func(io.Writer) error

	CleanupStub func()

	HandleStub func() string

	StopStub func(kill bool) error

	InfoStub func() (garden.ContainerInfo, error)

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

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

	LimitBandwidthStub func(limits garden.BandwidthLimits) error

	CurrentBandwidthLimitsStub func() (garden.BandwidthLimits, error)

	LimitCPUStub func(limits garden.CPULimits) error

	CurrentCPULimitsStub func() (garden.CPULimits, error)

	LimitDiskStub func(limits garden.DiskLimits) error

	CurrentDiskLimitsStub func() (garden.DiskLimits, error)

	LimitMemoryStub func(limits garden.MemoryLimits) error

	CurrentMemoryLimitsStub func() (garden.MemoryLimits, error)

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

	NetOutStub func(netOutRule garden.NetOutRule) error

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

	AttachStub func(processID uint32, io garden.ProcessIO) (garden.Process, error)

	MetricsStub func() (garden.Metrics, error)

	PropertiesStub func() (garden.Properties, error)

	PropertyStub func(name string) (string, error)

	SetPropertyStub func(name string, value string) error

	RemovePropertyStub func(name string) error
	// contains filtered or unexported fields
}

func (*FakeContainer) Attach

func (fake *FakeContainer) Attach(processID uint32, io garden.ProcessIO) (garden.Process, error)

func (*FakeContainer) AttachArgsForCall

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

func (*FakeContainer) AttachCallCount

func (fake *FakeContainer) AttachCallCount() int

func (*FakeContainer) AttachReturns

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

func (*FakeContainer) Cleanup

func (fake *FakeContainer) Cleanup()

func (*FakeContainer) CleanupCallCount

func (fake *FakeContainer) CleanupCallCount() int

func (*FakeContainer) CurrentBandwidthLimits

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

func (*FakeContainer) CurrentBandwidthLimitsCallCount

func (fake *FakeContainer) CurrentBandwidthLimitsCallCount() int

func (*FakeContainer) CurrentBandwidthLimitsReturns

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

func (*FakeContainer) CurrentCPULimits

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

func (*FakeContainer) CurrentCPULimitsCallCount

func (fake *FakeContainer) CurrentCPULimitsCallCount() int

func (*FakeContainer) CurrentCPULimitsReturns

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

func (*FakeContainer) CurrentDiskLimits

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

func (*FakeContainer) CurrentDiskLimitsCallCount

func (fake *FakeContainer) CurrentDiskLimitsCallCount() int

func (*FakeContainer) CurrentDiskLimitsReturns

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

func (*FakeContainer) CurrentMemoryLimits

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

func (*FakeContainer) CurrentMemoryLimitsCallCount

func (fake *FakeContainer) CurrentMemoryLimitsCallCount() int

func (*FakeContainer) CurrentMemoryLimitsReturns

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

func (*FakeContainer) GraceTime

func (fake *FakeContainer) GraceTime() time.Duration

func (*FakeContainer) GraceTimeCallCount

func (fake *FakeContainer) GraceTimeCallCount() int

func (*FakeContainer) GraceTimeReturns

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

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

func (fake *FakeContainer) HasProperties(arg1 garden.Properties) bool

func (*FakeContainer) HasPropertiesArgsForCall

func (fake *FakeContainer) HasPropertiesArgsForCall(i int) garden.Properties

func (*FakeContainer) HasPropertiesCallCount

func (fake *FakeContainer) HasPropertiesCallCount() int

func (*FakeContainer) HasPropertiesReturns

func (fake *FakeContainer) HasPropertiesReturns(result1 bool)

func (*FakeContainer) ID

func (fake *FakeContainer) ID() string

func (*FakeContainer) IDCallCount

func (fake *FakeContainer) IDCallCount() int

func (*FakeContainer) IDReturns

func (fake *FakeContainer) IDReturns(result1 string)

func (*FakeContainer) Info

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

func (*FakeContainer) InfoCallCount

func (fake *FakeContainer) InfoCallCount() int

func (*FakeContainer) InfoReturns

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

func (*FakeContainer) LimitBandwidth

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

func (*FakeContainer) LimitBandwidthArgsForCall

func (fake *FakeContainer) LimitBandwidthArgsForCall(i int) garden.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 garden.CPULimits) error

func (*FakeContainer) LimitCPUArgsForCall

func (fake *FakeContainer) LimitCPUArgsForCall(i int) garden.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 garden.DiskLimits) error

func (*FakeContainer) LimitDiskArgsForCall

func (fake *FakeContainer) LimitDiskArgsForCall(i int) garden.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 garden.MemoryLimits) error

func (*FakeContainer) LimitMemoryArgsForCall

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

func (*FakeContainer) LimitMemoryCallCount

func (fake *FakeContainer) LimitMemoryCallCount() int

func (*FakeContainer) LimitMemoryReturns

func (fake *FakeContainer) LimitMemoryReturns(result1 error)

func (*FakeContainer) Metrics

func (fake *FakeContainer) Metrics() (garden.Metrics, error)

func (*FakeContainer) MetricsCallCount

func (fake *FakeContainer) MetricsCallCount() int

func (*FakeContainer) MetricsReturns

func (fake *FakeContainer) MetricsReturns(result1 garden.Metrics, result2 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(netOutRule garden.NetOutRule) error

func (*FakeContainer) NetOutArgsForCall

func (fake *FakeContainer) NetOutArgsForCall(i int) garden.NetOutRule

func (*FakeContainer) NetOutCallCount

func (fake *FakeContainer) NetOutCallCount() int

func (*FakeContainer) NetOutReturns

func (fake *FakeContainer) NetOutReturns(result1 error)

func (*FakeContainer) Properties

func (fake *FakeContainer) Properties() (garden.Properties, error)

func (*FakeContainer) PropertiesCallCount

func (fake *FakeContainer) PropertiesCallCount() int

func (*FakeContainer) PropertiesReturns

func (fake *FakeContainer) PropertiesReturns(result1 garden.Properties, result2 error)

func (*FakeContainer) Property

func (fake *FakeContainer) Property(name string) (string, error)

func (*FakeContainer) PropertyArgsForCall

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

func (*FakeContainer) PropertyCallCount

func (fake *FakeContainer) PropertyCallCount() int

func (*FakeContainer) PropertyReturns

func (fake *FakeContainer) PropertyReturns(result1 string, result2 error)

func (*FakeContainer) RemoveProperty

func (fake *FakeContainer) RemoveProperty(name string) error

func (*FakeContainer) RemovePropertyArgsForCall

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

func (*FakeContainer) RemovePropertyCallCount

func (fake *FakeContainer) RemovePropertyCallCount() int

func (*FakeContainer) RemovePropertyReturns

func (fake *FakeContainer) RemovePropertyReturns(result1 error)

func (*FakeContainer) Run

func (*FakeContainer) RunArgsForCall

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

func (*FakeContainer) RunCallCount

func (fake *FakeContainer) RunCallCount() int

func (*FakeContainer) RunReturns

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

func (*FakeContainer) SetProperty

func (fake *FakeContainer) SetProperty(name string, value string) error

func (*FakeContainer) SetPropertyArgsForCall

func (fake *FakeContainer) SetPropertyArgsForCall(i int) (string, string)

func (*FakeContainer) SetPropertyCallCount

func (fake *FakeContainer) SetPropertyCallCount() int

func (*FakeContainer) SetPropertyReturns

func (fake *FakeContainer) SetPropertyReturns(result1 error)

func (*FakeContainer) Snapshot

func (fake *FakeContainer) Snapshot(arg1 io.Writer) error

func (*FakeContainer) SnapshotArgsForCall

func (fake *FakeContainer) SnapshotArgsForCall(i int) io.Writer

func (*FakeContainer) SnapshotCallCount

func (fake *FakeContainer) SnapshotCallCount() int

func (*FakeContainer) SnapshotReturns

func (fake *FakeContainer) SnapshotReturns(result1 error)

func (*FakeContainer) Start

func (fake *FakeContainer) Start() error

func (*FakeContainer) StartCallCount

func (fake *FakeContainer) StartCallCount() int

func (*FakeContainer) StartReturns

func (fake *FakeContainer) StartReturns(result1 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 FakeContainerInitializer

type FakeContainerInitializer struct {
	MountProcStub func() error

	MountTmpStub func() error
	// contains filtered or unexported fields
}

func (*FakeContainerInitializer) MountProc

func (fake *FakeContainerInitializer) MountProc() error

func (*FakeContainerInitializer) MountProcCallCount

func (fake *FakeContainerInitializer) MountProcCallCount() int

func (*FakeContainerInitializer) MountProcReturns

func (fake *FakeContainerInitializer) MountProcReturns(result1 error)

func (*FakeContainerInitializer) MountTmp

func (fake *FakeContainerInitializer) MountTmp() error

func (*FakeContainerInitializer) MountTmpCallCount

func (fake *FakeContainerInitializer) MountTmpCallCount() int

func (*FakeContainerInitializer) MountTmpReturns

func (fake *FakeContainerInitializer) MountTmpReturns(result1 error)

Jump to

Keyboard shortcuts

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