Documentation ¶
Index ¶
- Variables
- type APIClient
- func (c APIClient) CreateDeployment(b agent.DeploymentBlueprint) (agent.DeploymentResponseLite, error)
- func (c APIClient) DeleteDeployment(id string) error
- func (c APIClient) DescribeDeployment(id string) (agent.DeploymentResponseFull, error)
- func (c APIClient) GetMetadata() (agent.Metadata, error)
- func (c APIClient) ListDeployments() ([]agent.DeploymentResponseLite, error)
- func (c APIClient) RedeployDeployment(id string) (agent.DeploymentResponseLite, error)
- type Client
- type RequestError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultHTTPTimeout does exactly what you think it does. DefaultHTTPTimeout = 10 // SkipSSLVerify allows SSL certificate verification to be skipped. This is // frowned upon. SkipSSLVerify = false )
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
APIClient implements the Client interface and communicates with the Agent over HTTPS.
func (APIClient) CreateDeployment ¶
func (c APIClient) CreateDeployment(b agent.DeploymentBlueprint) (agent.DeploymentResponseLite, error)
CreateDeployment creates a new deployment from a blueprint.
func (APIClient) DeleteDeployment ¶
DeleteDeployment deletes a specific deployment.
func (APIClient) DescribeDeployment ¶
func (c APIClient) DescribeDeployment(id string) (agent.DeploymentResponseFull, error)
DescribeDeployment fetches details for a specific deployment.
func (APIClient) GetMetadata ¶
GetMetadata fetches metadata for the agent and adapter.
func (APIClient) ListDeployments ¶
func (c APIClient) ListDeployments() ([]agent.DeploymentResponseLite, error)
ListDeployments fetches a list of deployments.
func (APIClient) RedeployDeployment ¶
func (c APIClient) RedeployDeployment(id string) (agent.DeploymentResponseLite, error)
RedeployDeployment redeploys a specific deployment.
type Client ¶
type Client interface { ListDeployments() ([]agent.DeploymentResponseLite, error) DescribeDeployment(id string) (agent.DeploymentResponseFull, error) CreateDeployment(b agent.DeploymentBlueprint) (agent.DeploymentResponseLite, error) RedeployDeployment(id string) (agent.DeploymentResponseLite, error) DeleteDeployment(id string) error GetMetadata() (agent.Metadata, error) }
Client represents any struct that can communicate with the Agent.
type RequestError ¶
A RequestError is a special type of error that will be returned for unexpected HTTP responses.
func (RequestError) Error ¶
func (e RequestError) Error() string
Click to show internal directories.
Click to hide internal directories.