mockbosh

package
v0.0.0-...-6bf93e3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TaskQueued     = "queued"
	TaskProcessing = "processing"
	TaskDone       = "done"
	TaskError      = "error"
)

Variables

View Source
var CleanupSSHSession = StartSSHSession

Functions

func DeleteDeployment

func DeleteDeployment(deploymentName string) *deleteDeployMock

func Deploy

func Deploy() *deployMock

func Errand

func Errand(deploymentName, errandName string) *errandMock

func GetDeployment

func GetDeployment(deploymentName string) *manifestMock

func GetDeployments

func GetDeployments() *getDeploymentMock

func Info

func Info() *infoMock

func Manifest

func Manifest(deploymentName string) *manifestMock

func New

func New() *mockhttp.Server

func NewTLS

func NewTLS() *mockhttp.Server

func NewTLSWithCert

func NewTLSWithCert(cert tls.Certificate) *mockhttp.Server

func StartSSHSession

func StartSSHSession(deploymentName string) *sshMock

func Task

func Task(taskID int) *taskMock

func TaskEvent

func TaskEvent(taskId int) *taskOutputMock

func TaskOutput

func TaskOutput(taskId int) *taskOutputMock

func Tasks

func Tasks(deploymentName string) *tasksMock

func VMsForDeployment

func VMsForDeployment(deploymentName string) *vmsForDeploymentMock

Types

type VMsOutput

type VMsOutput struct {
	IPs       []string
	JobName   string `json:"job_name"`
	Index     *int   `json:"index"`
	ID        string `json:"id"`
	Bootstrap bool   `json:"bootstrap"`
}

Jump to

Keyboard shortcuts

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