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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeConnection

type FakeConnection struct {
	PingStub func() error

	CapacityStub func() (api.Capacity, error)

	CreateStub func(spec api.ContainerSpec) (string, error)

	ListStub func(properties api.Properties) ([]string, error)

	DestroyStub func(handle string) error

	StopStub func(handle string, kill bool) error

	InfoStub func(handle string) (api.ContainerInfo, error)

	StreamInStub func(handle string, dstPath string, reader io.Reader) error

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

	LimitBandwidthStub func(handle string, limits api.BandwidthLimits) (api.BandwidthLimits, error)

	LimitCPUStub func(handle string, limits api.CPULimits) (api.CPULimits, error)

	LimitDiskStub func(handle string, limits api.DiskLimits) (api.DiskLimits, error)

	LimitMemoryStub func(handle string, limit api.MemoryLimits) (api.MemoryLimits, error)

	CurrentBandwidthLimitsStub func(handle string) (api.BandwidthLimits, error)

	CurrentCPULimitsStub func(handle string) (api.CPULimits, error)

	CurrentDiskLimitsStub func(handle string) (api.DiskLimits, error)

	CurrentMemoryLimitsStub func(handle string) (api.MemoryLimits, error)

	RunStub func(handle string, spec api.ProcessSpec, io api.ProcessIO) (api.Process, error)

	AttachStub func(handle string, processID uint32, io api.ProcessIO) (api.Process, error)

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

	NetOutStub func(handle string, network string, port uint32) error
	// contains filtered or unexported fields
}

func (*FakeConnection) Attach

func (fake *FakeConnection) Attach(handle string, processID uint32, io api.ProcessIO) (api.Process, error)

func (*FakeConnection) AttachArgsForCall

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

func (*FakeConnection) AttachCallCount

func (fake *FakeConnection) AttachCallCount() int

func (*FakeConnection) AttachReturns

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

func (*FakeConnection) Capacity

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

func (*FakeConnection) CapacityCallCount

func (fake *FakeConnection) CapacityCallCount() int

func (*FakeConnection) CapacityReturns

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

func (*FakeConnection) Create

func (fake *FakeConnection) Create(spec api.ContainerSpec) (string, error)

func (*FakeConnection) CreateArgsForCall

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

func (*FakeConnection) CreateCallCount

func (fake *FakeConnection) CreateCallCount() int

func (*FakeConnection) CreateReturns

func (fake *FakeConnection) CreateReturns(result1 string, result2 error)

func (*FakeConnection) CurrentBandwidthLimits

func (fake *FakeConnection) CurrentBandwidthLimits(handle string) (api.BandwidthLimits, error)

func (*FakeConnection) CurrentBandwidthLimitsArgsForCall

func (fake *FakeConnection) CurrentBandwidthLimitsArgsForCall(i int) string

func (*FakeConnection) CurrentBandwidthLimitsCallCount

func (fake *FakeConnection) CurrentBandwidthLimitsCallCount() int

func (*FakeConnection) CurrentBandwidthLimitsReturns

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

func (*FakeConnection) CurrentCPULimits

func (fake *FakeConnection) CurrentCPULimits(handle string) (api.CPULimits, error)

func (*FakeConnection) CurrentCPULimitsArgsForCall

func (fake *FakeConnection) CurrentCPULimitsArgsForCall(i int) string

func (*FakeConnection) CurrentCPULimitsCallCount

func (fake *FakeConnection) CurrentCPULimitsCallCount() int

func (*FakeConnection) CurrentCPULimitsReturns

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

func (*FakeConnection) CurrentDiskLimits

func (fake *FakeConnection) CurrentDiskLimits(handle string) (api.DiskLimits, error)

func (*FakeConnection) CurrentDiskLimitsArgsForCall

func (fake *FakeConnection) CurrentDiskLimitsArgsForCall(i int) string

func (*FakeConnection) CurrentDiskLimitsCallCount

func (fake *FakeConnection) CurrentDiskLimitsCallCount() int

func (*FakeConnection) CurrentDiskLimitsReturns

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

func (*FakeConnection) CurrentMemoryLimits

func (fake *FakeConnection) CurrentMemoryLimits(handle string) (api.MemoryLimits, error)

func (*FakeConnection) CurrentMemoryLimitsArgsForCall

func (fake *FakeConnection) CurrentMemoryLimitsArgsForCall(i int) string

func (*FakeConnection) CurrentMemoryLimitsCallCount

func (fake *FakeConnection) CurrentMemoryLimitsCallCount() int

func (*FakeConnection) CurrentMemoryLimitsReturns

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

func (*FakeConnection) Destroy

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

func (*FakeConnection) DestroyArgsForCall

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

func (*FakeConnection) DestroyCallCount

func (fake *FakeConnection) DestroyCallCount() int

func (*FakeConnection) DestroyReturns

func (fake *FakeConnection) DestroyReturns(result1 error)

func (*FakeConnection) Info

func (fake *FakeConnection) Info(handle string) (api.ContainerInfo, error)

func (*FakeConnection) InfoArgsForCall

func (fake *FakeConnection) InfoArgsForCall(i int) string

func (*FakeConnection) InfoCallCount

func (fake *FakeConnection) InfoCallCount() int

func (*FakeConnection) InfoReturns

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

func (*FakeConnection) LimitBandwidth

func (fake *FakeConnection) LimitBandwidth(handle string, limits api.BandwidthLimits) (api.BandwidthLimits, error)

func (*FakeConnection) LimitBandwidthArgsForCall

func (fake *FakeConnection) LimitBandwidthArgsForCall(i int) (string, api.BandwidthLimits)

func (*FakeConnection) LimitBandwidthCallCount

func (fake *FakeConnection) LimitBandwidthCallCount() int

func (*FakeConnection) LimitBandwidthReturns

func (fake *FakeConnection) LimitBandwidthReturns(result1 api.BandwidthLimits, result2 error)

func (*FakeConnection) LimitCPU

func (fake *FakeConnection) LimitCPU(handle string, limits api.CPULimits) (api.CPULimits, error)

func (*FakeConnection) LimitCPUArgsForCall

func (fake *FakeConnection) LimitCPUArgsForCall(i int) (string, api.CPULimits)

func (*FakeConnection) LimitCPUCallCount

func (fake *FakeConnection) LimitCPUCallCount() int

func (*FakeConnection) LimitCPUReturns

func (fake *FakeConnection) LimitCPUReturns(result1 api.CPULimits, result2 error)

func (*FakeConnection) LimitDisk

func (fake *FakeConnection) LimitDisk(handle string, limits api.DiskLimits) (api.DiskLimits, error)

func (*FakeConnection) LimitDiskArgsForCall

func (fake *FakeConnection) LimitDiskArgsForCall(i int) (string, api.DiskLimits)

func (*FakeConnection) LimitDiskCallCount

func (fake *FakeConnection) LimitDiskCallCount() int

func (*FakeConnection) LimitDiskReturns

func (fake *FakeConnection) LimitDiskReturns(result1 api.DiskLimits, result2 error)

func (*FakeConnection) LimitMemory

func (fake *FakeConnection) LimitMemory(handle string, limit api.MemoryLimits) (api.MemoryLimits, error)

func (*FakeConnection) LimitMemoryArgsForCall

func (fake *FakeConnection) LimitMemoryArgsForCall(i int) (string, api.MemoryLimits)

func (*FakeConnection) LimitMemoryCallCount

func (fake *FakeConnection) LimitMemoryCallCount() int

func (*FakeConnection) LimitMemoryReturns

func (fake *FakeConnection) LimitMemoryReturns(result1 api.MemoryLimits, result2 error)

func (*FakeConnection) List

func (fake *FakeConnection) List(properties api.Properties) ([]string, error)

func (*FakeConnection) ListArgsForCall

func (fake *FakeConnection) ListArgsForCall(i int) api.Properties

func (*FakeConnection) ListCallCount

func (fake *FakeConnection) ListCallCount() int

func (*FakeConnection) ListReturns

func (fake *FakeConnection) ListReturns(result1 []string, result2 error)

func (*FakeConnection) NetIn

func (fake *FakeConnection) NetIn(handle string, hostPort uint32, containerPort uint32) (uint32, uint32, error)

func (*FakeConnection) NetInArgsForCall

func (fake *FakeConnection) NetInArgsForCall(i int) (string, uint32, uint32)

func (*FakeConnection) NetInCallCount

func (fake *FakeConnection) NetInCallCount() int

func (*FakeConnection) NetInReturns

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

func (*FakeConnection) NetOut

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

func (*FakeConnection) NetOutArgsForCall

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

func (*FakeConnection) NetOutCallCount

func (fake *FakeConnection) NetOutCallCount() int

func (*FakeConnection) NetOutReturns

func (fake *FakeConnection) NetOutReturns(result1 error)

func (*FakeConnection) Ping

func (fake *FakeConnection) Ping() error

func (*FakeConnection) PingCallCount

func (fake *FakeConnection) PingCallCount() int

func (*FakeConnection) PingReturns

func (fake *FakeConnection) PingReturns(result1 error)

func (*FakeConnection) Run

func (fake *FakeConnection) Run(handle string, spec api.ProcessSpec, io api.ProcessIO) (api.Process, error)

func (*FakeConnection) RunArgsForCall

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

func (*FakeConnection) RunCallCount

func (fake *FakeConnection) RunCallCount() int

func (*FakeConnection) RunReturns

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

func (*FakeConnection) Stop

func (fake *FakeConnection) Stop(handle string, kill bool) error

func (*FakeConnection) StopArgsForCall

func (fake *FakeConnection) StopArgsForCall(i int) (string, bool)

func (*FakeConnection) StopCallCount

func (fake *FakeConnection) StopCallCount() int

func (*FakeConnection) StopReturns

func (fake *FakeConnection) StopReturns(result1 error)

func (*FakeConnection) StreamIn

func (fake *FakeConnection) StreamIn(handle string, dstPath string, reader io.Reader) error

func (*FakeConnection) StreamInArgsForCall

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

func (*FakeConnection) StreamInCallCount

func (fake *FakeConnection) StreamInCallCount() int

func (*FakeConnection) StreamInReturns

func (fake *FakeConnection) StreamInReturns(result1 error)

func (*FakeConnection) StreamOut

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

func (*FakeConnection) StreamOutArgsForCall

func (fake *FakeConnection) StreamOutArgsForCall(i int) (string, string)

func (*FakeConnection) StreamOutCallCount

func (fake *FakeConnection) StreamOutCallCount() int

func (*FakeConnection) StreamOutReturns

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

Jump to

Keyboard shortcuts

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