Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateDeployment(ctx context.Context, request model.DeploymentRequest) (model.Job, error)
- func (c *Client) DeleteJob(ctx context.Context, uuid string) (bool, error)
- func (c *Client) GetApplication(ctx context.Context, cluster, namespace, application string) (model.Application, error)
- func (c *Client) GetApplications(ctx context.Context, cluster, namespace string) (model.Applications, error)
- func (c *Client) GetCluster(ctx context.Context, cluster string) (model.Cluster, error)
- func (c *Client) GetClusters(ctx context.Context) (model.Clusters, error)
- func (c *Client) GetJob(ctx context.Context, uuid string) (model.Job, error)
- func (c *Client) GetJobs(ctx context.Context) (model.Jobs, error)
- func (c *Client) GetNamespace(ctx context.Context, cluster, namespace string) (model.Namespace, error)
- func (c *Client) GetNamespaces(ctx context.Context, cluster string) (model.Namespaces, error)
- func (c *Client) SetAPIKey(APIKey string)
- func (c *Client) SetAPIURL(APIURL string)
- func (c *Client) SetHTTPClient(httpClient *module.HTTPClient)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.2.1
type Client struct { APIKey string APIURL string HTTPClient *module.HTTPClient }
Client struct
func (*Client) CreateDeployment ¶ added in v0.2.1
func (c *Client) CreateDeployment(ctx context.Context, request model.DeploymentRequest) (model.Job, error)
CreateDeployment Get Application
func (*Client) GetApplication ¶ added in v0.2.1
func (c *Client) GetApplication(ctx context.Context, cluster, namespace, application string) (model.Application, error)
GetApplication Get Application
func (*Client) GetApplications ¶ added in v0.2.1
func (c *Client) GetApplications(ctx context.Context, cluster, namespace string) (model.Applications, error)
GetApplications Get Applications List
func (*Client) GetCluster ¶ added in v0.2.1
GetCluster Get Cluster
func (*Client) GetClusters ¶ added in v0.2.1
GetClusters Get Clusters List
func (*Client) GetNamespace ¶ added in v0.2.1
func (c *Client) GetNamespace(ctx context.Context, cluster, namespace string) (model.Namespace, error)
GetNamespace Get Namespace
func (*Client) GetNamespaces ¶ added in v0.2.1
GetNamespaces Get Namespaces List
func (*Client) SetHTTPClient ¶ added in v0.2.1
func (c *Client) SetHTTPClient(httpClient *module.HTTPClient)
SetHTTPClient sets http client
Click to show internal directories.
Click to hide internal directories.