client

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package client implements wrappers for Kubernetes and KUDO interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Ctx        context.Context
	Kubernetes kubernetes.Interface
	Kudo       kudo.Interface
	Config     rest.Config
	// may be empty in the "in cluster" case
	KubeConfigPath string
}

Client wraps Kubernetes and KUDO APIs.

func NewForConfig

func NewForConfig(kubeconfigPath string) (Client, error)

NewForConfig creates a Client using a kubeconfig path.

func NewInCluster

func NewInCluster() (Client, error)

NewInCluster creates a Client using the service account Kubernetes gives to pods.

Jump to

Keyboard shortcuts

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