fakes

package
v0.0.0-...-ee2a6a4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 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 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)

Jump to

Keyboard shortcuts

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