types

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	// ID is a unique string that identifies a node in tis cluster.  It can be
	// any value but we strongly recommend a random GUID or a hash derived from
	// identifying information.  This should be a stable value for the lifetime
	// of the node, or else it will be assumed to be a different node.  This
	// must not include personally identifiable information.
	ID string `json:"id"`
	// OperatingSystem is the value reported by kubernetes in the node status.
	OperatingSystem *string `json:"operating_system,omitempty"`
	// OSImage is the value reported by kubernetes in the node status.
	OSImage *string `json:"os_image,omitempty"`
	// KernelVersion is the value reported by kubernetes in the node status.
	KernelVersion *string `json:"kernel_version,omitempty"`
	// Architecture is the value reported by kubernetes in the node status.
	Architecture *string `json:"architecture,omitempty"`
	// ContainerRuntimeVersion is the value reported by kubernetes in the node
	// status.
	ContainerRuntimeVersion *string `json:"container_runtime_version,omitempty"`
	// KubeletVersion is the value reported by kubernetes in the node status.
	KubeletVersion *string `json:"kubelet_version,omitempty"`
	// CloudProvider is the <ProviderName> portion of the ProviderID reported
	// by kubernetes in the node spec.
	CloudProvider *string `json:"cloud_provider,omitempty"`
	// ExternalIP is the node's external IP.
	ExternalIP string `json:"external_ip"`
	// Capacity is a list of resources and their associated values as reported
	// by kubernetes in the node status.
	Capacity []Resource `json:"capacity,omitempty"`
}

type Record

type Record struct {
	agent.KindVersion
	// Time is the time when the record is generated.
	Time time.Time `json:"time"`
	// Kubernetes version of this cluster.
	KubernetesVersion string `json:"kubernetes_version"`
	// Nodes is a list of node-specific information from the reporting cluster.
	Nodes []Node `json:"nodes,omitempty"`
}

func (*Record) String

func (r *Record) String() string

type Resource

type Resource struct {
	// Resource is the name of the resource.
	Resource string `json:"resource"`
	// Value is the string form of the of the resource's value.
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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