client

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cep

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

func NewCep

func NewCep(client dynamic.Interface) *Cep

func (*Cep) CreateCR

func (c *Cep) CreateCR(ctx context.Context, endpoint *v1beta1.ClusterEndpoint) error

func (*Cep) DeleteCR

func (c *Cep) DeleteCR(ctx context.Context, namespace, name string) error

func (*Cep) DeleteCRs

func (c *Cep) DeleteCRs(ctx context.Context, namespace string, options v1.ListOptions) error

type Client

type Client interface {
	Kubernetes() kubernetes.Interface
	KubernetesDynamic() dynamic.Interface
	Config() *rest.Config
}

func NewKubernetesClient

func NewKubernetesClient(options *KubernetesOptions) Client

NewKubernetesClient creates a KubernetesClient

type KubernetesOptions

type KubernetesOptions struct {
	// kubernetes clientset qps
	// +optional
	QPS float32 `json:"qps,omitempty" yaml:"qps"`
	// kubernetes clientset burst
	// +optional
	Burst      int `json:"burst,omitempty" yaml:"burst"`
	Kubeconfig string
	Master     string
	Config     *rest.Config `json:"-" yaml:"-"`
}

func NewKubernetesOptions

func NewKubernetesOptions(kubeConfig, master string) *KubernetesOptions

NewKubernetesOptions returns a `zero` instance

Jump to

Keyboard shortcuts

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