k8s

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scheme = runtime.NewScheme()

Scheme consists of kubernetes and cyclone scheme.

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