Skip to content

AccessPolicyBuilder🔗

Constructor🔗

func NewAccessPolicyBuilder() *AccessPolicyBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *AccessPolicyBuilder) Build() (AccessPolicy, error)

Role🔗

The role that must apply this policy

func (builder *AccessPolicyBuilder) Role(role cog.Builder[accesspolicy.RoleRef]) *AccessPolicyBuilder

Rules🔗

The set of rules to apply. Note that * is required to modify

access policy rules, and that "none" will reject all actions

func (builder *AccessPolicyBuilder) Rules(rule cog.Builder[accesspolicy.AccessRule]) *AccessPolicyBuilder

Scope🔗

The scope where these policies should apply

func (builder *AccessPolicyBuilder) Scope(scope cog.Builder[accesspolicy.ResourceRef]) *AccessPolicyBuilder

See also🔗