pod

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	EnvKey string // default POD_NAME, then HOSTNAME
}

Provider returns Kubernetes pod name as instance identity.

func (Provider) InstanceID

func (p Provider) InstanceID() string

InstanceID prefers POD_NAME, then HOSTNAME, else "unknown".

Jump to

Keyboard shortcuts

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