mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-28 20:15:51 +00:00
gometalinter is deprecated and will be archived April '19. The suggestion is to switch to golangci-lint which is apparently 5x faster than gometalinter. Partially Fixes: #1377 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
23 lines
636 B
Go
23 lines
636 B
Go
// Copyright (c) 2017 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package virtcontainers
|
|
|
|
// ContainerType defines a type of container.
|
|
type ContainerType string
|
|
|
|
// List different types of containers
|
|
const (
|
|
PodContainer ContainerType = "pod_container"
|
|
PodSandbox ContainerType = "pod_sandbox"
|
|
UnknownContainerType ContainerType = "unknown_container_type"
|
|
)
|
|
|
|
// IsSandbox determines if the container type can be considered as a sandbox.
|
|
// We can consider a sandbox in case we have a PodSandbox or a RegularContainer.
|
|
func (cType ContainerType) IsSandbox() bool {
|
|
return cType == PodSandbox
|
|
}
|