iam

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 DefaultIAMPolicyManager

func DefaultIAMPolicyManager() IAMPolicyManager

DefaultIAMPolicyManager returns a shared global policy manager.

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