rorresourceowner

package
v1.1.0-rc12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL