fakes

package
v0.0.0-...-8791bc1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2016 License: Apache-2.0 Imports: 5 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 FakeContainer

type FakeContainer struct {
	IDStub func() string

	HasPropertiesStub func(garden.Properties) bool

	GraceTimeStub func() time.Duration

	StartStub func() error

	SnapshotStub func(io.Writer) error

	ResourceSpecStub func() linux_backend.LinuxContainerSpec

	RestoreStub func(linux_backend.LinuxContainerSpec) error

	CleanupStub func() error

	LimitDiskStub func(limits garden.DiskLimits) error

	HandleStub func() string

	StopStub func(kill bool) error

	InfoStub func() (garden.ContainerInfo, error)

	StreamInStub func(spec garden.StreamInSpec) error

	StreamOutStub func(spec garden.StreamOutSpec) (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)

	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 string, io garden.ProcessIO) (garden.Process, error)

	MetricsStub func() (garden.Metrics, error)

	SetGraceTimeStub func(graceTime time.Duration) 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 string, io garden.ProcessIO) (garden.Process, error)

func (*FakeContainer) AttachArgsForCall

func (fake *FakeContainer) AttachArgsForCall(i int) (string, 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() error

func (*FakeContainer) CleanupCallCount

func (fake *FakeContainer) CleanupCallCount() int

func (*FakeContainer) CleanupReturns

func (fake *FakeContainer) CleanupReturns(result1 error)

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

func (fake *FakeContainer) ResourceSpec() linux_backend.LinuxContainerSpec

func (*FakeContainer) ResourceSpecCallCount

func (fake *FakeContainer) ResourceSpecCallCount() int

func (*FakeContainer) ResourceSpecReturns

func (fake *FakeContainer) ResourceSpecReturns(result1 linux_backend.LinuxContainerSpec)

func (*FakeContainer) Restore

func (*FakeContainer) RestoreArgsForCall

func (fake *FakeContainer) RestoreArgsForCall(i int) linux_backend.LinuxContainerSpec

func (*FakeContainer) RestoreCallCount

func (fake *FakeContainer) RestoreCallCount() int

func (*FakeContainer) RestoreReturns

func (fake *FakeContainer) RestoreReturns(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) SetGraceTime

func (fake *FakeContainer) SetGraceTime(graceTime time.Duration) error

func (*FakeContainer) SetGraceTimeArgsForCall

func (fake *FakeContainer) SetGraceTimeArgsForCall(i int) time.Duration

func (*FakeContainer) SetGraceTimeCallCount

func (fake *FakeContainer) SetGraceTimeCallCount() int

func (*FakeContainer) SetGraceTimeReturns

func (fake *FakeContainer) SetGraceTimeReturns(result1 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(spec garden.StreamInSpec) error

func (*FakeContainer) StreamInArgsForCall

func (fake *FakeContainer) StreamInArgsForCall(i int) garden.StreamInSpec

func (*FakeContainer) StreamInCallCount

func (fake *FakeContainer) StreamInCallCount() int

func (*FakeContainer) StreamInReturns

func (fake *FakeContainer) StreamInReturns(result1 error)

func (*FakeContainer) StreamOut

func (fake *FakeContainer) StreamOut(spec garden.StreamOutSpec) (io.ReadCloser, error)

func (*FakeContainer) StreamOutArgsForCall

func (fake *FakeContainer) StreamOutArgsForCall(i int) garden.StreamOutSpec

func (*FakeContainer) StreamOutCallCount

func (fake *FakeContainer) StreamOutCallCount() int

func (*FakeContainer) StreamOutReturns

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

type FakeContainerProvider

type FakeContainerProvider struct {
	ProvideContainerStub func(linux_backend.LinuxContainerSpec) linux_backend.Container
	// contains filtered or unexported fields
}

func (*FakeContainerProvider) ProvideContainer

func (*FakeContainerProvider) ProvideContainerArgsForCall

func (fake *FakeContainerProvider) ProvideContainerArgsForCall(i int) linux_backend.LinuxContainerSpec

func (*FakeContainerProvider) ProvideContainerCallCount

func (fake *FakeContainerProvider) ProvideContainerCallCount() int

func (*FakeContainerProvider) ProvideContainerReturns

func (fake *FakeContainerProvider) ProvideContainerReturns(result1 linux_backend.Container)

type FakeHealthChecker

type FakeHealthChecker struct {
	HealthCheckStub func() error
	// contains filtered or unexported fields
}

func (*FakeHealthChecker) HealthCheck

func (fake *FakeHealthChecker) HealthCheck() error

func (*FakeHealthChecker) HealthCheckCallCount

func (fake *FakeHealthChecker) HealthCheckCallCount() int

func (*FakeHealthChecker) HealthCheckReturns

func (fake *FakeHealthChecker) HealthCheckReturns(result1 error)

type FakeResourcePool

type FakeResourcePool struct {
	SetupStub func() error

	AcquireStub func(garden.ContainerSpec) (linux_backend.LinuxContainerSpec, error)

	RestoreStub func(io.Reader) (linux_backend.LinuxContainerSpec, error)

	ReleaseStub func(linux_backend.LinuxContainerSpec) error

	PruneStub func(keep map[string]bool) error

	MaxContainersStub func() int
	// contains filtered or unexported fields
}

func (*FakeResourcePool) Acquire

func (*FakeResourcePool) AcquireArgsForCall

func (fake *FakeResourcePool) AcquireArgsForCall(i int) garden.ContainerSpec

func (*FakeResourcePool) AcquireCallCount

func (fake *FakeResourcePool) AcquireCallCount() int

func (*FakeResourcePool) AcquireReturns

func (fake *FakeResourcePool) AcquireReturns(result1 linux_backend.LinuxContainerSpec, result2 error)

func (*FakeResourcePool) MaxContainers

func (fake *FakeResourcePool) MaxContainers() int

func (*FakeResourcePool) MaxContainersCallCount

func (fake *FakeResourcePool) MaxContainersCallCount() int

func (*FakeResourcePool) MaxContainersReturns

func (fake *FakeResourcePool) MaxContainersReturns(result1 int)

func (*FakeResourcePool) Prune

func (fake *FakeResourcePool) Prune(keep map[string]bool) error

func (*FakeResourcePool) PruneArgsForCall

func (fake *FakeResourcePool) PruneArgsForCall(i int) map[string]bool

func (*FakeResourcePool) PruneCallCount

func (fake *FakeResourcePool) PruneCallCount() int

func (*FakeResourcePool) PruneReturns

func (fake *FakeResourcePool) PruneReturns(result1 error)

func (*FakeResourcePool) Release

func (*FakeResourcePool) ReleaseArgsForCall

func (fake *FakeResourcePool) ReleaseArgsForCall(i int) linux_backend.LinuxContainerSpec

func (*FakeResourcePool) ReleaseCallCount

func (fake *FakeResourcePool) ReleaseCallCount() int

func (*FakeResourcePool) ReleaseReturns

func (fake *FakeResourcePool) ReleaseReturns(result1 error)

func (*FakeResourcePool) Restore

func (*FakeResourcePool) RestoreArgsForCall

func (fake *FakeResourcePool) RestoreArgsForCall(i int) io.Reader

func (*FakeResourcePool) RestoreCallCount

func (fake *FakeResourcePool) RestoreCallCount() int

func (*FakeResourcePool) RestoreReturns

func (fake *FakeResourcePool) RestoreReturns(result1 linux_backend.LinuxContainerSpec, result2 error)

func (*FakeResourcePool) Setup

func (fake *FakeResourcePool) Setup() error

func (*FakeResourcePool) SetupCallCount

func (fake *FakeResourcePool) SetupCallCount() int

func (*FakeResourcePool) SetupReturns

func (fake *FakeResourcePool) SetupReturns(result1 error)

Jump to

Keyboard shortcuts

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