Documentation ¶
Overview ¶
Package rest is a REST gateway to the grpc ACL service
Index ¶
- 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)
- func (a *Handler) Filter() func(string) string
- func (a *Handler) PutAcl(req *restful.Request, rsp *restful.Response)
- func (a *Handler) SearchAcls(req *restful.Request, rsp *restful.Response)
- 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 ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
resources.ResourceProviderHandler
}
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) DeleteAcl ¶
func (a *Handler) DeleteAcl(req *restful.Request, rsp *restful.Response)
DeleteAcl deletes an acl from storage
func (*Handler) PutAcl ¶
func (a *Handler) PutAcl(req *restful.Request, rsp *restful.Response)
PutAcl puts an acl in storage.
func (*Handler) SearchAcls ¶
func (a *Handler) SearchAcls(req *restful.Request, rsp *restful.Response)
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.