k8srepository

package
v0.0.0-...-25be970 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package k8srepository provides access to Kubernetes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8s

type K8s interface {
	// GetPod returns a pod
	GetPod(ctx context.Context, name, namespace string) (*corev1.Pod, error)
	// GetReplicaSet returns a replicaset
	GetReplicaSet(ctx context.Context, name, namespace string) (*appsv1.ReplicaSet, error)
	// GetExternalWorkload returns a Cilium external workload
	GetExternalWorkload(ctx context.Context, name, namespace string) (*v2.CiliumExternalWorkload, error)
}

K8s is the interface to access Kubernetes.

func NewK8sClientSet

func NewK8sClientSet(inCluster bool, configPath string) (K8s, error)

NewK8sClientSet returns a client set based implementation of K8s.

Jump to

Keyboard shortcuts

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