pod

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Name              string `db:"name"`
	Namespace         string `db:"namespace"`
	NodeName          string `db:"node_name"`
	Containers        container.InfoList
	CreationTimestamp time.Time         `db:"creation_ts"`
	Labels            map[string]string `db:"labels"`
	CPURequests       float64           `db:"cpu_requests"`
	CPULimits         float64           `db:"cpu_limits"`
	MemoryRequests    float64           `db:"memory_requests"`
	MemoryLimits      float64           `db:"memory_limits"`
	IP                string            `db:"ip"`
}

type InfoList

type InfoList []*Info

func Fetch

func Fetch(ctx context.Context, clientset *kubernetes.Clientset) (InfoList, error)

Jump to

Keyboard shortcuts

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