Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetGroupRequest ¶
type GetGroupRequest struct {
ID string
}
type GroupResponse ¶
type RenameGroupRequest ¶
type SecretService ¶
type SecretService interface {
// GetGroup looks up a group given its unique id.
//
// GET /group/{ID}
// ROLES admin.read, group.{ID}.read
GetGroup(context.Context, *GetGroupRequest) (*GroupResponse, error)
// RenameGroup changes an existing group's name.
//
// PUT /group/{ID}/name
// ROLES admin.write, group.{ID}.write
RenameGroup(context.Context, *RenameGroupRequest) (*GroupResponse, error)
}
SecretService contains some contrived operations to show you how to lock down your endpoints using the Authorization metadata helpers and the ROLES doc option.
type SecretServiceHandler ¶
type SecretServiceHandler struct{}
func (*SecretServiceHandler) GetGroup ¶
func (s *SecretServiceHandler) GetGroup(_ context.Context, req *GetGroupRequest) (*GroupResponse, error)
func (*SecretServiceHandler) RenameGroup ¶
func (s *SecretServiceHandler) RenameGroup(_ context.Context, req *RenameGroupRequest) (*GroupResponse, error)
Click to show internal directories.
Click to hide internal directories.