k8s

package
v0.0.0-...-b35005d Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name            string                  `json:"name"`
	Image           string                  `json:"image,omitempty"`
	Command         []string                `json:"command,omitempty"`
	Args            []string                `json:"args,omitempty"`
	VolumeMounts    []VolumeMount           `json:"volumeMounts,omitempty"`
	LivenessProbe   *coreV1.Probe           `json:"livenessProbe,omitempty"`
	ReadinessProbe  *coreV1.Probe           `json:"readinessProbe,omitempty"`
	StartupProbe    *coreV1.Probe           `json:"startupProbe,omitempty"`
	SecurityContext *coreV1.SecurityContext `json:"securityContext,omitempty"`
	Status          *coreV1.ContainerStatus `json:"status,omitempty"`
}

type NodeDetail

type NodeDetail struct {
	Metadata               ObjectMeta             `json:"metadata"`
	Spec                   nodeSpec               `json:"spec,omitempty"`
	Status                 NodeStatus             `json:"status,omitempty"`
	NodeAllocatedResources nodeAllocatedResources `json:"allocatedResources"`
}

type NodeStatus

type NodeStatus struct {
	Phase           string                     `json:"phase,omitempty"`
	Conditions      []coreV1.NodeCondition     `json:"conditions,omitempty"`
	Addresses       []coreV1.NodeAddress       `json:"addresses,omitempty"`
	DaemonEndpoints coreV1.NodeDaemonEndpoints `json:"Port"` // kubelet服务端口
	NodeInfo        coreV1.NodeSystemInfo      `json:"nodeInfo,omitempty"`
	Images          []coreV1.ContainerImage    `json:"images,omitempty"`
}

type ObjectMeta

type ObjectMeta struct {
	Name              string            `json:"name,omitempty"`
	Namespace         string            `json:"namespace,omitempty"`
	Labels            map[string]string `json:"labels,omitempty"`
	Annotations       map[string]string `json:"annotations,omitempty"`
	CreationTimestamp metaV1.Time       `json:"creationTimestamp,omitempty"`
	UID               types.UID         `json:"uid,omitempty"`
}

func NewObjectMeta

func NewObjectMeta(k8SObjectMeta metaV1.ObjectMeta) ObjectMeta

type PodBrief

type PodBrief struct {
	Name              string    `json:"name,omitempty"`
	Namespace         string    `json:"namespace,omitempty"`
	Status            string    `json:"status,omitempty"`
	Node              string    `json:"node,omitempty"`
	CreationTimestamp time.Time `json:"creationTimestamp,omitempty"`
}

PodBrief pod列表

type PodDetail

type PodDetail struct {
	MetaData ObjectMeta `json:"metadata"`
	Spec     spec       `json:"spec,omitempty"`
	Status   status     `json:"status,omitempty"`
}

PodDetail pod详情

type RelatedPod

type RelatedPod struct {
	ObjectMeta ObjectMeta `json:"metadata"`
	Status     string     `json:"status"`
	NodeName   string     `json:"nodeName"`
}

type VolumeMount

type VolumeMount struct {
	Name       string `json:"name"`
	ReadOnly   bool   `json:"readOnly,omitempty"`
	MountPath  string `json:"mountPath"`
	VolumeType string `json:"volumeType"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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