fakes

package
v29.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	DeleteCalled bool
	DeleteErr    error

	FetchCalled   bool
	FetchErr      error
	FetchSettings registry.AgentSettings

	UpdateCalled   bool
	UpdateErr      error
	UpdateSettings registry.AgentSettings
}

FakeClient represents a Fake BOSH Registry Client.

func (*FakeClient) Delete

func (c *FakeClient) Delete(instanceID string) error

Delete deletes the instance settings for a given instance ID.

func (*FakeClient) Fetch

func (c *FakeClient) Fetch(instanceID string) (registry.AgentSettings, error)

Fetch gets the agent settings for a given instance ID.

func (*FakeClient) Update

func (c *FakeClient) Update(instanceID string, agentSettings registry.AgentSettings) error

Update updates the agent settings for a given instance ID.

Jump to

Keyboard shortcuts

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