utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SUCCESSFUL_STATUS_CODES = []int{200, 201, 202, 203, 204, 205, 206, 207, 208, 226}

Functions

func GenerateUniqueContainerName added in v1.0.0

func GenerateUniqueContainerName(pod *v1.Pod, container v1.Container) string

func GetClient

func GetClient() (kubernetes.Interface, error)

GetClient returns a clientset from inside the cluster

func GetRestConfig

func GetRestConfig() (*rest.Config, error)

GetRestConfig returns a valid rest client for connecting to Kubernetes

func HandleErrorStream added in v1.0.0

func HandleErrorStream(errCh chan error)

func Send added in v1.0.0

func Send(data interface{}, method string, url string, client *http.Client) error

func ShrinkStringMap added in v1.0.0

func ShrinkStringMap(o map[string]string) map[string]string

ShrinkStringMap shrinks a map of strings without leaking memory

Types

This section is empty.

Jump to

Keyboard shortcuts

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