kuberuntime

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime interface {
	// GetPodStatus retrieves the status of the pod, including the
	// information of all containers in the pod that are visible in Runtime.
	GetPodStatus(ctx context.Context, uid types.UID, name, namespace string) (*kubeletcontainer.PodStatus, error)
	// KillContainer kills a container through the following steps:
	// * Run the pre-stop lifecycle hooks (if applicable).
	// * Stop the container.
	KillContainer(pod *v1.Pod, containerID kubeletcontainer.ContainerID, containerName string, message string, gracePeriodOverride *int64) error
}

func NewGenericRuntime

func NewGenericRuntime(
	runtimeName string,
	runtimeService criapi.RuntimeService,
	recorder record.EventRecorder,
	httpClient kubelettypes.HTTPDoer,
) Runtime

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL