iam

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 13 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type GServiceAccount

type GServiceAccount string

type IAMPolicyManager

type IAMPolicyManager interface {
	AddIAMPolicyBinding(ctx context.Context, account GServiceAccount, member string, role RoleName) error
	RemoveIAMPolicyBinding(ctx context.Context, account GServiceAccount, member string, role RoleName) error
}

IAMPolicyManager is an interface for making changes to a Google service account's IAM policy.

func NewIAMPolicyManager

func NewIAMPolicyManager(ctx context.Context, client gclient.IamClient) (IAMPolicyManager, error)

NewIAMPolicyManager creates an IAMPolicyManager using the given IamClient. The IAMPolicyManager will execute until ctx is cancelled.

type RoleName

type RoleName iam.RoleName

Jump to

Keyboard shortcuts

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