pod

package
v0.0.0-...-c5cd83c Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToK8s

func ToK8s(source Object) corev1.Pod

Types

type Labels

type Labels map[string]string

type Metadata

type Metadata struct {
	CreationTimestamp time.Time `json:"creationTimestamp,omitempty"`
	Labels            Labels    `json:"labels,omitempty"`
	Name              string    `json:"name,omitempty"`
	Namespace         string    `json:"namespace,omitempty"`
}

type Object

type Object struct {
	Metadata *Metadata `json:"metadata,omitempty"`
	Status   *Status   `json:"status,omitempty"`
}

func FromK8s

func FromK8s(source corev1.Pod) Object

type Status

type Status struct {
	Phase string `json:"phase,omitempty"`
	PodIP string `json:"podIP,omitempty"`
}

Jump to

Keyboard shortcuts

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