common

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenResourceName

func GenResourceName(name string) string

GenResourceName generates the name of resource. vpc: rancher-managed-vpc-[RANDOM_STR] subnet: rancher-managed-subnet-[RANDOM_STR]

func GetCreateClusterRequest

func GetCreateClusterRequest(config *ccev1.CCEClusterConfig) *model.CreateClusterRequest

func GetUpdateClusterRequest

func GetUpdateClusterRequest(config *ccev1.CCEClusterConfig) *model.UpdateClusterRequest

func GetUpdateNodePoolRequest

func GetUpdateNodePoolRequest(
	clusterID string, nodePool *ccev1.CCENodePool,
) *model.UpdateNodePoolRequest

func GetUpgradeClusterRequest

func GetUpgradeClusterRequest(config *ccev1.CCEClusterConfig) *model.UpgradeClusterRequest

Types

type ClientAuth

type ClientAuth struct {
	Region     string
	Credential *basic.Credentials
}

func NewClientAuth

func NewClientAuth(ak, sk, region, projectID string) *ClientAuth

Jump to

Keyboard shortcuts

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