Documentation ¶
Index ¶
Constants ¶
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 ¶
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 )
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" )
var DefaultAnnotations = map[string]string{}
DefaultAnnotations are the annotations that are added to every kubedock managed k8s resource.
var DefaultLabels = map[string]string{}
DefaultLabels are the labels that are added to every kubedock managed k8s resource.
var InstanceID = ""
InstanceID contains an unique ID to identify this running instance.
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 ¶
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.