config

package
v0.0.0-...-9b4d37b Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ID is the id as advertised when calling /info
	ID = "com.joyrex2001.kubedock"
	// Name is the name as advertised when calling /info
	Name = "kubedock"
	// OS is the operating system as advertised when calling /info
	OS = "kubernetes"
	// DockerVersion is the docker version as advertised when calling /version
	DockerVersion = "1.25"
	// DockerMinAPIVersion is the minimum docker version as advertised when calling /version
	DockerMinAPIVersion = "1.25"
	// DockerAPIVersion is the api version as advertised when calling /version
	DockerAPIVersion = "1.25"
	// LibpodAPIVersion is the api version as advertised in libpod rest calls
	LibpodAPIVersion = "4.2.0"
)

Variables

View Source
var (
	// GoVersion is the version of go as advertised when calling /version
	GoVersion = runtime.Version()
	// GOOS is the runtime operating system as advertised when calling /version
	GOOS = runtime.GOOS
	// GOARCH is runtime architecture of go as advertised when calling /version
	GOARCH = runtime.GOARCH
)
View Source
var (
	// Version as injected during buildtime.
	Version = "<undef>"
	// Build id asinjected during buildtime.
	Build = "<undef>"
	// Date of build as injected during buildtime.
	Date = "<undef>"
	// Image is the current image as injected during buildtime.
	Image = "joyrex2001/kubedock:latest"
)
View Source
var DefaultAnnotations = map[string]string{}

DefaultAnnotations are the annotations that are added to every kubedock managed k8s resource.

View Source
var DefaultLabels = map[string]string{}

DefaultLabels are the labels that are added to every kubedock managed k8s resource.

View Source
var InstanceID = ""

InstanceID contains an unique ID to identify this running instance.

View Source
var SystemLabels = map[string]string{
	"kubedock":    "true",
	"kubedock.id": "",
}

SystemLabels are the labels that are added to every kubedock managed k8s resource and which should not be altered.

Functions

func AddDefaultAnnotation

func AddDefaultAnnotation(key, value string)

AddDefaultAnnotation will add an annotation that will be added to all containers started by this kubedock instance.

func AddDefaultLabel

func AddDefaultLabel(key, value string)

AddDefaultLabel will add a label that will be added to all containers started by this kubedock instance.

func GetKubernetes

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

GetKubernetes will return a kubernetes config object.

func VersionString

func VersionString() string

VersionString will return a string with details of the current version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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