client

package
v0.0.0-...-8d22e20 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Scheme             = runtime.NewScheme()
	SchemeBuilder      = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme        = SchemeBuilder.AddToScheme
	SchemeGroupVersion = schema.GroupVersion{Group: orgv1.SchemeGroupVersion.Group, Version: orgv1.SchemeGroupVersion.Version}
)

Functions

func InitRestClient

func InitRestClient() (*rest.Config, error, *corev1client.CoreV1Client)

Comment

func NewDockerClient

func NewDockerClient() (*client.Client, error)

NewDockerClient creates docker client wrapper with helper functions to talk docker API

Types

type K8sClient

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

func NewK8sClient

func NewK8sClient() (*K8sClient, error)

NewK8sClient creates kubernetes client wrapper with helper functions and direct access to k8s go client

func (*K8sClient) Kube

func (c *K8sClient) Kube() kubernetes.Interface

Kube returns the clientset for Kubernetes upstream.

func (*K8sClient) KubeRest

func (c *K8sClient) KubeRest() crclient.Client

KubeRest Add che schema to kubernetes client runtime to perform api rest actions agains k8s clusters

Jump to

Keyboard shortcuts

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