Documentation ¶
Index ¶
- Variables
- func BucketExists(bucketName string) (bool, error)
- func CheckPermission(perm string, projectId string) (bool, error)
- func CreateBucket(bucketName string, location string) error
- func EnableApis(projectId string, apis ...string) error
- func GetGoogleMachineTypes() []string
- func GetGoogleProjects() ([]string, error)
- func GetGoogleZones() ([]string, error)
- func GetOrCreateServiceAccount(serviceAccount string, projectId string, clusterConfigDir string) (string, error)
- func GetRegionFromZone(zone string) string
- func Login(serviceAccountKeyPath string, skipLogin bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PROJECT_LIST_HEADER = "PROJECT_ID"
View Source
var (
REQUIRED_SERVICE_ACCOUNT_ROLES = []string{"roles/compute.instanceAdmin.v1",
"roles/iam.serviceAccountActor",
"roles/container.clusterAdmin",
"roles/container.admin",
"roles/container.developer",
"roles/storage.objectAdmin",
"roles/editor"}
)
Functions ¶
func BucketExists ¶ added in v1.3.58
func CreateBucket ¶ added in v1.3.58
func EnableApis ¶
func GetGoogleMachineTypes ¶
func GetGoogleMachineTypes() []string
func GetGoogleProjects ¶
func GetGoogleZones ¶
func GetRegionFromZone ¶ added in v1.3.67
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.