Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) CancelSession(ctx context.Context, req *pbs.CancelSessionRequest) (*pbs.CancelSessionResponse, error)
- func (s Service) GetSession(ctx context.Context, req *pbs.GetSessionRequest) (*pbs.GetSessionResponse, error)
- func (s Service) ListSessions(ctx context.Context, req *pbs.ListSessionsRequest) (*pbs.ListSessionsResponse, 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.Cancel, action.CancelSelf, } // 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.UnsafeSessionServiceServer // contains filtered or unexported fields }
Service handles request as described by the pbs.SessionServiceServer interface.
func NewService ¶
func NewService(ctx context.Context, repoFn session.RepositoryFactory, iamRepoFn common.IamRepoFactory) (Service, error)
NewService returns a session service which handles session related requests to boundary.
func (Service) CancelSession ¶
func (s Service) CancelSession(ctx context.Context, req *pbs.CancelSessionRequest) (*pbs.CancelSessionResponse, error)
CancelSession implements the interface pbs.SessionServiceServer.
func (Service) GetSession ¶
func (s Service) GetSession(ctx context.Context, req *pbs.GetSessionRequest) (*pbs.GetSessionResponse, error)
GetSessions implements the interface pbs.SessionServiceServer.
func (Service) ListSessions ¶
func (s Service) ListSessions(ctx context.Context, req *pbs.ListSessionsRequest) (*pbs.ListSessionsResponse, error)
ListSessions implements the interface pbs.SessionServiceServer.
Click to show internal directories.
Click to hide internal directories.