k8s

package
v1.2.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clientset added in v1.2.0

type Clientset struct {
	*kubernetes.Clientset
	// contains filtered or unexported fields
}

Clientset contains the cyclone Clientset and kubernetes Clientset

func NewForConfig added in v1.2.0

func NewForConfig(c *rest.Config) (*Clientset, error)

NewForConfig creates a new Clientset for the given config.

func (*Clientset) CycloneV1alpha1 added in v1.2.0

func (c *Clientset) CycloneV1alpha1() cyclonev1alpha1.CycloneV1alpha1Interface

CycloneV1alpha1 retrieves the CycloneV1alpha1Client

type Interface added in v1.2.0

type Interface interface {
	kubernetes.Interface
	CycloneV1alpha1() cyclonev1alpha1.CycloneV1alpha1Interface
}

Interface consists of kubernetes and cyclone interfaces

func GetClient

func GetClient(kubeConfigPath string) (Interface, error)

GetClient creates a client for k8s cluster

func GetRateLimitClient added in v0.9.8

func GetRateLimitClient(kubeConfigPath string, qps float32, burst int) (Interface, error)

GetRateLimitClient creates a client for k8s cluster with custom defined qps and burst.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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