Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGrant ¶
func NewGrant(resource *v2.Resource, entitlementName string, principal GrantPrincipal, grantOptions ...GrantOption) *v2.Grant
NewGrant returns a new grant for the given entitlement on the resource for the provided principal resource ID.
Types ¶
type GrantOption ¶
func WithAnnotation ¶
func WithAnnotation(msgs ...proto.Message) GrantOption
func WithExternalPrincipalID ¶ added in v0.1.15
func WithExternalPrincipalID(externalID *v2.ExternalId) GrantOption
func WithGrantMetadata ¶ added in v0.1.1
func WithGrantMetadata(metadata map[string]interface{}) GrantOption
type GrantPrincipal ¶ added in v0.0.20
Click to show internal directories.
Click to hide internal directories.