kubernetes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubernetesNamespace

func GetKubernetesNamespace() string

GetKubernetesNamespace returns the kubernetes namespace we're running under, or an empty string if the namespace cannot be determined.

func NewClient

func NewClient(namespace string) k8scli

func NodeName

func NodeName() string

NodeName returns the name of the k8s node we're running on.

Types

type Auths

type Auths struct {
	Registries RegistriesStruct `json:"auths"`
}

Auths struct contains an embedded RegistriesStruct of name auths

type RegistriesStruct

type RegistriesStruct map[string]RegistryCredentials

RegistriesStruct is a map of registries to their credentials

type RegistryCredentials

type RegistryCredentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
	Auth     string `json:"auth"`
}

RegistryCredentials defines the fields stored per registry in an docker config secret

Jump to

Keyboard shortcuts

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