httpissuer

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

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.

func (ErrHTTP) Error

func (e ErrHTTP) Error() string

func (ErrHTTP) Unwrap

func (e ErrHTTP) Unwrap() error

Unwrap returns the warped error.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL