You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -250,18 +250,18 @@ func (id DockerID) ContainerID() ContainerID {
250
250
}
251
251
}
252
252
253
-
// ContainerState represents the state of a container
254
-
typeContainerStatestring
253
+
// State represents the state of a container
254
+
typeStatestring
255
255
256
256
const (
257
257
// ContainerStateCreated indicates a container that has been created (e.g. with docker create) but not started.
258
-
ContainerStateCreatedContainerState="created"
258
+
ContainerStateCreatedState="created"
259
259
// ContainerStateRunning indicates a currently running container.
260
-
ContainerStateRunningContainerState="running"
260
+
ContainerStateRunningState="running"
261
261
// ContainerStateExited indicates a container that ran and completed ("stopped" in other contexts, although a created container is technically also "stopped").
262
-
ContainerStateExitedContainerState="exited"
262
+
ContainerStateExitedState="exited"
263
263
// ContainerStateUnknown encompasses all the states that we currently don't care about (like restarting, paused, dead).
264
-
ContainerStateUnknownContainerState="unknown"
264
+
ContainerStateUnknownState="unknown"
265
265
)
266
266
267
267
// Container provides the runtime information for a container, such as ID, hash,
@@ -282,7 +282,7 @@ type Container struct {
282
282
// not managed by kubelet.
283
283
Hashuint64
284
284
// State is the state of the container.
285
-
StateContainerState
285
+
StateState
286
286
}
287
287
288
288
// PodStatus represents the status of the pod and its containers.
@@ -297,20 +297,20 @@ type PodStatus struct {
297
297
// All IPs assigned to this pod
298
298
IPs []string
299
299
// Status of containers in the pod.
300
-
ContainerStatuses []*ContainerStatus
300
+
ContainerStatuses []*Status
301
301
// Status of the pod sandbox.
302
302
// Only for kuberuntime now, other runtime may keep it nil.
303
303
SandboxStatuses []*runtimeapi.PodSandboxStatus
304
304
}
305
305
306
-
// ContainerStatus represents the status of a container.
307
-
typeContainerStatusstruct {
306
+
// Status represents the status of a container.
307
+
typeStatusstruct {
308
308
// ID of the container.
309
309
IDContainerID
310
310
// Name of the container.
311
311
Namestring
312
312
// Status of the container.
313
-
StateContainerState
313
+
StateState
314
314
// Creation time of the container.
315
315
CreatedAt time.Time
316
316
// Start time of the container.
@@ -337,7 +337,7 @@ type ContainerStatus struct {
337
337
338
338
// FindContainerStatusByName returns container status in the pod status with the given name.
339
339
// When there are multiple containers' statuses with the same name, the first match will be returned.
0 commit comments