Documentation ¶
Index ¶
- func GetAllOauthSessions(ctx context.Context) ([]*api.OauthSession, error)
- func GetOauthSession(ctx context.Context) (*api.OauthSession, error)
- type OAuthSessionsComponent
- func (c *OAuthSessionsComponent) AddToScope(ctx context.Context, scope *scopes.Scope)
- func (c *OAuthSessionsComponent) LoadOauthSessions(ctx context.Context, user *userapi.User) ([]*api.OauthSession, error)
- func (c *OAuthSessionsComponent) RefreshSession(ctx context.Context, session *api.OauthSession) error
- func (c *OAuthSessionsComponent) RegisterHandlers(s *components.Server, mux *http.ServeMux) error
- func (c *OAuthSessionsComponent) StoreSession(ctx context.Context, token *oauth2.Token) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllOauthSessions ¶
func GetAllOauthSessions(ctx context.Context) ([]*api.OauthSession, error)
func GetOauthSession ¶
func GetOauthSession(ctx context.Context) (*api.OauthSession, error)
Types ¶
type OAuthSessionsComponent ¶
type OAuthSessionsComponent struct {
// contains filtered or unexported fields
}
func GetComponent ¶
func GetComponent(ctx context.Context) *OAuthSessionsComponent
func NewOAuthSessionsComponent ¶
func NewOAuthSessionsComponent(kube *kubeclient.Client) (*OAuthSessionsComponent, error)
func (*OAuthSessionsComponent) AddToScope ¶
func (c *OAuthSessionsComponent) AddToScope(ctx context.Context, scope *scopes.Scope)
func (*OAuthSessionsComponent) LoadOauthSessions ¶
func (c *OAuthSessionsComponent) LoadOauthSessions(ctx context.Context, user *userapi.User) ([]*api.OauthSession, error)
func (*OAuthSessionsComponent) RefreshSession ¶
func (c *OAuthSessionsComponent) RefreshSession(ctx context.Context, session *api.OauthSession) error
func (*OAuthSessionsComponent) RegisterHandlers ¶
func (c *OAuthSessionsComponent) RegisterHandlers(s *components.Server, mux *http.ServeMux) error
func (*OAuthSessionsComponent) StoreSession ¶
Click to show internal directories.
Click to hide internal directories.