client

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFormatError is returned when a secret doesn't meet the specification.
	ErrFormatError = errors.New("secret incorrectly formatted")
)

Functions

func DynamicClientFromContext

func DynamicClientFromContext(ctx context.Context) client.Client

func NewContextWithDynamicClient

func NewContextWithDynamicClient(ctx context.Context, client client.Client) context.Context

func NewContextWithStaticClient

func NewContextWithStaticClient(ctx context.Context, client client.Client) context.Context

func StaticClientFromContext

func StaticClientFromContext(ctx context.Context) client.Client

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, namespace string, options *Options) *Client

New creates a new client.

func (*Client) Client added in v0.2.7

Client returns a new OpenAPI client that can be used to access the API.

type Options added in v0.2.8

type Options struct {
	// Host is the identity Host name.
	Host string
	// CASecretNamespace tells us where to source the CA secret.
	CASecretNamespace string
	// CASecretName is the root CA secret of the identity endpoint.
	CASecretName string
}

func (*Options) AddFlags added in v0.2.8

func (o *Options) AddFlags(f *pflag.FlagSet)

AddFlags adds the options to the CLI flags.

Jump to

Keyboard shortcuts

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