Documentation
¶
Index ¶
- type GenAuthClient
- type Option
- type Service
- func (s *Service) ClearCache()
- func (s *Service) Editor() authenticator.RequestEditor
- func (s *Service) Init(_ context.Context) error
- func (s *Service) Name() string
- func (s *Service) RetrieveTokenForAPI(ctx context.Context, target string) (string, error)
- func (s *Service) Token(ctx context.Context, target string) (string, error)
- type TargetResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenAuthClient ¶
type GenAuthClient interface {
RequestTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oauth2.RequestEditorFn) (*oauth2.RequestTokenResponse, error)
}
type Option ¶
type Option func(*Service)
func WithAuthHeader ¶
func WithClient ¶
func WithClient(c GenAuthClient) Option
func WithTargetResolver ¶
func WithTargetResolver(r TargetResolver) Option
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ClearCache ¶
func (s *Service) ClearCache()
func (*Service) Editor ¶
func (s *Service) Editor() authenticator.RequestEditor
func (*Service) RetrieveTokenForAPI ¶
type TargetResolver ¶
Click to show internal directories.
Click to hide internal directories.