Back to godoc.org

Package fakes

v0.0.0-...-ee2a6a4
Latest Go to latest

The highest tagged major version is .

Published: Dec 3, 2018 | License: Apache-2.0 | Module: github.com/cloudfoundry-community/bosh-softlayer-tools

Index

type FakeBmpClient

type FakeBmpClient struct {
	Username string
	Password string
	Url      string

	ConfigPathString string

	InfoResponsesIndex int
	InfoResponses      []clients.InfoResponse
	InfoResponse       clients.InfoResponse
	InfoErr            error

	BmsResponsesIndex int
	BmsResponses      []clients.BmsResponse
	BmsResponse       clients.BmsResponse
	BmsErr            error

	SlPackagesResponsesIndex int
	SlPackagesResponses      []clients.SlPackagesResponse
	SlPackagesResponse       clients.SlPackagesResponse
	SlPackagesErr            error

	StemcellsResponsesIndex int
	StemcellsResponses      []clients.StemcellsResponse
	StemcellsResponse       clients.StemcellsResponse
	StemcellsErr            error

	SlPackageOptionsResponsesIndex int
	SlPackageOptionsResponses      []clients.SlPackageOptionsResponse
	SlPackageOptionsResponse       clients.SlPackageOptionsResponse
	SlPackageOptionsErr            error

	TasksResponsesIndex int
	TasksResponses      []clients.TasksResponse
	TasksResponse       clients.TasksResponse
	TasksErr            error

	TaskOutputResponsesIndex int
	TaskOutputResponses      []clients.TaskOutputResponse
	TaskOutputResponse       clients.TaskOutputResponse
	TaskOutputErr            error

	TaskJsonResponsesIndex int
	TaskJsonResponses      []clients.TaskJsonResponse
	TaskJsonResponse       clients.TaskJsonResponse
	TaskJsonOutputErr      error

	UpdateStateResponsesIndex int
	UpdateStateResponses      []clients.UpdateStateResponse
	UpdateStateResponse       clients.UpdateStateResponse
	UpdateStateErr            error

	LoginResponse clients.LoginResponse
	LoginErr      error

	CreateBaremetalsResponsesIndex int
	CreateBaremetalsResponses      []clients.CreateBaremetalsResponse
	CreateBaremetalsResponse       clients.CreateBaremetalsResponse
	CreateBaremetalsErr            error

	ProvisioningBaremetalResponsesIndex int
	ProvisioningBaremetalResponses      []clients.CreateBaremetalsResponse
	ProvisioningBaremetalResponse       clients.CreateBaremetalsResponse
	ProvisioningBaremetalErr            error
}

func NewFakeBmpClient

func NewFakeBmpClient(username, password, url string, configPath string) *FakeBmpClient

func (*FakeBmpClient) Bms

func (bc *FakeBmpClient) Bms(deploymentName string) (clients.BmsResponse, error)

func (*FakeBmpClient) ConfigPath

func (bc *FakeBmpClient) ConfigPath() string

func (*FakeBmpClient) CreateBaremetals

func (bc *FakeBmpClient) CreateBaremetals(CreateBaremetalsInfo clients.CreateBaremetalsInfo, DryRun bool) (clients.CreateBaremetalsResponse, error)

func (*FakeBmpClient) Info

func (bc *FakeBmpClient) Info() (clients.InfoResponse, error)

func (*FakeBmpClient) Login

func (bc *FakeBmpClient) Login(username string, password string) (clients.LoginResponse, error)

func (*FakeBmpClient) ProvisioningBaremetal

func (bc *FakeBmpClient) ProvisioningBaremetal(provisioningBaremetalInfo clients.ProvisioningBaremetalInfo) (clients.CreateBaremetalsResponse, error)

func (*FakeBmpClient) SlPackageOptions

func (bc *FakeBmpClient) SlPackageOptions(packageId string) (clients.SlPackageOptionsResponse, error)

func (*FakeBmpClient) SlPackages

func (bc *FakeBmpClient) SlPackages() (clients.SlPackagesResponse, error)

func (*FakeBmpClient) Stemcells

func (bc *FakeBmpClient) Stemcells() (clients.StemcellsResponse, error)

func (*FakeBmpClient) TaskJsonOutput

func (bc *FakeBmpClient) TaskJsonOutput(taskID int, level string) (clients.TaskJsonResponse, error)

func (*FakeBmpClient) TaskOutput

func (bc *FakeBmpClient) TaskOutput(taskID int, level string) (clients.TaskOutputResponse, error)

func (*FakeBmpClient) Tasks

func (bc *FakeBmpClient) Tasks(latest int) (clients.TasksResponse, error)

func (*FakeBmpClient) UpdateState

func (bc *FakeBmpClient) UpdateState(serverId string, status string) (clients.UpdateStateResponse, error)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier