iampolicy

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package iampolicy provides primitives for working with IAM policies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBinding added in v0.6.0

func AddBinding(policy *iam.Policy, role, member string)

AddBinding adds the provided role and member binding to the policy. If the role and member already exists, no updates are made. No validation on the role or member is performed.

func RemoveBinding added in v0.6.0

func RemoveBinding(policy *iam.Policy, role, member string)

RemoveBinding removes the provided role and member binding from the policy. If a binding of the the role and member don't exist, no updates are made. No validation on the role or member is performed.

func Validate

func Validate(policy *iam.Policy) *errdetails.BadRequest

Validate an IAM policy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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