iampolicy

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 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 *iampb.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 *iampb.Policy, role, member string)

RemoveBinding removes the provided role and member binding from the policy. If a binding of 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 *iampb.Policy) error

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