client

package
v0.0.0-...-3e9429a Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ClientOptions() Options
	HTTPClient() (*http.Client, error)
	OIDCConfig(context.Context) (*oauth2.Config, *oidc.Provider, error)
}

func NewClient

func NewClient(opts *Options) (Client, error)

func NewClientOrDie

func NewClientOrDie(opts *Options) Client

type Options

type Options struct {
	ServerAddress     string
	UserAgent         string
	PlainText         bool
	Insecure          bool
	CertFile          string
	ClientCertFile    string
	ClientCertKeyFile string
	Headers           []string
	HttpRetryMax      int

	AccessToken    string
	RefreshToken   string
	CredentialPath string

	Issuer   string
	ClientId string
	Scopes   []string
}

Jump to

Keyboard shortcuts

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