client

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	CreateNewCluster(ctx context.Context, req sdk.CreateNewClusterJSONRequestBody) (*sdk.KubernetesCluster, error)
	GetCluster(ctx context.Context, req sdk.ClusterId) (*sdk.KubernetesCluster, error)
	DeleteCluster(ctx context.Context, req sdk.ClusterId) error
	ListRegions(ctx context.Context) ([]sdk.CastRegion, error)
	ListCloudCredentials(ctx context.Context) ([]sdk.CloudCredentials, error)
	GetClusterKubeconfig(ctx context.Context, req sdk.ClusterId) ([]byte, error)
	ListKubernetesClusters(ctx context.Context, req *sdk.ListKubernetesClustersParams) ([]sdk.KubernetesCluster, error)
	ListClusterNodes(ctx context.Context, req sdk.ClusterId) ([]sdk.Node, error)
	AddClusterNode(ctx context.Context, clusterID sdk.ClusterId, node sdk.Node) error
	DeleteClusterNode(ctx context.Context, clusterID sdk.ClusterId, nodeID string) error
	ListAuthTokens(ctx context.Context) ([]sdk.AuthToken, error)
	FeedbackEvents(ctx context.Context, req sdk.ClusterId) ([]sdk.KubernetesClusterFeedbackEvent, error)
	SetupNodeSSH(ctx context.Context, clusterID sdk.ClusterId, nodeID string, req sdk.SetupNodeSshJSONRequestBody) error
	CloseNodeSSH(ctx context.Context, clusterID sdk.ClusterId, nodeID string) error
	GetClusterNode(ctx context.Context, clusterID sdk.ClusterId, nodeID string) (*sdk.Node, error)
}

func New

func New(cfg *config.Config, log logrus.FieldLogger) (Interface, error)

func NewMock

func NewMock() Interface

Directories

Path Synopsis
Package sdk provides primitives to interact the openapi HTTP API.
Package sdk provides primitives to interact the openapi HTTP API.

Jump to

Keyboard shortcuts

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