Documentation ¶
Index ¶
- type Client
- func (c *Client) ClusterReleases(clusterName string) (Releases, error)
- func (c *Client) Clusters() (Clusters, error)
- func (s *Client) DeleteEnvironments(envs []terra.Environment) ([]string, error)
- func (s *Client) DisableRelease(envName, releaseName string) error
- func (s *Client) EnableRelease(env terra.Environment, releaseName string) error
- func (c *Client) EnvironmentReleases(environmentName string) (Releases, error)
- func (c *Client) Environments() (Environments, error)
- func (s *Client) WriteClusters(cls []terra.Cluster) error
- func (s *Client) WriteEnvironments(envs []terra.Environment) ([]string, error)
- type Cluster
- type Clusters
- type Environment
- type Environments
- type Release
- type Releases
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 contains an API client for a remote sherlock server
func New ¶
New configures a new Client instance which confers the ability to issue requests against the API of a sherlock server
func NewWithHostnameOverride ¶ added in v0.0.63
NewWithHostNameOverride enables thelma commands to utilize a sherlock client that targets a different sherlock instance from the one used for state loading
func (*Client) ClusterReleases ¶
func (*Client) DeleteEnvironments ¶ added in v0.0.64
func (s *Client) DeleteEnvironments(envs []terra.Environment) ([]string, error)
func (*Client) DisableRelease ¶ added in v0.0.64
func (*Client) EnableRelease ¶ added in v0.0.64
func (s *Client) EnableRelease(env terra.Environment, releaseName string) error
func (*Client) EnvironmentReleases ¶
func (*Client) Environments ¶
func (c *Client) Environments() (Environments, error)
func (*Client) WriteClusters ¶ added in v0.0.63
WriteClusters will take a list of terra.Cluster interfaces them and issue POST requests to create both the cluster and any releases within that cluster. 409 Conflict responses are ignored
func (*Client) WriteEnvironments ¶ added in v0.0.63
func (s *Client) WriteEnvironments(envs []terra.Environment) ([]string, error)
WriteEnvironments will take a list of terra.Environment interfaces them and issue POST requests to write both the environment and any releases within that environment. 409 Conflict responses are ignored
type Cluster ¶
type Cluster struct {
*models.V2controllersCluster
}
type Environment ¶
type Environment struct {
*models.V2controllersEnvironment
}
type Environments ¶
type Environments []Environment
type Release ¶
type Release struct {
*models.V2controllersChartRelease
}