model

package
v1.9.0-crc1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindNode    = "Node"
	KindPod     = "Pod"
	KindService = "Service"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceMetaData

type ResourceMetaData struct {
	// Informers need that internal object is an ObjectMeta instance
	metav1.ObjectMeta
	Kind             string
	OwnerName        string
	OwnerKind        string
	HostName         string
	HostIP           string
	NetworkName      string
	IPs              []string
	SecondaryNetKeys []string
}

ResourceMetaData contains precollected metadata for Pods, Nodes and Services. Not all the fields are populated for all the above types. To save memory, we just keep in memory the necessary data for each Type. For more information about which fields are set for each type, please refer to the instantiation function of the respective informers.

Jump to

Keyboard shortcuts

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