Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts Options) *Authorizer
func (*Authorizer) GetAuthorizedObjects ¶
func (a *Authorizer) GetAuthorizedObjects(objects any, authorizer func(any) bool) any
func (*Authorizer) IsObjectAuthorized ¶
func (a *Authorizer) IsObjectAuthorized(object any) bool
type ComponentAuthorizer ¶
type ComponentAuthorizer func(component componentsapi.Component) bool
Type of function that determines if a component is authorized. The function receives the component and must return true if the component is authorized.
type HTTPEndpointAuthorizer ¶
type HTTPEndpointAuthorizer func(endpoint httpendpointsapi.HTTPEndpoint) bool
Type of function that determines if an http endpoint is authorized. The function receives the http endpoint and must return true if the http endpoint is authorized.
type Options ¶
type Options struct { ID string GlobalConfig *config.Configuration }
Click to show internal directories.
Click to hide internal directories.