Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // aclmodels.ErrInvalidScope is returned when the scope is invalid ErrInvalidScope = errors.New("invalid scope") ErrInvalidSubject = errors.New("invalid subject") )
Functions ¶
This section is empty.
Types ¶
type RorResourceOwnerReference ¶
type RorResourceOwnerReference struct { Scope aclmodels.Acl2Scope `json:"scope"` // cluster, workspace,... Subject aclmodels.Acl2Subject `json:"subject"` // ror id eg clusterId or workspaceName }
The RorResourceOwnerReference or ownereref references the owner og a resource. Its used to chek acl and select resources for valid Scopes.
func (RorResourceOwnerReference) GetQueryParams ¶
func (r RorResourceOwnerReference) GetQueryParams() map[string]string
func (RorResourceOwnerReference) String ¶
func (r RorResourceOwnerReference) String() string
func (*RorResourceOwnerReference) Validate ¶
func (r *RorResourceOwnerReference) Validate() (bool, error)
Validate validates the ResourceOwnerReference
Click to show internal directories.
Click to hide internal directories.