nodeagent

package
v1.88.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Hostname = os.Hostname

Hostname is an alias for os.Hostname. Exposed for testing.

Functions

func FetchNodeByHostName

func FetchNodeByHostName(ctx context.Context, c client.Client, hostName string) (*metav1.PartialObjectMetadata, error)

FetchNodeByHostName tries to fetch the node (metadata-only) object based on the hostname.

func GetHostName added in v1.87.4

func GetHostName() (string, error)

GetHostName gets the hostname and converts it to lowercase.

Types

This section is empty.

Jump to

Keyboard shortcuts

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