Documentation
¶
Index ¶
Constants ¶
View Source
const ( AnnotationResource = "hs:resource" AnnotationOperation = "hs:operation" )
Annotation keys stored on cobra.Command.Annotations.
View Source
const ( OpRead = "read" OpWrite = "write" OpDelete = "delete" )
Valid operations.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
Policy is a parsed set of permission rules. A nil or zero-value Policy is unrestricted (allows everything).
func Parse ¶
Parse parses a comma-separated permission string into a Policy. An empty string yields an unrestricted policy.
func (*Policy) IsUnrestricted ¶
IsUnrestricted returns true when no rules are set (everything allowed).
Click to show internal directories.
Click to hide internal directories.