Documentation ¶
Index ¶
- Variables
- func DynamicClientFromContext(ctx context.Context) client.Client
- func NewContextWithDynamicClient(ctx context.Context, client client.Client) context.Context
- func NewContextWithStaticClient(ctx context.Context, client client.Client) context.Context
- func RequestMutator(ctx context.Context, req *http.Request) error
- func StaticClientFromContext(ctx context.Context) client.Client
- type Client
- type Options
- type TokenIssuer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrResponse = errors.New("unexpected http response")
)
Functions ¶
func RequestMutator ¶ added in v0.2.30
requestMutator implements OAuth2 bearer token authorization.
Types ¶
type Client ¶ added in v0.2.7
type Client struct {
// contains filtered or unexported fields
}
Client wraps up the raw OpenAPI client with things to make it useable e.g. authorization and TLS.
func New ¶
func New(client client.Client, options *Options, clientOptions *coreclient.HTTPClientOptions) *Client
New creates a new client.
type Options ¶ added in v0.2.8
type Options = coreclient.HTTPOptions
func NewOptions ¶ added in v0.2.30
func NewOptions() *Options
NewOptions must be used to create options for consistency.
type TokenIssuer ¶ added in v0.2.30
type TokenIssuer struct {
// contains filtered or unexported fields
}
func NewTokenIssuer ¶ added in v0.2.30
func NewTokenIssuer(client client.Client, identityOptions *Options, clientOptions *coreclient.HTTPClientOptions, serviceName, serviceVersion string) *TokenIssuer
Click to show internal directories.
Click to hide internal directories.