Documentation ¶
Index ¶
- type KubernetesProjectsResponse
- type KubernetesProjectsService
- func (svc *KubernetesProjectsService) Create(ctx context.Context, projectID string) (res KubernetesProjectsResponse, w *wait.Handler, err error)
- func (svc *KubernetesProjectsService) Delete(ctx context.Context, projectID string) (w *wait.Handler, err error)
- func (svc *KubernetesProjectsService) Get(ctx context.Context, projectID string) (res KubernetesProjectsResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesProjectsResponse ¶
type KubernetesProjectsResponse struct { ProjectID string `json:"projectId"` State string `json:"state"` }
KubernetesProjectsResponse is the project ID and state response
type KubernetesProjectsService ¶
KubernetesProjectsService is the service that handles enabling / disabling SKE for a project
func New ¶
func New(c common.Client) *KubernetesProjectsService
New returns a new handler for the service
func (*KubernetesProjectsService) Create ¶
func (svc *KubernetesProjectsService) Create(ctx context.Context, projectID string) (res KubernetesProjectsResponse, w *wait.Handler, err error)
Create creates a SKE project See also https://api.stackit.schwarz/ske-service/openapi.v1.html#operation/SkeService_GetProject
func (*KubernetesProjectsService) Delete ¶
func (svc *KubernetesProjectsService) Delete(ctx context.Context, projectID string) (w *wait.Handler, err error)
Delete deletes a SKE project IMPORTANT: existing clusters to be automatically deleted See also https://api.stackit.schwarz/ske-service/openapi.v1.html#operation/SkeService_GetProject
func (*KubernetesProjectsService) Get ¶
func (svc *KubernetesProjectsService) Get(ctx context.Context, projectID string) (res KubernetesProjectsResponse, err error)
Get returns the SKE project status See also https://api.stackit.schwarz/ske-service/openapi.v1.html#operation/SkeService_GetProject