Documentation ¶
Index ¶
- Constants
- Variables
- func BucketExists(projectId string, bucketName string) (bool, error)
- func CheckPermission(perm string, projectId string) (bool, error)
- func CreateBucket(projectId string, bucketName string, location string) error
- func CreateKmsKey(keyName string, keyringName string, projectId string) error
- func CreateKmsKeyring(keyringName string, projectId string) error
- func DeleteAllObjectsInBucket(bucketName string) error
- func DeleteBucket(bucketName string) error
- func DeleteServiceAccount(serviceAccount string, projectId string, roles []string) error
- func EnableApis(projectId string, apis ...string) error
- func FindBucket(bucketName string) bool
- func FindServiceAccount(serviceAccount string, projectId string) bool
- func GetEnabledApis(projectId string) ([]string, error)
- func GetGoogleMachineTypes() []string
- func GetGoogleProjects() ([]string, error)
- func GetGoogleZones(project string) ([]string, error)
- func GetOrCreateServiceAccount(serviceAccount string, projectId string, clusterConfigDir string, ...) (string, error)
- func GetRegionFromZone(zone string) string
- func IsKmsKeyAvailable(keyName string, keyringName string, projectId string) bool
- func IsKmsKeyringAvailable(keyringName string, projectId string) bool
- func Login(serviceAccountKeyPath string, skipLogin bool) error
- func VaultBucketName(vaultName string) string
- func VaultServiceAccountName(vaultName string) string
Constants ¶
View Source
const KmsLocation = "global"
Variables ¶
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"} VaultServiceAccountRoles = []string{"roles/storage.objectAdmin", "roles/cloudkms.admin", "roles/cloudkms.cryptoKeyEncrypterDecrypter", } )
View Source
var PROJECT_LIST_HEADER = "PROJECT_ID"
Functions ¶
func CreateKmsKey ¶
CreateKmsKey creates a new KMS key in the given keyring
func CreateKmsKeyring ¶
CreateKmsKeyring creates a new KMS keyring
func DeleteBucket ¶
func DeleteServiceAccount ¶
func EnableApis ¶ added in v1.3.40
func FindBucket ¶
func FindServiceAccount ¶
func GetEnabledApis ¶
func GetGoogleMachineTypes ¶
func GetGoogleMachineTypes() []string
func GetGoogleProjects ¶
func GetGoogleZones ¶
func GetRegionFromZone ¶
func IsKmsKeyAvailable ¶
IsKmsKeyAvailable cheks if the KMS key is already available
func IsKmsKeyringAvailable ¶
IsKmsKeyringAvailable checks if the KMS keyring is already available
func VaultBucketName ¶ added in v1.3.480
func VaultServiceAccountName ¶ added in v1.3.480
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.