Documentation ¶
Index ¶
- func DeleteServiceAccounts(ctx context.Context, iamService *iam.Service, ...) error
- func GetCurrentServiceAccountEmail(creds *google.Credentials) string
- func GetDefaultComputeDeveloperAccount(ctx context.Context, creds *google.Credentials, ...) (string, error)
- func NewService(ctx context.Context, opts *option.ClientOption) (*iam.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteServiceAccounts ¶ added in v0.0.2
func DeleteServiceAccounts(ctx context.Context, iamService *iam.Service, cloudresourcemanagerService *cloudresourcemanager.Service, creds *google.Credentials, projectID string, dryrun bool) error
-------------------------------------------------- delete iam service accounts --------------------------------------------------
func GetCurrentServiceAccountEmail ¶
func GetCurrentServiceAccountEmail(creds *google.Credentials) string
-------------------------------------------------- return the service account that is currently in use --------------------------------------------------
func GetDefaultComputeDeveloperAccount ¶
func GetDefaultComputeDeveloperAccount(ctx context.Context, creds *google.Credentials, cloudresourcemanagerService *cloudresourcemanager.Service) (string, error)
-------------------------------------------------- return the compute developer account that always preexists in a gcp project --------------------------------------------------
func NewService ¶
func NewService(ctx context.Context, opts *option.ClientOption) (*iam.Service, error)
-------------------------------------------------- return iam service --------------------------------------------------
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.