client

package
v0.14.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	KubeForProviderConfig(ctx context.Context, pc kconfig.ProviderConfigSpec) (client.Client, *rest.Config, error)
}

A Builder creates Kubernetes clients and REST configs for a given provider config.

type BuilderFn

type BuilderFn func(ctx context.Context, pc kconfig.ProviderConfigSpec) (client.Client, *rest.Config, error)

BuilderFn is a function that can be used as a Builder.

func (BuilderFn) KubeForProviderConfig

func (fn BuilderFn) KubeForProviderConfig(ctx context.Context, pc kconfig.ProviderConfigSpec) (client.Client, *rest.Config, error)

KubeForProviderConfig calls the underlying function.

type IdentityAwareBuilder

type IdentityAwareBuilder struct {
	// contains filtered or unexported fields
}

IdentityAwareBuilder is a Builder that can inject identity credentials into the REST config of a Kubernetes client.

func NewIdentityAwareBuilder

func NewIdentityAwareBuilder(local client.Client) *IdentityAwareBuilder

NewIdentityAwareBuilder returns a new IdentityAwareBuilder.

func (*IdentityAwareBuilder) KubeForProviderConfig

KubeForProviderConfig returns the kube client and *rest.config for the given provider config.

Directories

Path Synopsis
Package gke contains utilities for authenticating to GKE clusters.
Package gke contains utilities for authenticating to GKE clusters.

Jump to

Keyboard shortcuts

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