klient

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControllerRuntimeClient added in v0.1.0

func NewControllerRuntimeClient(cfg *rest.Config, scheme *runtime.Scheme) (cr.Client, error)

NewControllerRuntimeClient provides an instance of the Controller runtime client with the provided rest config and custom runtime scheme.

Types

type Client

type Client interface {
	// RESTConfig returns the *rest.Config associated with this client.
	RESTConfig() *rest.Config
	// Resources returns a *Resources type to access resource CRUD operations.
	// This method takes zero or at most 1 namespace (more will panic) that
	// can be used in List operations.
	Resources(...string) *resources.Resources
}

Client stores values to interact with the API-server.

func New

func New(cfg *rest.Config) (Client, error)

New returns a new Client value

func NewWithKubeConfigFile

func NewWithKubeConfigFile(filePath string) (Client, error)

NewWithKubeConfigFile creates a client using the kubeconfig filePath

Directories

Path Synopsis
Package conf is used to create an instance of *rest.Config
Package conf is used to create an instance of *rest.Config
k8s

Jump to

Keyboard shortcuts

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