Documentation ¶
Index ¶
- func NewHandler(ctx context.Context) service2.WebHandler
- type Handler
- func (a *Handler) CheckNode(ctx context.Context, nodeID string, action *idm.ACLAction) error
- func (a *Handler) CheckRole(ctx context.Context, roleID string) error
- func (a *Handler) DeleteAcl(req *restful.Request, rsp *restful.Response) error
- func (a *Handler) Filter() func(string) string
- func (a *Handler) PutAcl(req *restful.Request, rsp *restful.Response) error
- func (a *Handler) SearchAcls(req *restful.Request, rsp *restful.Response) error
- func (a *Handler) SwaggerTags() []string
- func (a *Handler) WriteAllowed(ctx context.Context, acl *idm.ACL) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(ctx context.Context) service2.WebHandler
Types ¶
type Handler ¶
type Handler struct { resources.ResourceProviderHandler // contains filtered or unexported fields }
Handler for the rest package
func (*Handler) CheckNode ¶
CheckNode uses AccessList object to analyze the current ACLs of the target node
func (*Handler) CheckRole ¶
CheckRole loads a role and its Policies to check wether this role can be edited in the current context
func (*Handler) SearchAcls ¶
SearchAcls uses a stream to search in the acls
func (*Handler) SwaggerTags ¶
SwaggerTags list the names of the service tags declared in the swagger json implemented by this service
Click to show internal directories.
Click to hide internal directories.