mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-22 16:54:25 +01:00
When imported, the vc files carried in the 'full style' apache license text, but the standard for kata is to use SPDX style. Update the relevant files to SPDX. Fixes: #227 Signed-off-by: Graham whaley <graham.whaley@intel.com>
27 lines
664 B
Go
27 lines
664 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
|
|
var (
|
|
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 {
|
|
if cType == PodSandbox {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|