Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) DeleteAuthToken(ctx context.Context, req *pbs.DeleteAuthTokenRequest) (*pbs.DeleteAuthTokenResponse, error)
- func (s Service) GetAuthToken(ctx context.Context, req *pbs.GetAuthTokenRequest) (*pbs.GetAuthTokenResponse, error)
- func (s Service) ListAuthTokens(ctx context.Context, req *pbs.ListAuthTokensRequest) (*pbs.ListAuthTokensResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IdActions contains the set of actions that can be performed on // individual resources IdActions = action.ActionSet{ action.NoOp, action.Read, action.ReadSelf, action.Delete, action.DeleteSelf, } // CollectionActions contains the set of actions that can be performed on // this collection CollectionActions = action.ActionSet{ action.List, } )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { pbs.UnsafeAuthTokenServiceServer // contains filtered or unexported fields }
Service handles request as described by the pbs.AuthTokenServiceServer interface.
func NewService ¶
func NewService(repo common.AuthTokenRepoFactory, iamRepoFn common.IamRepoFactory) (Service, error)
NewService returns a user service which handles user related requests to boundary.
func (Service) DeleteAuthToken ¶
func (s Service) DeleteAuthToken(ctx context.Context, req *pbs.DeleteAuthTokenRequest) (*pbs.DeleteAuthTokenResponse, error)
DeleteAuthToken implements the interface pbs.AuthTokenServiceServer.
func (Service) GetAuthToken ¶
func (s Service) GetAuthToken(ctx context.Context, req *pbs.GetAuthTokenRequest) (*pbs.GetAuthTokenResponse, error)
GetAuthToken implements the interface pbs.AuthTokenServiceServer.
func (Service) ListAuthTokens ¶
func (s Service) ListAuthTokens(ctx context.Context, req *pbs.ListAuthTokensRequest) (*pbs.ListAuthTokensResponse, error)
ListAuthTokens implements the interface pbs.AuthTokenServiceServer.
Click to show internal directories.
Click to hide internal directories.