checkpoint

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package checkpoint provides libraries that are used by the pod-checkpointer utility to checkpoint pods on a node. See cmd/checkpoint/README.md in this repository for more information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts Options) error

Run instantiates and starts a new checkpointer. Returns error if there was a problem creating the checkpointer, otherwise never returns.

Types

type CheckpointerPod

type CheckpointerPod struct {
	// The name of the node this checkpointer is running on.
	NodeName string
	// The name of the pod that is running this checkpointer.
	PodName string
	// The namespace of the pod that is running this checkpointer.
	PodNamespace string
}

CheckpointerPod holds information about this checkpointer pod.

type Options

type Options struct {
	// CheckpointerPod holds information about this checkpointer pod.
	CheckpointerPod CheckpointerPod
	// KubeConfig is a valid kubeconfig for communicating with the APIServer.
	KubeConfig *restclient.Config
	// RemoteRuntimeEndpoint is the location of the CRI GRPC endpoint.
	RemoteRuntimeEndpoint string
	// RuntimeRequestTimeout is the timeout that is used for requests to the RemoteRuntimeEndpoint.
	RuntimeRequestTimeout time.Duration
}

Options defines the parameters that are required to start the checkpointer.

Jump to

Keyboard shortcuts

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