kube

package
v0.0.0-...-c4d4bc0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DubboScheme = dubboScheme()
	DubboCodec  = serializer.NewCodecFactory(DubboScheme)
)

Functions

func BuildClientCmd

func BuildClientCmd(kubeconfig, context string, overrides ...func(configOverrides *clientcmd.ConfigOverrides)) clientcmd.ClientConfig

func BuildClientConfig

func BuildClientConfig(kubeconfig, context string) (*rest.Config, error)

func DefaultRestConfig

func DefaultRestConfig(kubeconfig, context string, fns ...func(config *rest.Config)) (*rest.Config, error)

func NewClientConfigForRestConfig

func NewClientConfigForRestConfig(restConfig *rest.Config) clientcmd.ClientConfig

func SetRestDefaults

func SetRestDefaults(config *rest.Config) *rest.Config

Types

type CLIClient

type CLIClient interface {
	Client
	DynamicClientFor(gvk schema.GroupVersionKind, obj *unstructured.Unstructured, namespace string) (dynamic.ResourceInterface, error)
}

func NewCLIClient

func NewCLIClient(clientCfg clientcmd.ClientConfig, opts ...ClientOption) (CLIClient, error)

type Client

type Client interface {
	Dynamic() dynamic.Interface
}

type ClientOption

type ClientOption func(cliClient CLIClient) CLIClient

func WithRevision

func WithRevision(revision string) ClientOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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