Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( ctx context.Context, source *api.HTTPSource, creds Credentials, ) (token.Issuer, error)
New retrurns new Remote http issuer.
Types ¶
type Credentials ¶
type Credentials struct { Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` TOTP string `json:"totp,omitempty"` }
A Credentials represents user provided Credentials.
type ErrHTTP ¶
type ErrHTTP struct {
Err error
}
ErrHTTP represents an error that happened during operation related to HTTP source call.
type ErrHTTPResponse ¶
type ErrHTTPResponse struct {
Err error
}
ErrHTTPResponse represents an error returned by the remote server.
func (ErrHTTPResponse) Error ¶
func (e ErrHTTPResponse) Error() string
func (ErrHTTPResponse) Unwrap ¶
func (e ErrHTTPResponse) Unwrap() error
Unwrap returns the warped error.
Click to show internal directories.
Click to hide internal directories.