clients

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadClient

type DownloadClient interface {
	DownloadFile(ctx context.Context, url string) ([]byte, error)
}

DownloadClient is an interface to resource-service.

func NewHTTPDownloadClient

func NewHTTPDownloadClient(debug bool) DownloadClient

NewHTTPDownloadClient returns client for resource-service working via restful api

type KubeAPIClient

type KubeAPIClient interface {
	GetUserDeployments(ctx context.Context, namespace, solutionName string) (*kube_types.DeploymentsList, error)
	GetUserServices(ctx context.Context, namespace, solutionName string) (*kube_types.ServicesList, error)
}

KubeAPIClient is an interface to Kube-API.

func NewHTTPKubeAPIClient

func NewHTTPKubeAPIClient(serverURL string, debug bool) KubeAPIClient

NewHTTPKubeAPIClient returns client for resource-service working via restful api

type ResourceClient

type ResourceClient interface {
	CreateDeployment(ctx context.Context, namespace string, deployment kube_types.Deployment) error
	CreateService(ctx context.Context, namespace string, service kube_types.Service) error
	DeleteDeployments(ctx context.Context, namespace, solutionName string) error
	DeleteServices(ctx context.Context, namespace, solutionName string) error
}

ResourceClient is an interface to resource-service.

func NewHTTPResourceClient

func NewHTTPResourceClient(serverURL string, debug bool) ResourceClient

NewHTTPResourceClient returns client for resource-service working via restful api

Jump to

Keyboard shortcuts

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