Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { UpdatePolicy(policy Entity) error DeletePolicy(policy core.PolicyNameEntity) error ReadPolicy(policy core.PolicyNameEntity) (*Policy, error) }
type Capability ¶
type Capability string
var ( // CreateCapability gives permission to create objects. CreateCapability Capability = "create" // ReadCapability gives permission to read objects. ReadCapability Capability = "read" // UpdateCapability gives permission to update objects. UpdateCapability Capability = "update" // DeleteCapability gives permission to delete objects. DeleteCapability Capability = "delete" // ListCapability gives permission to list objects. ListCapability Capability = "list" )
type Entity ¶
type Entity interface { core.PolicyNameEntity Body }
type Policy ¶
func (*Policy) GetPolicyName ¶
func (*Policy) GetPolicyRules ¶
func (*Policy) MarshalJSON ¶
func (*Policy) UnmarshalJSON ¶
type Rule ¶
type Rule struct { Path string `hcl:"name,label"` Capabilities []Capability `hcl:"capabilities"` }
Click to show internal directories.
Click to hide internal directories.