fakes

package
v0.0.0-...-f0c9d02 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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 FakeClient

type FakeClient struct {
	AllocateContainersStub func(lager.Logger, string, []executor.AllocationRequest) []executor.AllocationFailure

	CleanupStub func(lager.Logger)

	DeleteContainerStub func(lager.Logger, string, string) error

	GetBulkMetricsStub func(lager.Logger) (map[string]executor.Metrics, error)

	GetContainerStub func(lager.Logger, string) (executor.Container, error)

	GetFilesStub func(lager.Logger, string, string) (io.ReadCloser, error)

	HealthyStub func(lager.Logger) bool

	ListContainersStub func(lager.Logger) ([]executor.Container, error)

	PingStub func(lager.Logger) error

	RemainingResourcesStub func(lager.Logger) (executor.ExecutorResources, error)

	RunContainerStub func(lager.Logger, string, *executor.RunRequest) error

	SetHealthyStub func(lager.Logger, bool)

	StopContainerStub func(lager.Logger, string, string) error

	SubscribeToEventsStub func(lager.Logger) (executor.EventSource, error)

	TotalResourcesStub func(lager.Logger) (executor.ExecutorResources, error)

	UpdateContainerStub func(lager.Logger, *executor.UpdateRequest) error

	VolumeDriversStub func(lager.Logger) ([]string, error)
	// contains filtered or unexported fields
}

func (*FakeClient) AllocateContainers

func (fake *FakeClient) AllocateContainers(arg1 lager.Logger, arg2 string, arg3 []executor.AllocationRequest) []executor.AllocationFailure

func (*FakeClient) AllocateContainersArgsForCall

func (fake *FakeClient) AllocateContainersArgsForCall(i int) (lager.Logger, string, []executor.AllocationRequest)

func (*FakeClient) AllocateContainersCallCount

func (fake *FakeClient) AllocateContainersCallCount() int

func (*FakeClient) AllocateContainersCalls

func (fake *FakeClient) AllocateContainersCalls(stub func(lager.Logger, string, []executor.AllocationRequest) []executor.AllocationFailure)

func (*FakeClient) AllocateContainersReturns

func (fake *FakeClient) AllocateContainersReturns(result1 []executor.AllocationFailure)

func (*FakeClient) AllocateContainersReturnsOnCall

func (fake *FakeClient) AllocateContainersReturnsOnCall(i int, result1 []executor.AllocationFailure)

func (*FakeClient) Cleanup

func (fake *FakeClient) Cleanup(arg1 lager.Logger)

func (*FakeClient) CleanupArgsForCall

func (fake *FakeClient) CleanupArgsForCall(i int) lager.Logger

func (*FakeClient) CleanupCallCount

func (fake *FakeClient) CleanupCallCount() int

func (*FakeClient) CleanupCalls

func (fake *FakeClient) CleanupCalls(stub func(lager.Logger))

func (*FakeClient) DeleteContainer

func (fake *FakeClient) DeleteContainer(arg1 lager.Logger, arg2 string, arg3 string) error

func (*FakeClient) DeleteContainerArgsForCall

func (fake *FakeClient) DeleteContainerArgsForCall(i int) (lager.Logger, string, string)

func (*FakeClient) DeleteContainerCallCount

func (fake *FakeClient) DeleteContainerCallCount() int

func (*FakeClient) DeleteContainerCalls

func (fake *FakeClient) DeleteContainerCalls(stub func(lager.Logger, string, string) error)

func (*FakeClient) DeleteContainerReturns

func (fake *FakeClient) DeleteContainerReturns(result1 error)

func (*FakeClient) DeleteContainerReturnsOnCall

func (fake *FakeClient) DeleteContainerReturnsOnCall(i int, result1 error)

func (*FakeClient) GetBulkMetrics

func (fake *FakeClient) GetBulkMetrics(arg1 lager.Logger) (map[string]executor.Metrics, error)

func (*FakeClient) GetBulkMetricsArgsForCall

func (fake *FakeClient) GetBulkMetricsArgsForCall(i int) lager.Logger

func (*FakeClient) GetBulkMetricsCallCount

func (fake *FakeClient) GetBulkMetricsCallCount() int

func (*FakeClient) GetBulkMetricsCalls

func (fake *FakeClient) GetBulkMetricsCalls(stub func(lager.Logger) (map[string]executor.Metrics, error))

func (*FakeClient) GetBulkMetricsReturns

func (fake *FakeClient) GetBulkMetricsReturns(result1 map[string]executor.Metrics, result2 error)

func (*FakeClient) GetBulkMetricsReturnsOnCall

func (fake *FakeClient) GetBulkMetricsReturnsOnCall(i int, result1 map[string]executor.Metrics, result2 error)

func (*FakeClient) GetContainer

func (fake *FakeClient) GetContainer(arg1 lager.Logger, arg2 string) (executor.Container, error)

func (*FakeClient) GetContainerArgsForCall

func (fake *FakeClient) GetContainerArgsForCall(i int) (lager.Logger, string)

func (*FakeClient) GetContainerCallCount

func (fake *FakeClient) GetContainerCallCount() int

func (*FakeClient) GetContainerCalls

func (fake *FakeClient) GetContainerCalls(stub func(lager.Logger, string) (executor.Container, error))

func (*FakeClient) GetContainerReturns

func (fake *FakeClient) GetContainerReturns(result1 executor.Container, result2 error)

func (*FakeClient) GetContainerReturnsOnCall

func (fake *FakeClient) GetContainerReturnsOnCall(i int, result1 executor.Container, result2 error)

func (*FakeClient) GetFiles

func (fake *FakeClient) GetFiles(arg1 lager.Logger, arg2 string, arg3 string) (io.ReadCloser, error)

func (*FakeClient) GetFilesArgsForCall

func (fake *FakeClient) GetFilesArgsForCall(i int) (lager.Logger, string, string)

func (*FakeClient) GetFilesCallCount

func (fake *FakeClient) GetFilesCallCount() int

func (*FakeClient) GetFilesCalls

func (fake *FakeClient) GetFilesCalls(stub func(lager.Logger, string, string) (io.ReadCloser, error))

func (*FakeClient) GetFilesReturns

func (fake *FakeClient) GetFilesReturns(result1 io.ReadCloser, result2 error)

func (*FakeClient) GetFilesReturnsOnCall

func (fake *FakeClient) GetFilesReturnsOnCall(i int, result1 io.ReadCloser, result2 error)

func (*FakeClient) Healthy

func (fake *FakeClient) Healthy(arg1 lager.Logger) bool

func (*FakeClient) HealthyArgsForCall

func (fake *FakeClient) HealthyArgsForCall(i int) lager.Logger

func (*FakeClient) HealthyCallCount

func (fake *FakeClient) HealthyCallCount() int

func (*FakeClient) HealthyCalls

func (fake *FakeClient) HealthyCalls(stub func(lager.Logger) bool)

func (*FakeClient) HealthyReturns

func (fake *FakeClient) HealthyReturns(result1 bool)

func (*FakeClient) HealthyReturnsOnCall

func (fake *FakeClient) HealthyReturnsOnCall(i int, result1 bool)

func (*FakeClient) Invocations

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

func (*FakeClient) ListContainers

func (fake *FakeClient) ListContainers(arg1 lager.Logger) ([]executor.Container, error)

func (*FakeClient) ListContainersArgsForCall

func (fake *FakeClient) ListContainersArgsForCall(i int) lager.Logger

func (*FakeClient) ListContainersCallCount

func (fake *FakeClient) ListContainersCallCount() int

func (*FakeClient) ListContainersCalls

func (fake *FakeClient) ListContainersCalls(stub func(lager.Logger) ([]executor.Container, error))

func (*FakeClient) ListContainersReturns

func (fake *FakeClient) ListContainersReturns(result1 []executor.Container, result2 error)

func (*FakeClient) ListContainersReturnsOnCall

func (fake *FakeClient) ListContainersReturnsOnCall(i int, result1 []executor.Container, result2 error)

func (*FakeClient) Ping

func (fake *FakeClient) Ping(arg1 lager.Logger) error

func (*FakeClient) PingArgsForCall

func (fake *FakeClient) PingArgsForCall(i int) lager.Logger

func (*FakeClient) PingCallCount

func (fake *FakeClient) PingCallCount() int

func (*FakeClient) PingCalls

func (fake *FakeClient) PingCalls(stub func(lager.Logger) error)

func (*FakeClient) PingReturns

func (fake *FakeClient) PingReturns(result1 error)

func (*FakeClient) PingReturnsOnCall

func (fake *FakeClient) PingReturnsOnCall(i int, result1 error)

func (*FakeClient) RemainingResources

func (fake *FakeClient) RemainingResources(arg1 lager.Logger) (executor.ExecutorResources, error)

func (*FakeClient) RemainingResourcesArgsForCall

func (fake *FakeClient) RemainingResourcesArgsForCall(i int) lager.Logger

func (*FakeClient) RemainingResourcesCallCount

func (fake *FakeClient) RemainingResourcesCallCount() int

func (*FakeClient) RemainingResourcesCalls

func (fake *FakeClient) RemainingResourcesCalls(stub func(lager.Logger) (executor.ExecutorResources, error))

func (*FakeClient) RemainingResourcesReturns

func (fake *FakeClient) RemainingResourcesReturns(result1 executor.ExecutorResources, result2 error)

func (*FakeClient) RemainingResourcesReturnsOnCall

func (fake *FakeClient) RemainingResourcesReturnsOnCall(i int, result1 executor.ExecutorResources, result2 error)

func (*FakeClient) RunContainer

func (fake *FakeClient) RunContainer(arg1 lager.Logger, arg2 string, arg3 *executor.RunRequest) error

func (*FakeClient) RunContainerArgsForCall

func (fake *FakeClient) RunContainerArgsForCall(i int) (lager.Logger, string, *executor.RunRequest)

func (*FakeClient) RunContainerCallCount

func (fake *FakeClient) RunContainerCallCount() int

func (*FakeClient) RunContainerCalls

func (fake *FakeClient) RunContainerCalls(stub func(lager.Logger, string, *executor.RunRequest) error)

func (*FakeClient) RunContainerReturns

func (fake *FakeClient) RunContainerReturns(result1 error)

func (*FakeClient) RunContainerReturnsOnCall

func (fake *FakeClient) RunContainerReturnsOnCall(i int, result1 error)

func (*FakeClient) SetHealthy

func (fake *FakeClient) SetHealthy(arg1 lager.Logger, arg2 bool)

func (*FakeClient) SetHealthyArgsForCall

func (fake *FakeClient) SetHealthyArgsForCall(i int) (lager.Logger, bool)

func (*FakeClient) SetHealthyCallCount

func (fake *FakeClient) SetHealthyCallCount() int

func (*FakeClient) SetHealthyCalls

func (fake *FakeClient) SetHealthyCalls(stub func(lager.Logger, bool))

func (*FakeClient) StopContainer

func (fake *FakeClient) StopContainer(arg1 lager.Logger, arg2 string, arg3 string) error

func (*FakeClient) StopContainerArgsForCall

func (fake *FakeClient) StopContainerArgsForCall(i int) (lager.Logger, string, string)

func (*FakeClient) StopContainerCallCount

func (fake *FakeClient) StopContainerCallCount() int

func (*FakeClient) StopContainerCalls

func (fake *FakeClient) StopContainerCalls(stub func(lager.Logger, string, string) error)

func (*FakeClient) StopContainerReturns

func (fake *FakeClient) StopContainerReturns(result1 error)

func (*FakeClient) StopContainerReturnsOnCall

func (fake *FakeClient) StopContainerReturnsOnCall(i int, result1 error)

func (*FakeClient) SubscribeToEvents

func (fake *FakeClient) SubscribeToEvents(arg1 lager.Logger) (executor.EventSource, error)

func (*FakeClient) SubscribeToEventsArgsForCall

func (fake *FakeClient) SubscribeToEventsArgsForCall(i int) lager.Logger

func (*FakeClient) SubscribeToEventsCallCount

func (fake *FakeClient) SubscribeToEventsCallCount() int

func (*FakeClient) SubscribeToEventsCalls

func (fake *FakeClient) SubscribeToEventsCalls(stub func(lager.Logger) (executor.EventSource, error))

func (*FakeClient) SubscribeToEventsReturns

func (fake *FakeClient) SubscribeToEventsReturns(result1 executor.EventSource, result2 error)

func (*FakeClient) SubscribeToEventsReturnsOnCall

func (fake *FakeClient) SubscribeToEventsReturnsOnCall(i int, result1 executor.EventSource, result2 error)

func (*FakeClient) TotalResources

func (fake *FakeClient) TotalResources(arg1 lager.Logger) (executor.ExecutorResources, error)

func (*FakeClient) TotalResourcesArgsForCall

func (fake *FakeClient) TotalResourcesArgsForCall(i int) lager.Logger

func (*FakeClient) TotalResourcesCallCount

func (fake *FakeClient) TotalResourcesCallCount() int

func (*FakeClient) TotalResourcesCalls

func (fake *FakeClient) TotalResourcesCalls(stub func(lager.Logger) (executor.ExecutorResources, error))

func (*FakeClient) TotalResourcesReturns

func (fake *FakeClient) TotalResourcesReturns(result1 executor.ExecutorResources, result2 error)

func (*FakeClient) TotalResourcesReturnsOnCall

func (fake *FakeClient) TotalResourcesReturnsOnCall(i int, result1 executor.ExecutorResources, result2 error)

func (*FakeClient) UpdateContainer

func (fake *FakeClient) UpdateContainer(arg1 lager.Logger, arg2 *executor.UpdateRequest) error

func (*FakeClient) UpdateContainerArgsForCall

func (fake *FakeClient) UpdateContainerArgsForCall(i int) (lager.Logger, *executor.UpdateRequest)

func (*FakeClient) UpdateContainerCallCount

func (fake *FakeClient) UpdateContainerCallCount() int

func (*FakeClient) UpdateContainerCalls

func (fake *FakeClient) UpdateContainerCalls(stub func(lager.Logger, *executor.UpdateRequest) error)

func (*FakeClient) UpdateContainerReturns

func (fake *FakeClient) UpdateContainerReturns(result1 error)

func (*FakeClient) UpdateContainerReturnsOnCall

func (fake *FakeClient) UpdateContainerReturnsOnCall(i int, result1 error)

func (*FakeClient) VolumeDrivers

func (fake *FakeClient) VolumeDrivers(arg1 lager.Logger) ([]string, error)

func (*FakeClient) VolumeDriversArgsForCall

func (fake *FakeClient) VolumeDriversArgsForCall(i int) lager.Logger

func (*FakeClient) VolumeDriversCallCount

func (fake *FakeClient) VolumeDriversCallCount() int

func (*FakeClient) VolumeDriversCalls

func (fake *FakeClient) VolumeDriversCalls(stub func(lager.Logger) ([]string, error))

func (*FakeClient) VolumeDriversReturns

func (fake *FakeClient) VolumeDriversReturns(result1 []string, result2 error)

func (*FakeClient) VolumeDriversReturnsOnCall

func (fake *FakeClient) VolumeDriversReturnsOnCall(i int, result1 []string, result2 error)

type FakeEventSource

type FakeEventSource struct {
	CloseStub func() error

	NextStub func() (executor.Event, error)
	// contains filtered or unexported fields
}

func (*FakeEventSource) Close

func (fake *FakeEventSource) Close() error

func (*FakeEventSource) CloseCallCount

func (fake *FakeEventSource) CloseCallCount() int

func (*FakeEventSource) CloseCalls

func (fake *FakeEventSource) CloseCalls(stub func() error)

func (*FakeEventSource) CloseReturns

func (fake *FakeEventSource) CloseReturns(result1 error)

func (*FakeEventSource) CloseReturnsOnCall

func (fake *FakeEventSource) CloseReturnsOnCall(i int, result1 error)

func (*FakeEventSource) Invocations

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

func (*FakeEventSource) Next

func (fake *FakeEventSource) Next() (executor.Event, error)

func (*FakeEventSource) NextCallCount

func (fake *FakeEventSource) NextCallCount() int

func (*FakeEventSource) NextCalls

func (fake *FakeEventSource) NextCalls(stub func() (executor.Event, error))

func (*FakeEventSource) NextReturns

func (fake *FakeEventSource) NextReturns(result1 executor.Event, result2 error)

func (*FakeEventSource) NextReturnsOnCall

func (fake *FakeEventSource) NextReturnsOnCall(i int, result1 executor.Event, result2 error)

type FakeGardenClient

type FakeGardenClient struct {
	garden.Client

	Connection *connectionfakes.FakeConnection
}

func NewGardenClient

func NewGardenClient() *FakeGardenClient

Jump to

Keyboard shortcuts

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