kubernetes

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: GPL-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("kubernetes", fx.Provide(NewKubernetesClient))

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	InCluster  bool
	ApiServer  string
	Kubeconfig string
	Namespace  string
}

type KubernetesClient

type KubernetesClient struct {
	Clientset *kubernetes.Clientset
	Namespace string
}

func NewKubernetesClient

func NewKubernetesClient(config *Configuration) (*KubernetesClient, error)

func (*KubernetesClient) RunJob

func (k *KubernetesClient) RunJob(job *batchv1.Job) error

Jump to

Keyboard shortcuts

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