Documentation ¶
Index ¶
- type Auth
- type CPU
- type Client
- func (c *Client) CreateDeployment(manifest string, auth Auth) (task Task, err error)
- func (c *Client) DoAuthRequest(r *request, auth Auth) ([]byte, error)
- func (c *Client) DoAuthRequestRaw(r *request, auth Auth) (*http.Response, error)
- func (c *Client) DoRequest(r *request) (*http.Response, error)
- func (c *Client) GetDeployment(name string, auth Auth) (manifest Manifest, err error)
- func (c *Client) GetDeploymentVMs(name string, auth Auth) (vms []VM, err error)
- func (c *Client) GetDeployments(auth Auth) (deployments []Deployment, err error)
- func (c *Client) GetInfo() (info Info, err error)
- func (c *Client) GetPasswordToken(username, password string) (tokenResp uaa.TokenResp, err error)
- func (c *Client) GetReleases(auth Auth) (releases []Release, err error)
- func (c *Client) GetRunningTasks(auth Auth) (tasks []Task, err error)
- func (c *Client) GetStemcells(auth Auth) (stemcells []Stemcell, err error)
- func (c *Client) GetTask(id int, auth Auth) (task Task, err error)
- func (c *Client) GetTaskResult(id int, auth Auth) (output []string)
- func (c *Client) GetTasks(auth Auth) (tasks []Task, err error)
- func (c *Client) NewRequest(method, path string) *request
- func (c *Client) SSH(sshRequest SSHRequest, auth Auth) (sshResponses []SSHResponse, err error)
- func (c *Client) WaitForTaskResult(id int, auth Auth) (output []string)
- type Config
- type Deployment
- type Disk
- type DiskStats
- type Info
- type Manifest
- type Memory
- type Params
- type Release
- type ReleaseVersion
- type Resource
- type SSHRequest
- type SSHResponse
- type Stemcell
- type Target
- type Task
- type UserAuthenication
- type VM
- type Vitals
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client used to communicate with BOSH
func (*Client) CreateDeployment ¶
CreateDeployment from given BOSH
func (*Client) DoAuthRequest ¶
DoAuthRequest runs a request with our client
func (*Client) DoAuthRequestRaw ¶
DoAuthRequestRaw runs a request with our client
func (*Client) GetDeployment ¶
GetDeployment from given BOSH
func (*Client) GetDeploymentVMs ¶
GetDeploymentVMs from given BOSH
func (*Client) GetDeployments ¶
func (c *Client) GetDeployments(auth Auth) (deployments []Deployment, err error)
GetDeployments from given BOSH
func (*Client) GetPasswordToken ¶ added in v0.2.3
GetPasswordToken from UAA
func (*Client) GetReleases ¶
GetReleases from given BOSH
func (*Client) GetRunningTasks ¶
GetRunningTasks from given BOSH
func (*Client) GetStemcells ¶
GetStemcells from given BOSH
func (*Client) GetTaskResult ¶
GetTaskResult from given BOSH
func (*Client) NewRequest ¶
NewRequest is used to create a new request
func (*Client) SSH ¶
func (c *Client) SSH(sshRequest SSHRequest, auth Auth) (sshResponses []SSHResponse, err error)
SSH from given BOSH
type Config ¶
type Config struct { BOSHAddress string UAA struct { ClientID string ClientSecret string } HttpClient *http.Client SkipSslValidation bool }
Config is used to configure the creation of a client
type Deployment ¶
type Deployment struct { Name string `json:"name"` CloudConfig string `json:"cloud_config"` Releases []Resource `json:"releases"` Stemcells []Resource `json:"stemcells"` }
Deployment struct
type DiskStats ¶
type DiskStats struct { Percent string `json:"percent"` InodePercent string `json:"inode_percent"` }
DiskStats struct
type Info ¶
type Info struct { Name string `json:"name"` UUID string `json:"uuid"` Version string `json:"version"` User string `json:"user"` CPI string `json:"cpi"` UserAuthenication UserAuthenication `json:"user_authentication"` }
Info struct
type Params ¶
type Params struct { User string `json:"user"` Password string `json:"password"` PublicKey string `json:"public_key"` }
Params struct
type Release ¶
type Release struct { Name string `json:"name"` ReleaseVersions []ReleaseVersion `json:"release_versions"` }
Release struct
type ReleaseVersion ¶
type ReleaseVersion struct { Version string `json:"version"` CommitHash string `json:"commit_hash"` UncommittedChanges bool `json:"uncommitted_changes"` CurrentlyDeployed bool `json:"currently_deployed"` JobNames []string `json:"job_names"` }
ReleaseVersion struct
type SSHRequest ¶
type SSHRequest struct { Command string `json:"command"` DeploymentName string `json:"deployment_name"` Target Target `json:"target"` Params map[string]string `json:"params"` }
SSHRequest struct
type SSHResponse ¶
type SSHResponse struct { Status string Job string Index *int ID string IP string HostPublicKey string `json:"host_public_key"` GatewayUser string `json:"gateway_user"` GatewayHost string `json:"gateway_host"` }
SSHResponse struct
type Stemcell ¶
type Stemcell struct { Name string `json:"name"` OperatingSystem string `json:"operating_system"` Version string `json:"version"` CID string `json:"cid"` Deployments []struct { Name string `json:"name"` } `json:"deployments"` }
Stemcell struct
type Target ¶
type Target struct { Job string `json:"job"` Indexes []string `json:"indexes"` Ids []string `json:"ids"` }
Target struct
type Task ¶
type Task struct { ID int `json:"id"` State string `json:"state"` Description string `json:"description"` Timestamp int `json:"timestamp"` Result string `json:"result"` User string `json:"user"` }
Task struct
type UserAuthenication ¶
type UserAuthenication struct { Type string `json:"type"` Options struct { URL string `json:"url"` } `json:"options"` }
UserAuthenication struct
type VM ¶
type VM struct { AgentID string `json:"agent_id"` VMCID string `json:"vm_cid"` CID string `json:"cid"` JobName string `json:"job_name"` JobState string `json:"job_state"` Index int `json:"index"` IPs []string `json:"ips"` DNS []string `json:"dns"` ResurectionPaused bool `json:"resurrection_paused"` Vitals Vitals `json:"vitals"` ID string `json:"id"` }
VM struct