Documentation ¶
Index ¶
- Constants
- Variables
- type Bosh
- type BoshDirector
- func (director *BoshDirector) ChangeJobState(deploymentName, jobName, state string, index int, manifest io.Reader) (taskId int, err error)
- func (director *BoshDirector) GetDeploymentManifest(deploymentName string) (manifest io.Reader, err error)
- func (director *BoshDirector) RetrieveTaskStatus(taskId int) (task *Task, err error)
- type ManifestResponse
- type Task
- type UrlBuilder
Constants ¶
View Source
const ( ERROR int = 1 PROCESSING int = 2 DONE int = 3 QUEUED int = 4 )
Variables ¶
View Source
var ( TaskStatusCodeError error = errors.New("The resp code from return task should return 200") ManifestStatusCodeError error = errors.New("The retriveing bosh manifest API response code is not equal to 200") TaskRedirectStatusCodeError error = errors.New("The resp code after task creation should return 302") TaskResultUnknown error = errors.New("TASK processed result is unknown") )
View Source
var TASKRESULT map[string]int = map[string]int{"error": ERROR, "processing": PROCESSING, "done": DONE, "queued": QUEUED}
Functions ¶
This section is empty.
Types ¶
type BoshDirector ¶
type BoshDirector struct {
// contains filtered or unexported fields
}
func NewBoshDirector ¶
func NewBoshDirector(ip, username, password string, port int, gateway http.HttpGateway) *BoshDirector
func (*BoshDirector) ChangeJobState ¶
func (*BoshDirector) GetDeploymentManifest ¶
func (director *BoshDirector) GetDeploymentManifest(deploymentName string) (manifest io.Reader, err error)
func (*BoshDirector) RetrieveTaskStatus ¶
func (director *BoshDirector) RetrieveTaskStatus(taskId int) (task *Task, err error)
type ManifestResponse ¶
type ManifestResponse struct {
Manifest string `json:"manifest"`
}
type UrlBuilder ¶
type UrlBuilder interface { }
Click to show internal directories.
Click to hide internal directories.