client

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package client GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromContext

func ClientFromContext(ctx context.Context) client.Client

func ContextWithClient

func ContextWithClient(ctx context.Context, c client.Client) context.Context

func KubeConfigFromClient

func KubeConfigFromClient(c client.Client) *rest.Config

func NewClient

func NewClient(kubeConfigPath string) (client.Client, error)

Types

type KubeClient

type KubeClient struct {
	// Paths to a kubeconfig. Only required if out-of-cluster.
	Kubeconfig string `flag:",omitempty"`
	// contains filtered or unexported fields
}

func (*KubeClient) Init

func (c *KubeClient) Init(ctx context.Context) error

func (*KubeClient) InjectContext

func (c *KubeClient) InjectContext(ctx context.Context) context.Context

func (KubeClient) RuntimeDoc

func (v KubeClient) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

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