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"`
// 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 CronJob ¶ added in v1.9.9
type CronJob struct {
Name string `json:"name"`
Labels map[string]string `json:"labels"`
Images []*ContainerImage `json:"images"`
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"`
ContainerStatuses []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 config.ZadigXReleaseType `json:"zadigx_release_type"`
ZadigXReleaseTag string `json:"zadigx_release_tag"`
}
Click to show internal directories.
Click to hide internal directories.