syncer

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package syncer implements the syncer for synchronization of /var/lib/kubelet/pods.

Index

Constants

View Source
const UmountNoFollow = 0x8

UmountNoFollow is the flag to unmount without following symlinks. Sadly golang/sys doesn't have UmountNoFollow although it's there since Linux 2.6.34

Variables

This section is empty.

Functions

This section is empty.

Types

type Syncer

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

Syncer is the main syncer struct that contains settings and dependencies for the syncer.

func NewSyncer

func NewSyncer(from, to string, log logrus.FieldLogger) *Syncer

NewSyncer creates bind mounts from to -> from based on changes in the from directory.

func (*Syncer) Close

func (s *Syncer) Close() error

Close shuts down the syncer and cleans up any bind mounts that were created.

func (*Syncer) Start

func (s *Syncer) Start(ctx context.Context) error

Start starts the syncer.

Jump to

Keyboard shortcuts

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