Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) ChangePassword(ctx context.Context, req *pbs.ChangePasswordRequest) (*pbs.ChangePasswordResponse, error)
- func (s Service) CreateAccount(ctx context.Context, req *pbs.CreateAccountRequest) (*pbs.CreateAccountResponse, error)
- func (s Service) DeleteAccount(ctx context.Context, req *pbs.DeleteAccountRequest) (*pbs.DeleteAccountResponse, error)
- func (s Service) GetAccount(ctx context.Context, req *pbs.GetAccountRequest) (*pbs.GetAccountResponse, error)
- func (s Service) ListAccounts(ctx context.Context, req *pbs.ListAccountsRequest) (*pbs.ListAccountsResponse, error)
- func (s Service) SetPassword(ctx context.Context, req *pbs.SetPasswordRequest) (*pbs.SetPasswordResponse, error)
- func (s Service) UpdateAccount(ctx context.Context, req *pbs.UpdateAccountRequest) (*pbs.UpdateAccountResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IdActions contains the set of actions that can be performed on // individual resources IdActions = map[subtypes.Subtype]action.ActionSet{ password.Subtype: { action.NoOp, action.Read, action.Update, action.Delete, action.SetPassword, action.ChangePassword, }, oidc.Subtype: { action.NoOp, action.Read, action.Update, action.Delete, }, } // 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.UnsafeAccountServiceServer // contains filtered or unexported fields }
Service handles request as described by the pbs.AccountServiceServer interface.
func NewService ¶
func NewService(pwRepo common.PasswordAuthRepoFactory, oidcRepo common.OidcAuthRepoFactory) (Service, error)
NewService returns a account service which handles account related requests to boundary.
func (Service) ChangePassword ¶
func (s Service) ChangePassword(ctx context.Context, req *pbs.ChangePasswordRequest) (*pbs.ChangePasswordResponse, error)
ChangePassword implements the interface pbs.AccountServiceServer.
func (Service) CreateAccount ¶
func (s Service) CreateAccount(ctx context.Context, req *pbs.CreateAccountRequest) (*pbs.CreateAccountResponse, error)
CreateAccount implements the interface pbs.AccountServiceServer.
func (Service) DeleteAccount ¶
func (s Service) DeleteAccount(ctx context.Context, req *pbs.DeleteAccountRequest) (*pbs.DeleteAccountResponse, error)
DeleteAccount implements the interface pbs.AccountServiceServer.
func (Service) GetAccount ¶
func (s Service) GetAccount(ctx context.Context, req *pbs.GetAccountRequest) (*pbs.GetAccountResponse, error)
GetAccount implements the interface pbs.AccountServiceServer.
func (Service) ListAccounts ¶
func (s Service) ListAccounts(ctx context.Context, req *pbs.ListAccountsRequest) (*pbs.ListAccountsResponse, error)
ListAccounts implements the interface pbs.AccountServiceServer.
func (Service) SetPassword ¶
func (s Service) SetPassword(ctx context.Context, req *pbs.SetPasswordRequest) (*pbs.SetPasswordResponse, error)
SetPassword implements the interface pbs.AccountServiceServer.
func (Service) UpdateAccount ¶
func (s Service) UpdateAccount(ctx context.Context, req *pbs.UpdateAccountRequest) (*pbs.UpdateAccountResponse, error)
UpdateAccount implements the interface pbs.AccountServiceServer.
Click to show internal directories.
Click to hide internal directories.