Documentation ¶
Index ¶
- func MapToSlice(m map[string]string) []string
- type Config
- func (c *Config) Apply(ctx context.Context, clusterName string, action string, pkgURL string, ...) (string, error)
- func (c *Config) Delete(ctx context.Context, clusterName string, destroyAll bool) (string, error)
- func (c *Config) DeleteClusterConfig(ctx context.Context, clusterName string) (string, error)
- func (c *Config) Describe(ctx context.Context, showParams []string, clustersName ...string) (string, error)
- func (c *Config) GetClusters(ctx context.Context, quiet bool, filterMap map[string]string, ...) (string, error)
- func (c *Config) Init(ctx context.Context, clusterName, platform string, ...) (string, error)
- func (c *Config) Token(ctx context.Context, clusterName, roleARN string) (string, error)
- func (c *Config) UpdateCluster(ctx context.Context, clusterName string, ...) (string, error)
- func (c *Config) Version(ctx context.Context) (string, error)
- func (c *Config) WithGRPC(host, port string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapToSlice ¶
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 (*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) DeleteClusterConfig ¶
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) 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
Click to show internal directories.
Click to hide internal directories.