Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) Authenticate(ctx context.Context, req *pbs.AuthenticateRequest) (*pbs.AuthenticateResponse, error)
- func (s Service) ChangeState(ctx context.Context, req *pbs.ChangeStateRequest) (*pbs.ChangeStateResponse, error)
- func (s Service) ConvertInternalAuthTokenToApiAuthToken(ctx context.Context, tok *authtoken.AuthToken) (*pba.AuthToken, error)
- func (s Service) CreateAuthMethod(ctx context.Context, req *pbs.CreateAuthMethodRequest) (*pbs.CreateAuthMethodResponse, error)
- func (s Service) DeleteAuthMethod(ctx context.Context, req *pbs.DeleteAuthMethodRequest) (*pbs.DeleteAuthMethodResponse, error)
- func (s Service) GetAuthMethod(ctx context.Context, req *pbs.GetAuthMethodRequest) (*pbs.GetAuthMethodResponse, error)
- func (s Service) ListAuthMethods(ctx context.Context, req *pbs.ListAuthMethodsRequest) (*pbs.ListAuthMethodsResponse, error)
- func (s Service) UpdateAuthMethod(ctx context.Context, req *pbs.UpdateAuthMethodRequest) (*pbs.UpdateAuthMethodResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( // IdActions contains the set of actions that can be performed on // individual resources IdActions = make(map[subtypes.Subtype]action.ActionSet) // 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.UnsafeAuthMethodServiceServer // contains filtered or unexported fields }
Service handles request as described by the pbs.AuthMethodServiceServer interface.
func NewService ¶
func NewService(kms *kms.Kms, pwRepoFn common.PasswordAuthRepoFactory, oidcRepoFn common.OidcAuthRepoFactory, iamRepoFn common.IamRepoFactory, atRepoFn common.AuthTokenRepoFactory, opt ...handlers.Option) (Service, error)
NewService returns a auth method service which handles auth method related requests to boundary.
func (Service) Authenticate ¶
func (s Service) Authenticate(ctx context.Context, req *pbs.AuthenticateRequest) (*pbs.AuthenticateResponse, error)
Authenticate implements the interface pbs.AuthenticationServiceServer.
func (Service) ChangeState ¶
func (s Service) ChangeState(ctx context.Context, req *pbs.ChangeStateRequest) (*pbs.ChangeStateResponse, error)
ChangeState implements the interface pbs.AuthMethodServiceServer.
func (Service) ConvertInternalAuthTokenToApiAuthToken ¶
func (Service) CreateAuthMethod ¶
func (s Service) CreateAuthMethod(ctx context.Context, req *pbs.CreateAuthMethodRequest) (*pbs.CreateAuthMethodResponse, error)
CreateAuthMethod implements the interface pbs.AuthMethodServiceServer.
func (Service) DeleteAuthMethod ¶
func (s Service) DeleteAuthMethod(ctx context.Context, req *pbs.DeleteAuthMethodRequest) (*pbs.DeleteAuthMethodResponse, error)
DeleteAuthMethod implements the interface pbs.AuthMethodServiceServer.
func (Service) GetAuthMethod ¶
func (s Service) GetAuthMethod(ctx context.Context, req *pbs.GetAuthMethodRequest) (*pbs.GetAuthMethodResponse, error)
GetAuthMethod implements the interface pbs.AuthMethodServiceServer.
func (Service) ListAuthMethods ¶
func (s Service) ListAuthMethods(ctx context.Context, req *pbs.ListAuthMethodsRequest) (*pbs.ListAuthMethodsResponse, error)
ListAuthMethods implements the interface pbs.AuthMethodServiceServer.
func (Service) UpdateAuthMethod ¶
func (s Service) UpdateAuthMethod(ctx context.Context, req *pbs.UpdateAuthMethodRequest) (*pbs.UpdateAuthMethodResponse, error)
UpdateAuthMethod implements the interface pbs.AuthMethodServiceServer.