entitlement

package
v0.2.44 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 73

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAssignmentEntitlement

func NewAssignmentEntitlement(resource *v2.Resource, name string, entitlementOptions ...EntitlementOption) *v2.Entitlement

func NewEntitlementID

func NewEntitlementID(resource *v2.Resource, permission string) string

func NewPermissionEntitlement

func NewPermissionEntitlement(resource *v2.Resource, name string, entitlementOptions ...EntitlementOption) *v2.Entitlement

Types

type EntitlementOption

type EntitlementOption func(*v2.Entitlement)

func WithAnnotation

func WithAnnotation(msgs ...proto.Message) EntitlementOption

func WithDescription

func WithDescription(description string) EntitlementOption

func WithDisplayName

func WithDisplayName(displayName string) EntitlementOption

func WithGrantableTo

func WithGrantableTo(grantableTo ...*v2.ResourceType) EntitlementOption

Jump to

Keyboard shortcuts

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