host

package
v0.0.0-...-71d4451 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostname

func GetHostname() (string, error)

GetHostname returns the node hostname using kubernetes as lib to ensure that will obtain the same value This code is the same used kubernetes project: (We copied to avoid to add a dependency only because of this snipt) https://github.com/kubernetes/kubernetes/blob/6b34fafdaf5998039c7e01fa33920a641b216d3e/staging/src/k8s.io/component-helpers/node/util/hostname.go#L25-L46

func ProtectedID

func ProtectedID() (string, error)

ProtectedID returns a hashed version of the machine ID in a cryptographically secure way,

Types

This section is empty.

Jump to

Keyboard shortcuts

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