bl_kubernetes_tools

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

Kubernetes tools for go modules

Library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKubeConfig

func CreateKubeConfig(devMode bool) (*kubernetes.Clientset, client.Client)

func GetCubeConfig

func GetCubeConfig(devMode bool) (*rest.Config, error)

func ReadConfigMap

func ReadConfigMap(secretName string, clientset *kubernetes.Clientset) map[string][]byte

Types

type KubeLock

type KubeLock struct {
	Clientset     *kubernetes.Clientset
	RetryPeriod   time.Duration
	RenewDeadline time.Duration
	LeaseDuration time.Duration
}

func (KubeLock) Lock

func (k KubeLock) Lock(lockName string, run func(ctx context.Context))

Jump to

Keyboard shortcuts

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