Documentation ¶
Index ¶
Constants ¶
View Source
const (
KillContainerSignalEnvName = "KILL_CONTAINER_SIGNAL"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContainerKiller ¶
type ContainerKiller interface { // Kill containers in the pod by cri // e.g. docker or containerd Kill(ctx context.Context, containerIDs []string, signal string, timeout *time.Duration) error // Init cri killer init interface Init(ctx context.Context) error }
ContainerKiller kills container interface
func NewContainerKiller ¶
func NewContainerKiller(containerRuntime CRIType, runtimeEndpoint string, logger *zap.SugaredLogger) (ContainerKiller, error)
type TargetContainer ¶
Click to show internal directories.
Click to hide internal directories.