Documentation
¶
Index ¶
- Variables
- type OIDCTokens
- type OptOptionsSetter
- type Options
- type QueryResults
- type Service
- func (s *Service) AddBookmark(ctx context.Context, user structs.User, targetID config.TargetID, title string, ...) error
- func (s *Service) AuthByAccessToken(ctx context.Context, token string) (*structs.User, error)
- func (s *Service) BuildOIDCLogoutURL(idTokenHint, postLogoutRedirectURL string) (string, error)
- func (s *Service) CompleteOIDC(ctx context.Context, code, expectedState, receivedState string) (*structs.User, time.Time, *OIDCTokens, error)
- func (s *Service) DeleteBookmark(ctx context.Context, uid config.UserID, bookmarkID uuid6.UUID) error
- func (s *Service) GetQueryResults(ctx context.Context, user structs.User, qid uuid6.UUID) (*QueryResults, error)
- func (s *Service) GetTargetByID(ctx context.Context, user structs.User, tID config.TargetID) (*structs.Server, error)
- func (s *Service) GetTargets(_ context.Context, user structs.User) ([]structs.Server, error)
- func (s *Service) InitOIDC(_ context.Context) (string, string, error)
- func (s *Service) ListAdminRequests(ctx context.Context, user structs.User, page, pageSize int64) ([]structs.AdminRequest, bool, error)
- func (s *Service) ListAllBookmarks(ctx context.Context, uid config.UserID) ([]structs.Bookmark, error)
- func (s *Service) ListBookmarks(ctx context.Context, user structs.User, targetID config.TargetID) ([]structs.Bookmark, error)
- func (s *Service) ListRecentQueries(ctx context.Context, uid config.UserID, limit int64) ([]structs.Query, error)
- func (s *Service) RevokeOIDCToken(ctx context.Context, token string) error
- func (s *Service) RunQuery(ctx context.Context, user structs.User, srvID config.TargetID, query string) (uuid6.UUID, *structs.QTable, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrForbidden = errors.New("forbidden") )
Functions ¶
This section is empty.
Types ¶
type OIDCTokens ¶ added in v0.17.10
type OptOptionsSetter ¶
type OptOptionsSetter func(o *Options)
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions( logger *slog.Logger, targets []config.Target, users config.UsersProviderOIDC, authorizer policy.Authorizer, storage *storage.Service, options ...OptOptionsSetter, ) Options
type QueryResults ¶ added in v0.13.0
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AddBookmark ¶ added in v0.17.1
func (*Service) AuthByAccessToken ¶ added in v0.17.14
func (*Service) BuildOIDCLogoutURL ¶ added in v0.17.10
func (*Service) CompleteOIDC ¶ added in v0.9.0
func (*Service) DeleteBookmark ¶ added in v0.17.1
func (*Service) GetQueryResults ¶ added in v0.13.0
func (*Service) GetTargetByID ¶
func (*Service) GetTargets ¶
GetTargets return targets that available for this user.
func (*Service) ListAdminRequests ¶ added in v0.17.11
func (*Service) ListAllBookmarks ¶ added in v0.17.1
func (*Service) ListBookmarks ¶ added in v0.17.1
func (*Service) ListRecentQueries ¶ added in v0.17.3
func (*Service) RevokeOIDCToken ¶ added in v0.17.10
Click to show internal directories.
Click to hide internal directories.