MCPcopy Index your code
hub / github.com/coder/coder / Permission

Struct Permission

coderd/rbac/roles.go:707–712  ·  view source on GitHub ↗

Permission is the format passed into the rego.

Source from the content-addressed store, hash-verified

705
706// Permission is the format passed into the rego.
707type Permission struct {
708 // Negate makes this a negative permission
709 Negate bool `json:"negate"`
710 ResourceType string `json:"resource_type"`
711 Action policy.Action `json:"action"`
712}
713
714func (perm Permission) Valid() error {
715 if perm.ResourceType == policy.WildcardSymbol {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected