Documentation ¶
Index ¶
- Constants
- type Group
- type HTTPManager
- func (m *HTTPManager) AddGroupMembers(group string, members []string) error
- func (m *HTTPManager) CreateGroup(g *Group) error
- func (m *HTTPManager) DeleteGroup(id string) error
- func (m *HTTPManager) FindGroupNames(subject string) ([]string, error)
- func (m *HTTPManager) GetGroup(id string) (*Group, error)
- func (m *HTTPManager) RemoveGroupMembers(group string, members []string) error
- type Handler
- func (h *Handler) AddGroupMembers(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) CreateGroup(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (h *Handler) DeleteGroup(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) FindGroupNames(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (h *Handler) GetGroup(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) RemoveGroupMembers(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) SetRoutes(r *httprouter.Router)
- type Manager
- type MemoryManager
- func (m *MemoryManager) AddGroupMembers(group string, subjects []string) error
- func (m *MemoryManager) CreateGroup(g *Group) error
- func (m *MemoryManager) DeleteGroup(id string) error
- func (m *MemoryManager) FindGroupNames(subject string) ([]string, error)
- func (m *MemoryManager) GetGroup(id string) (*Group, error)
- func (m *MemoryManager) RemoveGroupMembers(group string, subjects []string) error
- type SQLManager
- func (m *SQLManager) AddGroupMembers(group string, subjects []string) error
- func (m *SQLManager) CreateGroup(g *Group) error
- func (s *SQLManager) CreateSchemas() error
- func (m *SQLManager) DeleteGroup(id string) error
- func (m *SQLManager) FindGroupNames(subject string) ([]string, error)
- func (m *SQLManager) GetGroup(id string) (*Group, error)
- func (m *SQLManager) RemoveGroupMembers(group string, subjects []string) error
Constants ¶
View Source
const ( GroupsResource = "rn:hydra:warden:clients" GroupResource = "rn:hydra:warden:clients:%s" Scope = "hydra.warden.groups" )
View Source
const (
GroupsHandlerPath = "/warden/groups"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPManager ¶
func (*HTTPManager) AddGroupMembers ¶
func (m *HTTPManager) AddGroupMembers(group string, members []string) error
func (*HTTPManager) CreateGroup ¶
func (m *HTTPManager) CreateGroup(g *Group) error
func (*HTTPManager) DeleteGroup ¶
func (m *HTTPManager) DeleteGroup(id string) error
func (*HTTPManager) FindGroupNames ¶
func (m *HTTPManager) FindGroupNames(subject string) ([]string, error)
func (*HTTPManager) RemoveGroupMembers ¶
func (m *HTTPManager) RemoveGroupMembers(group string, members []string) error
type Handler ¶
func (*Handler) AddGroupMembers ¶
func (h *Handler) AddGroupMembers(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) CreateGroup ¶
func (h *Handler) CreateGroup(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Handler) DeleteGroup ¶
func (h *Handler) DeleteGroup(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) FindGroupNames ¶
func (h *Handler) FindGroupNames(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Handler) GetGroup ¶
func (h *Handler) GetGroup(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) RemoveGroupMembers ¶
func (h *Handler) RemoveGroupMembers(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) SetRoutes ¶
func (h *Handler) SetRoutes(r *httprouter.Router)
type MemoryManager ¶
func NewMemoryManager ¶
func NewMemoryManager() *MemoryManager
func (*MemoryManager) AddGroupMembers ¶
func (m *MemoryManager) AddGroupMembers(group string, subjects []string) error
func (*MemoryManager) CreateGroup ¶
func (m *MemoryManager) CreateGroup(g *Group) error
func (*MemoryManager) DeleteGroup ¶
func (m *MemoryManager) DeleteGroup(id string) error
func (*MemoryManager) FindGroupNames ¶
func (m *MemoryManager) FindGroupNames(subject string) ([]string, error)
func (*MemoryManager) RemoveGroupMembers ¶
func (m *MemoryManager) RemoveGroupMembers(group string, subjects []string) error
type SQLManager ¶
func (*SQLManager) AddGroupMembers ¶
func (m *SQLManager) AddGroupMembers(group string, subjects []string) error
func (*SQLManager) CreateGroup ¶
func (m *SQLManager) CreateGroup(g *Group) error
func (*SQLManager) CreateSchemas ¶
func (s *SQLManager) CreateSchemas() error
func (*SQLManager) DeleteGroup ¶
func (m *SQLManager) DeleteGroup(id string) error
func (*SQLManager) FindGroupNames ¶
func (m *SQLManager) FindGroupNames(subject string) ([]string, error)
func (*SQLManager) RemoveGroupMembers ¶
func (m *SQLManager) RemoveGroupMembers(group string, subjects []string) error
Click to show internal directories.
Click to hide internal directories.