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"`
RestartCount int32 `json:"restart_count"`
Status string `json:"status"`
Ready bool `json:"ready"`
Ports []ContainerPort `json:"ports"`
// Message regarding the last termination of the container
Message string `json:"message"`
// reason from the last termination of the container
Reason string `json:"reason"`
// Time at which previous execution of the container started
StartedAt int64 `json:"started_at,omitempty"`
// Time at which the container last terminated
FinishedAt int64 `json:"finished_at,omitempty"`
}
type ContainerImage ¶
type ContainerPort ¶
type ContainerPort struct {
// If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
// named port in a pod must have a unique name. Name for the port that can be
// referred to by services.
// +optional
Name string `json:"name,omitempty"`
// Number of port to expose on the host.
// If specified, this must be a valid port number, 0 < x < 65536.
// If HostNetwork is specified, this must match ContainerPort.
// Most containers do not need this.
// +optional
HostPort int32 `json:"hostPort,omitempty"`
// Number of port to expose on the pod's IP address.
// This must be a valid port number, 0 < x < 65536.
ContainerPort int32 `json:"containerPort"`
// Protocol for port. Must be UDP, TCP, or SCTP.
// Defaults to "TCP".
// +optional
// +default="TCP"
Protocol Protocol `json:"protocol,omitempty"`
// What host IP to bind the external port to.
// +optional
HostIP string `json:"hostIP,omitempty"`
}
type CronJob ¶
type CronJob struct {
Name string `json:"name"`
Labels map[string]string `json:"labels"`
Images []*ContainerImage `json:"images"`
Pods []*Pod `json:"pods"`
CreateTime int64 `json:"create_time,omitempty"`
Suspend bool `json:"suspend"`
Schedule string `json:"schedule,omitempty"`
LastSchedule string `json:"last_schedule,omitempty"`
Active int `json:"active,omitempty"`
}
type Event ¶
type Event struct {
Reason string `json:"reason,omitempty"`
// A human-readable description of the status of this operation.
Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"`
// The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
FirstSeen int64 `json:"first_seen,omitempty"`
// The time at which the most recent occurrence of this event was recorded.
LastSeen int64 `json:"last_seen,omitempty"`
// The number of times this event has occurred.
Count int32 `json:"count,omitempty"`
// Type of this event (Normal, Warning), new types could be added in the future
Type string `json:"type,omitempty"`
}
type Job ¶
type Job struct {
Name string `json:"name"`
Age string `json:"age"`
Labels map[string]string `json:"labels"`
CreateTime int64 `json:"create_time,omitempty"`
Active int32 `json:"active,omitempty"`
Succeeded int32 `json:"succeeded,omitempty"`
Failed int32 `json:"failed,omitempty"`
Containers []v1.Container `json:"-"`
}
Job ...
type Pod ¶
type Pod struct {
Kind string `json:"kind"`
Name string `json:"name"`
Status string `json:"status"`
Age string `json:"age"`
CreateTime int64 `json:"createtime"`
IP string `json:"ip"`
Labels map[string]string `json:"labels"`
Containers []Container `json:"containers"`
NodeName string `json:"node_name"`
HostIP string `json:"host_ip"`
EnableDebugContainer bool `json:"enable_debug_container"`
PodReady bool `json:"pod_ready"`
ContainersReady bool `json:"containers_ready"`
ContainersMessage string `json:"containers_message"`
Succeed bool `json:"-"`
Ready bool `json:"-"`
}
type Service ¶
type Service struct {
Name string `json:"name"`
Age string `json:"age"`
Labels map[string]string `json:"labels"`
Ports []ServicePort `json:"endpoints"`
}
type ServicePort ¶
type Workload ¶
type Workload struct {
Name string `json:"name"`
Type string `json:"type"`
Images []ContainerImage `json:"images"`
Pods []*Pod `json:"pods"`
Replicas int32 `json:"replicas"`
// ZadigXReleaseType represent the release type of workload created by zadigx when it is not empty
// frontend should limit or allow some operations on these workloads
ZadigXReleaseType string `json:"zadigx_release_type"`
ZadigXReleaseTag string `json:"zadigx_release_tag"`
}
Click to show internal directories.
Click to hide internal directories.