backup

package
v0.0.0-...-53746d6 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConvertType receivetype = "convert"
	Migration   receivetype = "migration"
)

Variables

View Source
var OldPeriod int64

Functions

func NewDockerClient

func NewDockerClient() *client.Client

func NewKetiClient

func NewKetiClient() keticlient.KetiV1Interface

func NewKubeClient

func NewKubeClient() clientset.Interface

Types

type CheckpointCollector

type CheckpointCollector struct {
	Cnumber      int
	Pods         map[string]map[string]string
	DockerClient *client.Client
	KubeClient   clientset.Interface
	KetiClient   keticlient.KetiV1Interface
	Period       int64
	UpdateChan   chan resource
	DoneChan     chan int
	Connection   *LogConnection
}

func NewCheckpointCollector

func NewCheckpointCollector() *CheckpointCollector

func (*CheckpointCollector) ContainerSync

func (c *CheckpointCollector) ContainerSync()

func (*CheckpointCollector) ConvertPod

func (*CheckpointCollector) ConvertPodToMigPod

func (c *CheckpointCollector) ConvertPodToMigPod(containers map[string]string)

func (*CheckpointCollector) HandleCheckPoint

func (c *CheckpointCollector) HandleCheckPoint(podname resource)

func (*CheckpointCollector) HandleCheckPointAll

func (c *CheckpointCollector) HandleCheckPointAll(pods map[string]map[string]string)

func (*CheckpointCollector) LogPod

func (*CheckpointCollector) NewContainerLister

func (c *CheckpointCollector) NewContainerLister()

func (*CheckpointCollector) Run

func (c *CheckpointCollector) Run()

func (*CheckpointCollector) SetCheckpointPeriod

type GRPCHandler

type GRPCHandler interface {
	HandleCheckPoint(podname resource)
	HandleCheckPointAll(pods map[string]map[string]string)
}

type LogConnection

type LogConnection struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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