v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToSlice

func MapToSlice(m map[string]string) []string

MapToSlice returns a slice of strings in the format `key=value` from a map of strings of strings

Types

type Config

type Config struct {
	*client.Config

	GrpcClient apiv1.KubekitClient
}

Config is the kubekit client configuration

func New

func New(apiVersion string, logger *log.Logger) *Config

New creates a new KubeKit Client

func (*Config) Apply

func (c *Config) Apply(ctx context.Context, clusterName string, action string, pkgURL string, forcePkg bool, userCACerts tls.KeyPairs) (string, error)

Apply returns the KubeKit Server apply using HTTP/REST or gRPC

func (*Config) Delete

func (c *Config) Delete(ctx context.Context, clusterName string, destroyAll bool) (string, error)

Delete returns the KubeKit Server delete using HTTP/REST or gRPC

func (*Config) DeleteClusterConfig

func (c *Config) DeleteClusterConfig(ctx context.Context, clusterName string) (string, error)

DeleteClusterConfig returns the KubeKit Server delete cluster config using HTTP/REST or gRPC

func (*Config) Describe

func (c *Config) Describe(ctx context.Context, showParams []string, clustersName ...string) (string, error)

Describe returns the KubeKit Server describe using HTTP/REST or gRPC

func (*Config) GetClusters

func (c *Config) GetClusters(ctx context.Context, quiet bool, filterMap map[string]string, clustersName ...string) (string, error)

GetClusters returns the KubeKit Server get using HTTP/REST or gRPC

func (*Config) Init

func (c *Config) Init(ctx context.Context, clusterName, platform string, variables, credentials map[string]string) (string, error)

Init returns the KubeKit Server init using HTTP/REST or gRPC

func (*Config) Token

func (c *Config) Token(ctx context.Context, clusterName, roleARN string) (string, error)

Token returns the token using HTTP/REST or gRPC

func (*Config) UpdateCluster

func (c *Config) UpdateCluster(ctx context.Context, clusterName string, variables, credentials map[string]string) (string, error)

UpdateCluster returns the KubeKit Server update using HTTP/REST or gRPC

func (*Config) Version

func (c *Config) Version(ctx context.Context) (string, error)

Version returns the KubeKit Server version using HTTP/REST or gRPC

func (*Config) WithGRPC

func (c *Config) WithGRPC(host, port string) error

WithGRPC makes the KubeKit client to have a GRPC client

Jump to

Keyboard shortcuts

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