gke

package
v1.3.440 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const KmsLocation = "global"

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 BucketExists(projectId string, bucketName string) (bool, error)

func CheckPermission

func CheckPermission(perm string, projectId string) (bool, error)

func CreateBucket added in v1.3.58

func CreateBucket(projectId string, bucketName string, location string) error

func CreateKmsKey added in v1.3.438

func CreateKmsKey(keyName string, keyringName string, projectId string) error

CreateKmsKey creates a new KMS key in the given keyring

func CreateKmsKeyring added in v1.3.438

func CreateKmsKeyring(keyringName string, projectId string) error

CreateKmsKeyring creates a new KMS keyring

func EnableApis

func EnableApis(projectId string, apis ...string) error

func GetEnabledApis added in v1.3.152

func GetEnabledApis(projectId string) ([]string, error)

func GetGoogleMachineTypes

func GetGoogleMachineTypes() []string

func GetGoogleProjects

func GetGoogleProjects() ([]string, error)

func GetGoogleZones

func GetGoogleZones(project string) ([]string, error)

func GetOrCreateServiceAccount

func GetOrCreateServiceAccount(serviceAccount string, projectId string, clusterConfigDir string, roles []string) (string, error)

func GetRegionFromZone added in v1.3.67

func GetRegionFromZone(zone string) string

func IsKmsKeyAvailable added in v1.3.438

func IsKmsKeyAvailable(keyName string, keyringName string, projectId string) bool

IsKmsKeyAvailable cheks if the KMS key is already available

func IsKmsKeyringAvailable added in v1.3.438

func IsKmsKeyringAvailable(keyringName string, projectId string) bool

IsKmsKeyringAvailable checks if the KMS keyring is already available

func Login

func Login(serviceAccountKeyPath string, skipLogin bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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