Documentation ¶
Index ¶
- Constants
- type AuthHeaderBuilder
- type AuthenticationOptions
- type AuthenticatorBuilder
- type BoshTask
- type BoshTaskOutput
- type BoshTasks
- type BoshVMsOutput
- type CertAppender
- 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) GetInfo(logger *log.Logger) (Info, 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 string, errandInstances []string, contextID string, ...) (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)
- func (c *Client) VerifyAuth(logger *log.Logger) error
- type Deployment
- type DeploymentNotFoundError
- type Info
- type Instance
- type NetworkDoer
- type Poller
- type Probe
- type RequestError
- type SleepingPoller
- type TaskStateType
- type UserAuthentication
- type Version
- type VersionType
Constants ¶
View Source
const ( StemcellDirectorVersionType = VersionType("stemcell") SemverDirectorVersionType = VersionType("semver") )
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 AuthenticationOptions ¶ added in v0.17.2
type AuthenticationOptions struct {
URL string
}
type AuthenticatorBuilder ¶ added in v0.18.0
type AuthenticatorBuilder interface {
NewAuthHeaderBuilder(boshInfo Info, disableSSLCertVerification bool) (AuthHeaderBuilder, error)
}
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 CertAppender ¶ added in v0.18.0
type Client ¶
type Client struct { PollingInterval time.Duration BoshInfo Info // contains filtered or unexported fields }
func New ¶
func New(url string, disableSSLCertVerification bool, trustedCertPEM []byte, httpClient NetworkDoer, authBuilder AuthenticatorBuilder, certAppender CertAppender, logger *log.Logger) (*Client, error)
func (*Client) DeleteDeployment ¶
func (*Client) GetDeployment ¶
func (*Client) GetDeployments ¶
func (c *Client) GetDeployments(logger *log.Logger) ([]Deployment, error)
func (*Client) GetNormalisedTasksByContext ¶
func (*Client) GetTaskOutput ¶
type Deployment ¶
type Deployment struct {
Name string
}
type DeploymentNotFoundError ¶
type DeploymentNotFoundError struct {
// contains filtered or unexported fields
}
type Info ¶
type Info struct { Version string UserAuthentication UserAuthentication `json:"user_authentication"` }
func (*Info) GetDirectorVersion ¶ added in v0.17.2
type NetworkDoer ¶ added in v0.18.0
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 UserAuthentication ¶ added in v0.17.2
type UserAuthentication struct {
Options AuthenticationOptions
}
type Version ¶
type Version struct { MajorVersion int VersionType VersionType }
func NewVersion ¶
func NewVersion(majorVersion int, versionType VersionType) Version
type VersionType ¶
type VersionType string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.