Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) AddGroupMembers(ctx context.Context, req *pbs.AddGroupMembersRequest) (*pbs.AddGroupMembersResponse, error)
- func (s Service) CreateGroup(ctx context.Context, req *pbs.CreateGroupRequest) (*pbs.CreateGroupResponse, error)
- func (s Service) DeleteGroup(ctx context.Context, req *pbs.DeleteGroupRequest) (*pbs.DeleteGroupResponse, error)
- func (s Service) GetGroup(ctx context.Context, req *pbs.GetGroupRequest) (*pbs.GetGroupResponse, error)
- func (s Service) ListGroups(ctx context.Context, req *pbs.ListGroupsRequest) (*pbs.ListGroupsResponse, error)
- func (s Service) RemoveGroupMembers(ctx context.Context, req *pbs.RemoveGroupMembersRequest) (*pbs.RemoveGroupMembersResponse, error)
- func (s Service) SetGroupMembers(ctx context.Context, req *pbs.SetGroupMembersRequest) (*pbs.SetGroupMembersResponse, error)
- func (s Service) UpdateGroup(ctx context.Context, req *pbs.UpdateGroupRequest) (*pbs.UpdateGroupResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( // IdActions contains the set of actions that can be performed on // individual resources IdActions = action.ActionSet{ action.NoOp, action.Read, action.Update, action.Delete, action.AddMembers, action.SetMembers, action.RemoveMembers, } // CollectionActions contains the set of actions that can be performed on // this collection CollectionActions = action.ActionSet{ action.Create, action.List, } )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { pbs.UnimplementedGroupServiceServer // contains filtered or unexported fields }
Service handles request as described by the pbs.GroupServiceServer interface.
func NewService ¶
func NewService(repo common.IamRepoFactory) (Service, error)
NewService returns a group service which handles group related requests to boundary.
func (Service) AddGroupMembers ¶
func (s Service) AddGroupMembers(ctx context.Context, req *pbs.AddGroupMembersRequest) (*pbs.AddGroupMembersResponse, error)
AddGroupMembers implements the interface pbs.GroupServiceServer.
func (Service) CreateGroup ¶
func (s Service) CreateGroup(ctx context.Context, req *pbs.CreateGroupRequest) (*pbs.CreateGroupResponse, error)
CreateGroup implements the interface pbs.GroupServiceServer.
func (Service) DeleteGroup ¶
func (s Service) DeleteGroup(ctx context.Context, req *pbs.DeleteGroupRequest) (*pbs.DeleteGroupResponse, error)
DeleteGroup implements the interface pbs.GroupServiceServer.
func (Service) GetGroup ¶
func (s Service) GetGroup(ctx context.Context, req *pbs.GetGroupRequest) (*pbs.GetGroupResponse, error)
GetGroups implements the interface pbs.GroupServiceServer.
func (Service) ListGroups ¶
func (s Service) ListGroups(ctx context.Context, req *pbs.ListGroupsRequest) (*pbs.ListGroupsResponse, error)
ListGroups implements the interface pbs.GroupServiceServer.
func (Service) RemoveGroupMembers ¶
func (s Service) RemoveGroupMembers(ctx context.Context, req *pbs.RemoveGroupMembersRequest) (*pbs.RemoveGroupMembersResponse, error)
RemoveGroupMembers implements the interface pbs.GroupServiceServer.
func (Service) SetGroupMembers ¶
func (s Service) SetGroupMembers(ctx context.Context, req *pbs.SetGroupMembersRequest) (*pbs.SetGroupMembersResponse, error)
SetGroupMembers implements the interface pbs.GroupServiceServer.
func (Service) UpdateGroup ¶
func (s Service) UpdateGroup(ctx context.Context, req *pbs.UpdateGroupRequest) (*pbs.UpdateGroupResponse, error)
UpdateGroup implements the interface pbs.GroupServiceServer.