iam

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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