Documentation ¶
Index ¶
- func SliceToMap(slice []string) (map[string]string, error)
- type KubeKitService
- func (s *KubeKitService) Apply(ctx context.Context, in *apiv1.ApplyRequest) (*apiv1.ApplyResponse, error)
- func (s *KubeKitService) Delete(ctx context.Context, in *apiv1.DeleteRequest) (*apiv1.DeleteResponse, error)
- func (s *KubeKitService) DeleteClusterConfig(ctx context.Context, in *apiv1.DeleteClusterConfigRequest) (*apiv1.DeleteClusterConfigResponse, error)
- func (s *KubeKitService) Describe(ctx context.Context, in *apiv1.DescribeRequest) (*apiv1.DescribeResponse, error)
- func (s *KubeKitService) GetClusters(ctx context.Context, in *apiv1.GetClustersRequest) (*apiv1.GetClustersResponse, error)
- func (s *KubeKitService) Init(ctx context.Context, in *apiv1.InitRequest) (*apiv1.InitResponse, error)
- func (s *KubeKitService) Register(server *grpc.Server)
- func (s *KubeKitService) Token(ctx context.Context, in *apiv1.TokenRequest) (*apiv1.TokenResponse, error)
- func (s *KubeKitService) UpdateCluster(ctx context.Context, in *apiv1.UpdateClusterRequest) (*apiv1.UpdateClusterResponse, error)
- func (s *KubeKitService) Version(ctx context.Context, in *apiv1.VersionRequest) (*apiv1.VersionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KubeKitService ¶
type KubeKitService struct {
// contains filtered or unexported fields
}
KubeKitService implement the interface rpc.KubeKitServiceClient and encapsulate all the properties of a KubeKit service
func NewKubeKitService ¶
func NewKubeKitService(clustersPath string, parentUI *ui.UI, dry bool) *KubeKitService
NewKubeKitService creates a new KubeKit service
func (*KubeKitService) Apply ¶
func (s *KubeKitService) Apply(ctx context.Context, in *apiv1.ApplyRequest) (*apiv1.ApplyResponse, error)
Apply creates a configuration file for the given kind (`cluster` or `template`)
func (*KubeKitService) Delete ¶
func (s *KubeKitService) Delete(ctx context.Context, in *apiv1.DeleteRequest) (*apiv1.DeleteResponse, error)
Delete deletes or terminate an existing cluster, removing all the cluster resources.
func (*KubeKitService) DeleteClusterConfig ¶
func (s *KubeKitService) DeleteClusterConfig(ctx context.Context, in *apiv1.DeleteClusterConfigRequest) (*apiv1.DeleteClusterConfigResponse, error)
DeleteClusterConfig deletes an existing cluster configuration and all related files
func (*KubeKitService) Describe ¶
func (s *KubeKitService) Describe(ctx context.Context, in *apiv1.DescribeRequest) (*apiv1.DescribeResponse, error)
Describe request to the server the description of one cluster with the given name
func (*KubeKitService) GetClusters ¶
func (s *KubeKitService) GetClusters(ctx context.Context, in *apiv1.GetClustersRequest) (*apiv1.GetClustersResponse, error)
GetClusters request to the server the list of clusters
func (*KubeKitService) Init ¶
func (s *KubeKitService) Init(ctx context.Context, in *apiv1.InitRequest) (*apiv1.InitResponse, error)
Init creates a configuration file for the given kind (`cluster` or `template`)
func (*KubeKitService) Register ¶
func (s *KubeKitService) Register(server *grpc.Server)
Register registers this service to the given gRPC server
func (*KubeKitService) Token ¶
func (s *KubeKitService) Token(ctx context.Context, in *apiv1.TokenRequest) (*apiv1.TokenResponse, error)
Token mimics the token command from aws-iam-authenticator
func (*KubeKitService) UpdateCluster ¶
func (s *KubeKitService) UpdateCluster(ctx context.Context, in *apiv1.UpdateClusterRequest) (*apiv1.UpdateClusterResponse, error)
UpdateCluster updates an existing cluster using the parameters received.
func (*KubeKitService) Version ¶
func (s *KubeKitService) Version(ctx context.Context, in *apiv1.VersionRequest) (*apiv1.VersionResponse, error)
Version return the current version of KubeKit