Documentation ¶
Index ¶
- func ClusterExists(ctx context.Context, apiClient SKEClient, projectId, clusterName string) (bool, error)
- func ConvertToSeconds(timeStr string) (*string, error)
- func GetDefaultKubeconfigPath() (string, error)
- func GetDefaultPayload(ctx context.Context, apiClient SKEClient) (*ske.CreateOrUpdateClusterPayload, error)
- func ProjectEnabled(ctx context.Context, apiClient SKEClient, projectId string) (bool, error)
- func WriteConfigFile(configPath, data string) error
- type SKEClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterExists ¶
func ConvertToSeconds ¶
ConvertToSeconds converts a time string to seconds. The time string must be in the format of <value><unit>, where unit is one of s, m, h, d, M.
func GetDefaultKubeconfigPath ¶
GetDefaultKubeconfigPath returns the default location for the kubeconfig file.
func GetDefaultPayload ¶
func ProjectEnabled ¶
func WriteConfigFile ¶
WriteConfigFile writes the given data to the given path. The directory is created if it does not exist.
Types ¶
Click to show internal directories.
Click to hide internal directories.