Documentation ¶
Index ¶
- type Client
- func (client *Client) Cleanup() error
- func (client *Client) PathInWorkingDir(filename string) string
- func (client *Client) RunAuthenticatedCommand(stdout, stderr io.Writer, args ...string) error
- func (client *Client) RunCommand(stdout, stderr io.Writer, args ...string) error
- func (client *Client) SaveFileToWorkingDir(filename string, contents []byte) (string, error)
- type Credentials
- type IClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a low-level wrapper for bosh director
func (*Client) PathInWorkingDir ¶
PathInWorkingDir returns a path for the file in the directos' working directory
func (*Client) RunAuthenticatedCommand ¶
RunAuthenticatedCommand runs a command against the bosh director, after authenticating
func (*Client) RunCommand ¶
RunCommand runs a command against the bosh director https://github.com/cloudfoundry/bosh-cli/blob/master/main.go
type Credentials ¶
Credentials represent credentials for connecting to bosh director
type IClient ¶
type IClient interface { RunCommand(stdout, stderr io.Writer, args ...string) error RunAuthenticatedCommand(stdout, stderr io.Writer, args ...string) error SaveFileToWorkingDir(path string, contents []byte) (string, error) PathInWorkingDir(filename string) string Cleanup() error }
IClient represents a bosh director client
Click to show internal directories.
Click to hide internal directories.