kubernetesk8s.io/kubernetes/pkg/kubelet/kuberuntime Index | Files

package kuberuntime

import "k8s.io/kubernetes/pkg/kubelet/kuberuntime"

Package kuberuntime contains an implementation of kubecontainer.Runtime using the interface in pkg/kubelet/api.

Index

Variables

var (
	// ErrVersionNotSupported is returned when the api version of runtime interface is not supported
	ErrVersionNotSupported = errors.New("Runtime api version is not supported")
)

Functions

func NewContainerGC

func NewContainerGC(client internalApi.RuntimeService, podGetter podGetter, manager *kubeGenericRuntimeManager) *containerGC

NewContainerGC creates a new containerGC.

func NewFakeKubeRuntimeManager

func NewFakeKubeRuntimeManager(runtimeService internalApi.RuntimeService, imageService internalApi.ImageManagerService, machineInfo *cadvisorapi.MachineInfo, networkPlugin network.NetworkPlugin, osInterface kubecontainer.OSInterface) (*kubeGenericRuntimeManager, error)

func NewInstrumentedImageManagerService

func NewInstrumentedImageManagerService(service internalApi.ImageManagerService) internalApi.ImageManagerService

Creates an instrumented ImageManagerService from an existing ImageManagerService.

func NewInstrumentedRuntimeService

func NewInstrumentedRuntimeService(service internalApi.RuntimeService) internalApi.RuntimeService

Creates an instrumented RuntimeInterface from an existing RuntimeService.

func ReadLogs

func ReadLogs(path string, apiOpts *api.PodLogOptions, stdout, stderr io.Writer) error

ReadLogs read the container log and redirect into stdout and stderr.

Types

type KubeGenericRuntime

func NewKubeGenericRuntimeManager

func NewKubeGenericRuntimeManager(
	recorder record.EventRecorder,
	livenessManager proberesults.Manager,
	containerRefManager *kubecontainer.RefManager,
	machineInfo *cadvisorapi.MachineInfo,
	podGetter podGetter,
	osInterface kubecontainer.OSInterface,
	networkPlugin network.NetworkPlugin,
	runtimeHelper kubecontainer.RuntimeHelper,
	httpClient types.HttpGetter,
	imageBackOff *flowcontrol.Backoff,
	serializeImagePulls bool,
	imagePullQPS float32,
	imagePullBurst int,
	cpuCFSQuota bool,
	runtimeService internalApi.RuntimeService,
	imageService internalApi.ImageManagerService,
) (KubeGenericRuntime, error)

NewKubeGenericRuntimeManager creates a new kubeGenericRuntimeManager

Source Files

doc.go fake_kuberuntime_manager.go helpers.go instrumented_services.go kuberuntime_container.go kuberuntime_gc.go kuberuntime_image.go kuberuntime_logs.go kuberuntime_manager.go kuberuntime_sandbox.go labels.go legacy.go security_context.go

Version
v1.5.1-beta.0
Published
Dec 13, 2016
Platform
js/wasm
Imports
49 packages
Last checked
1 minute ago

Tools for package owners.