Versions in this module Expand all Collapse all v0 v0.7.2 Jan 2, 2017 v0.7.1 Dec 30, 2016 v0.7.0 Dec 30, 2016 Changes in this version + const GroupResource + const GroupsHandlerPath + const GroupsResource + const Scope + type Group struct + ID string + Members []string + type HTTPManager struct + Client *http.Client + Dry bool + Endpoint *url.URL + 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 struct + H herodot.Herodot + Manager Manager + W firewall.Firewall + 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 interface + AddGroupMembers func(group string, members []string) error + CreateGroup func(*Group) error + DeleteGroup func(id string) error + FindGroupNames func(subject string) ([]string, error) + GetGroup func(id string) (*Group, error) + RemoveGroupMembers func(group string, members []string) error + type MemoryManager struct + Groups map[string]Group + func NewMemoryManager() *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 struct + DB *sqlx.DB + func (m *SQLManager) AddGroupMembers(group string, subjects []string) error + func (m *SQLManager) CreateGroup(g *Group) 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 + func (s *SQLManager) CreateSchemas() error