Documentation ¶
Index ¶
- Constants
- type AuthHeaderBuilder
- type BoshTask
- type BoshTaskOutput
- type BoshTasks
- type BoshVMsOutput
- type Client
- func (c *Client) DeleteDeployment(name, contextID string, logger *log.Logger) (int, error)
- func (c *Client) Deploy(manifest []byte, contextID string, logger *log.Logger) (int, error)
- func (c *Client) GetDeployment(name string, logger *log.Logger) ([]byte, bool, error)
- func (c *Client) GetDeployments(logger *log.Logger) ([]Deployment, error)
- func (c *Client) GetDirectorVersion(logger *log.Logger) (Version, error)
- func (c *Client) GetNormalisedTasksByContext(deploymentName, contextID string, logger *log.Logger) (BoshTasks, error)
- func (c *Client) GetTask(taskID int, logger *log.Logger) (BoshTask, error)
- func (c *Client) GetTaskOutput(taskID int, logger *log.Logger) ([]BoshTaskOutput, error)
- func (c *Client) GetTasks(deploymentName string, logger *log.Logger) (BoshTasks, error)
- func (c *Client) RunErrand(deploymentName, errandName, contextID string, logger *log.Logger) (int, error)
- func (c *Client) VMs(name string, logger *log.Logger) (bosh.BoshVMs, error)
- func (c *Client) VMsOutput(taskID int, logger *log.Logger) ([]BoshVMsOutput, error)
- type Deployment
- type DeploymentNotFoundError
- type HTTPClient
- type Info
- type Poller
- type Probe
- type RequestError
- type SleepingPoller
- type TaskStateType
- type Version
- type VersionType
Constants ¶
View Source
const ( StemcellDirectorVersionType = VersionType("stemcell") SemverDirectorVersionType = VersionType("semver") MinimumMajorStemcellDirectorVersionForODB = 3262 MinimumMajorSemverDirectorVersionForLifecycleErrands = 261 )
View Source
const ( TaskQueued = "queued" TaskProcessing = "processing" TaskDone = "done" TaskError = "error" TaskCancelled = "cancelled" TaskCancelling = "cancelling" TaskTimeout = "timeout" TaskComplete TaskStateType = iota TaskIncomplete TaskFailed TaskUnknown )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHeaderBuilder ¶
type BoshTask ¶
type BoshTask struct { ID int State string Description string Result string ContextID string `json:"context_id,omitempty"` }
func (BoshTask) StateType ¶
func (t BoshTask) StateType() TaskStateType
type BoshTaskOutput ¶
type BoshTasks ¶
type BoshTasks []BoshTask
func (BoshTasks) FailedTasks ¶
func (BoshTasks) IncompleteTasks ¶
type BoshVMsOutput ¶
type Client ¶
func (*Client) DeleteDeployment ¶
func (*Client) GetDeployment ¶
func (*Client) GetDeployments ¶
func (c *Client) GetDeployments(logger *log.Logger) ([]Deployment, error)
func (*Client) GetDirectorVersion ¶
func (*Client) GetNormalisedTasksByContext ¶
func (*Client) GetTaskOutput ¶
type Deployment ¶
type Deployment struct {
Name string
}
type DeploymentNotFoundError ¶
type DeploymentNotFoundError struct {
// contains filtered or unexported fields
}
type RequestError ¶
type RequestError struct {
// contains filtered or unexported fields
}
func NewRequestError ¶
func NewRequestError(e error) RequestError
type SleepingPoller ¶
type SleepingPoller struct {
// contains filtered or unexported fields
}
func (*SleepingPoller) PollUntil ¶
func (p *SleepingPoller) PollUntil(probe Probe) error
type TaskStateType ¶
type TaskStateType int
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
func NewVersion ¶
func NewVersion(majorVersion int, versionType VersionType) Version
func (Version) SupportsLifecycleErrands ¶
func (Version) SupportsODB ¶
type VersionType ¶
type VersionType string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.