kube

package
Version: v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: BSD-3-Clause Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// KfipBaseLabel use this label as base of other labels like check or group.
	KfipBaseLabel = "kfip.sighup.io"

	// AppBaseLabel use this label as base of other labels like name or component.
	AppBaseLabel = "app.kubernetes.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesClient

type KubernetesClient struct {
	KubeConfig      string
	Client          kubernetes.Interface
	DynClient       dynamic.Interface
	DiscoveryClient *discovery.DiscoveryClient
	// contains filtered or unexported fields
}

KubernetesClient represents the Kubernetes configuration of the project.

func (*KubernetesClient) Config added in v0.1.6

func (kc *KubernetesClient) Config() *rest.Config

Config returns the rest configuration to the Kubernetes API.

func (*KubernetesClient) GetEndpoints added in v0.1.6

func (kc *KubernetesClient) GetEndpoints(ctx *context.Context, service *corev1.Service,
	namespace string) (*corev1.Endpoints, error)

func (*KubernetesClient) GetService added in v0.1.6

func (kc *KubernetesClient) GetService(ctx *context.Context, svcName string,
	namespace string) (*corev1.Service, error)

func (*KubernetesClient) Healthz

func (kc *KubernetesClient) Healthz(ctx *context.Context) error

func (*KubernetesClient) Init

func (kc *KubernetesClient) Init() error

Init initializes the Kubernetes client-go.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL