iamrole

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package iamrole provides primitives and operations on IAM roles. See: https://cloud.google.com/iam/docs/understanding-roles See also: https://cloud.google.com/iam/docs/understanding-custom-roles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasPermission

func HasPermission(role *admin.Role, permission string) bool

HasPermission reports whether the provided role has the provided permission. Always returns false for wildcard permissions.

func Validate

func Validate(role *admin.Role) error

Validate checks that an IAM role is valid.

func ValidateName added in v0.40.0

func ValidateName(name string) error

ValidateName checks that an IAM role name is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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