client

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 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) *Client

New creates a new client.

func (*Client) AddFlags added in v0.2.7

func (c *Client) AddFlags(f *pflag.FlagSet)

AddFlags adds the options to the CLI flags.

func (*Client) Client added in v0.2.7

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

Jump to

Keyboard shortcuts

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