Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) AddUserAccounts(ctx context.Context, req *pbs.AddUserAccountsRequest) (*pbs.AddUserAccountsResponse, error)
- func (s Service) CreateUser(ctx context.Context, req *pbs.CreateUserRequest) (*pbs.CreateUserResponse, error)
- func (s Service) DeleteUser(ctx context.Context, req *pbs.DeleteUserRequest) (*pbs.DeleteUserResponse, error)
- func (s Service) GetUser(ctx context.Context, req *pbs.GetUserRequest) (*pbs.GetUserResponse, error)
- func (s Service) ListUsers(ctx context.Context, req *pbs.ListUsersRequest) (*pbs.ListUsersResponse, error)
- func (s Service) RemoveUserAccounts(ctx context.Context, req *pbs.RemoveUserAccountsRequest) (*pbs.RemoveUserAccountsResponse, error)
- func (s Service) SetUserAccounts(ctx context.Context, req *pbs.SetUserAccountsRequest) (*pbs.SetUserAccountsResponse, error)
- func (s Service) UpdateUser(ctx context.Context, req *pbs.UpdateUserRequest) (*pbs.UpdateUserResponse, 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.AddAccounts, action.SetAccounts, action.RemoveAccounts, } // 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.UnsafeUserServiceServer // contains filtered or unexported fields }
Service handles request as described by the pbs.UserServiceServer interface.
func NewService ¶
func NewService(repo common.IamRepoFactory) (Service, error)
NewService returns a user service which handles user related requests to boundary.
func (Service) AddUserAccounts ¶
func (s Service) AddUserAccounts(ctx context.Context, req *pbs.AddUserAccountsRequest) (*pbs.AddUserAccountsResponse, error)
AddUserAccounts implements the interface pbs.GroupServiceServer.
func (Service) CreateUser ¶
func (s Service) CreateUser(ctx context.Context, req *pbs.CreateUserRequest) (*pbs.CreateUserResponse, error)
CreateUser implements the interface pbs.UserServiceServer.
func (Service) DeleteUser ¶
func (s Service) DeleteUser(ctx context.Context, req *pbs.DeleteUserRequest) (*pbs.DeleteUserResponse, error)
DeleteUser implements the interface pbs.UserServiceServer.
func (Service) GetUser ¶
func (s Service) GetUser(ctx context.Context, req *pbs.GetUserRequest) (*pbs.GetUserResponse, error)
GetUsers implements the interface pbs.UserServiceServer.
func (Service) ListUsers ¶
func (s Service) ListUsers(ctx context.Context, req *pbs.ListUsersRequest) (*pbs.ListUsersResponse, error)
ListUsers implements the interface pbs.UserServiceServer.
func (Service) RemoveUserAccounts ¶
func (s Service) RemoveUserAccounts(ctx context.Context, req *pbs.RemoveUserAccountsRequest) (*pbs.RemoveUserAccountsResponse, error)
RemoveUserAccounts implements the interface pbs.GroupServiceServer.
func (Service) SetUserAccounts ¶
func (s Service) SetUserAccounts(ctx context.Context, req *pbs.SetUserAccountsRequest) (*pbs.SetUserAccountsResponse, error)
SetUserAccounts implements the interface pbs.GroupServiceServer.
func (Service) UpdateUser ¶
func (s Service) UpdateUser(ctx context.Context, req *pbs.UpdateUserRequest) (*pbs.UpdateUserResponse, error)
UpdateUser implements the interface pbs.UserServiceServer.