Documentation ¶
Index ¶
- func NewAssignmentEntitlement(resource *v2.Resource, name string, entitlementOptions ...EntitlementOption) *v2.Entitlement
- func NewEntitlementID(resource *v2.Resource, permission string) string
- func NewPermissionEntitlement(resource *v2.Resource, name string, entitlementOptions ...EntitlementOption) *v2.Entitlement
- type EntitlementOption
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 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
Click to show internal directories.
Click to hide internal directories.