container

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package container provides container and orchestration commands (docker, kubectl, psql).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sContainerStatus

type K8sContainerStatus struct {
	Name         string         `json:"name"`
	RestartCount int            `json:"restartCount"`
	State        map[string]any `json:"state"`
}

type K8sMetadata

type K8sMetadata struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type K8sPod

type K8sPod struct {
	Metadata K8sMetadata  `json:"metadata"`
	Status   K8sPodStatus `json:"status"`
}

type K8sPodList

type K8sPodList struct {
	Items []K8sPod `json:"items"`
}

JSON structures for kubectl

type K8sPodStatus

type K8sPodStatus struct {
	Phase             string               `json:"phase"`
	ContainerStatuses []K8sContainerStatus `json:"containerStatuses"`
}

type K8sService

type K8sService struct {
	Metadata K8sMetadata    `json:"metadata"`
	Spec     K8sServiceSpec `json:"spec"`
}

type K8sServiceList

type K8sServiceList struct {
	Items []K8sService `json:"items"`
}

type K8sServicePort

type K8sServicePort struct {
	Port       int    `json:"port"`
	TargetPort string `json:"targetPort"`
}

type K8sServiceSpec

type K8sServiceSpec struct {
	Type  string           `json:"type"`
	Ports []K8sServicePort `json:"ports"`
}

Jump to

Keyboard shortcuts

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