sdk

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

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) DeleteJob added in v0.2.1

func (c *Client) DeleteJob(ctx context.Context, uuid string) (bool, error)

DeleteJob Delete Job

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

func (c *Client) GetCluster(ctx context.Context, cluster string) (model.Cluster, error)

GetCluster Get Cluster

func (*Client) GetClusters added in v0.2.1

func (c *Client) GetClusters(ctx context.Context) (model.Clusters, error)

GetClusters Get Clusters List

func (*Client) GetJob added in v0.2.1

func (c *Client) GetJob(ctx context.Context, uuid string) (model.Job, error)

GetJob Get Job

func (*Client) GetJobs added in v0.2.1

func (c *Client) GetJobs(ctx context.Context) (model.Jobs, error)

GetJobs Get Jobs 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

func (c *Client) GetNamespaces(ctx context.Context, cluster string) (model.Namespaces, error)

GetNamespaces Get Namespaces List

func (*Client) SetAPIKey added in v0.2.1

func (c *Client) SetAPIKey(APIKey string)

SetAPIKey sets api key

func (*Client) SetAPIURL added in v0.2.1

func (c *Client) SetAPIURL(APIURL string)

SetAPIURL sets api url

func (*Client) SetHTTPClient added in v0.2.1

func (c *Client) SetHTTPClient(httpClient *module.HTTPClient)

SetHTTPClient sets http client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL