thales

package module
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 45 Imported by: 7

README

Thales

Common layer for odysseia-greek it holds the kubernetes interface

Table of contents

Thales - Θαλῆς

Μέγιστον τόπος· ἄπαντα γὰρ χωρεῖ. - he greatest is space, for it holds all things

Thales

Installation

Usage

go get github.com/odysseia-greek/agora/thales

Documentation

Index

Constants

View Source
const (
	EnvNamespace = "NAMESPACE"
	EnvKubePath  = "KUBE_PATH"
)

Variables

This section is empty.

Functions

func CopyFileFromPod added in v0.1.5

func CopyFileFromPod(srcPath, destPath, namespace, podName string, rest rest.Interface) error

func CopyFileToPod added in v0.1.5

func CopyFileToPod(podName, destPath, srcPath, ns string, rest rest.Interface) (string, error)

func GetHostCaCertFromConfig added in v0.1.5

func GetHostCaCertFromConfig(config *rest.Config) []byte

func TestAnnotatedDeploymentObject added in v0.1.5

func TestAnnotatedDeploymentObject(name, ns string, annotations map[string]string) *appsv1.Deployment

func TestDeploymentObject added in v0.1.5

func TestDeploymentObject(name, ns string) *appsv1.Deployment

func TestJobObject added in v0.1.5

func TestJobObject(name, ns string, completed bool) *batchv1.Job

func TestPodObject added in v0.1.5

func TestPodObject(name, ns, access, role string) *corev1.Pod

func TestPodObjectWithExit added in v0.1.5

func TestPodObjectWithExit(name, ns string) *corev1.Pod

func TestPodSpecVolume added in v0.1.5

func TestPodSpecVolume(name, secretName string) []corev1.Volume

Types

type KubeClient

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

func CreateKubeClient

func CreateKubeClient(OutOfClusterKube bool) (*KubeClient, error)

func NewFakeKubeClient added in v0.1.5

func NewFakeKubeClient() *KubeClient

func NewFromConfig added in v0.1.5

func NewFromConfig(config []byte) (*KubeClient, error)

func NewInClusterKube

func NewInClusterKube() (*KubeClient, error)

func NewKubeClient

func NewKubeClient(c *rest.Config) (*KubeClient, error)

func (*KubeClient) AdmissionRegistrationV1 added in v0.1.7

func (*KubeClient) ApiextensionsV1 added in v0.1.5

func (*KubeClient) AppsV1 added in v0.1.5

func (c *KubeClient) AppsV1() appsv1.AppsV1Interface

func (*KubeClient) AuthorizationV1 added in v0.1.5

func (*KubeClient) BatchV1 added in v0.1.5

func (c *KubeClient) BatchV1() batchv1.BatchV1Interface

func (*KubeClient) Cert added in v0.1.6

func (c *KubeClient) Cert() corev1.CoreV1Interface

func (*KubeClient) CertificatesV1 added in v0.1.6

func (*KubeClient) CoreV1 added in v0.1.5

func (c *KubeClient) CoreV1() corev1.CoreV1Interface

func (*KubeClient) Discovery added in v0.1.5

func (c *KubeClient) Discovery() discovery.DiscoveryInterface

func (*KubeClient) Dynamic added in v0.1.5

func (c *KubeClient) Dynamic() dynamic.Interface

func (*KubeClient) Host added in v0.1.5

func (c *KubeClient) Host() string

func (*KubeClient) KubeCliConfig added in v0.1.5

func (c *KubeClient) KubeCliConfig(namespace string) (*genericclioptions.ConfigFlags, error)

func (*KubeClient) MetricsClient added in v0.1.8

func (c *KubeClient) MetricsClient() versioned.Interface

func (*KubeClient) RbacV1 added in v0.1.5

func (c *KubeClient) RbacV1() rbacv1.RbacV1Interface

func (*KubeClient) RestConfig added in v0.1.5

func (c *KubeClient) RestConfig() *rest.Config

func (*KubeClient) StorageV1 added in v0.1.5

func (c *KubeClient) StorageV1() storagev1.StorageV1Interface

Directories

Path Synopsis
crd

Jump to

Keyboard shortcuts

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