Documentation ¶
Index ¶
- type AuthClient
- type Config
- type Service
- func (s *Service) CheckToken(ctx context.Context, req *connect.Request[mgmtv1alpha1.CheckTokenRequest]) (*connect.Response[mgmtv1alpha1.CheckTokenResponse], error)
- func (s *Service) GetAuthStatus(ctx context.Context, req *connect.Request[mgmtv1alpha1.GetAuthStatusRequest]) (*connect.Response[mgmtv1alpha1.GetAuthStatusResponse], error)
- func (s *Service) GetAuthorizeUrl(ctx context.Context, req *connect.Request[mgmtv1alpha1.GetAuthorizeUrlRequest]) (*connect.Response[mgmtv1alpha1.GetAuthorizeUrlResponse], error)
- func (s *Service) GetCliIssuer(ctx context.Context, req *connect.Request[mgmtv1alpha1.GetCliIssuerRequest]) (*connect.Response[mgmtv1alpha1.GetCliIssuerResponse], error)
- func (s *Service) LoginCli(ctx context.Context, req *connect.Request[mgmtv1alpha1.LoginCliRequest]) (*connect.Response[mgmtv1alpha1.LoginCliResponse], error)
- func (s *Service) RefreshCli(ctx context.Context, req *connect.Request[mgmtv1alpha1.RefreshCliRequest]) (*connect.Response[mgmtv1alpha1.RefreshCliResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶
type AuthClient interface { GetTokenResponse( ctx context.Context, clientId string, code string, redirecturi string, ) (*auth_client.AuthTokenResponse, error) GetRefreshedAccessToken( ctx context.Context, clientId string, refreshToken string, ) (*auth_client.AuthTokenResponse, error) GetAuthorizationEndpoint(ctx context.Context) (string, error) }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New( cfg *Config, authclient AuthClient, ) *Service
func (*Service) CheckToken ¶
func (s *Service) CheckToken( ctx context.Context, req *connect.Request[mgmtv1alpha1.CheckTokenRequest], ) (*connect.Response[mgmtv1alpha1.CheckTokenResponse], error)
func (*Service) GetAuthStatus ¶
func (s *Service) GetAuthStatus( ctx context.Context, req *connect.Request[mgmtv1alpha1.GetAuthStatusRequest], ) (*connect.Response[mgmtv1alpha1.GetAuthStatusResponse], error)
func (*Service) GetAuthorizeUrl ¶
func (s *Service) GetAuthorizeUrl( ctx context.Context, req *connect.Request[mgmtv1alpha1.GetAuthorizeUrlRequest], ) (*connect.Response[mgmtv1alpha1.GetAuthorizeUrlResponse], error)
func (*Service) GetCliIssuer ¶
func (s *Service) GetCliIssuer( ctx context.Context, req *connect.Request[mgmtv1alpha1.GetCliIssuerRequest], ) (*connect.Response[mgmtv1alpha1.GetCliIssuerResponse], error)
func (*Service) LoginCli ¶
func (s *Service) LoginCli( ctx context.Context, req *connect.Request[mgmtv1alpha1.LoginCliRequest], ) (*connect.Response[mgmtv1alpha1.LoginCliResponse], error)
func (*Service) RefreshCli ¶
func (s *Service) RefreshCli( ctx context.Context, req *connect.Request[mgmtv1alpha1.RefreshCliRequest], ) (*connect.Response[mgmtv1alpha1.RefreshCliResponse], error)
Click to show internal directories.
Click to hide internal directories.