sync

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const EndAck string = "DONE"
View Source
const ErrorAck string = "ERROR"
View Source
const IsDirectory uint64 = 040000
View Source
const IsRegularFile uint64 = 0100000
View Source
const IsSymbolicLink uint64 = 0120000
View Source
const StartAck string = "START"

Variables

This section is empty.

Functions

func CopyToContainer

func CopyToContainer(Kubectl *kubernetes.Clientset, Pod *k8sv1.Pod, Container *k8sv1.Container, LocalPath, ContainerPath string, ExcludePaths []string) error

CopyToContainer copies a local folder or file to a container path

Types

type SyncConfig

type SyncConfig struct {
	Kubectl      *kubernetes.Clientset
	Pod          *k8sv1.Pod
	Container    *k8sv1.Container
	WatchPath    string
	DestPath     string
	ExcludePaths []string
	// contains filtered or unexported fields
}

func (*SyncConfig) Logf

func (s *SyncConfig) Logf(format string, args ...interface{})

func (*SyncConfig) Logln

func (s *SyncConfig) Logln(line interface{})

func (*SyncConfig) Start

func (s *SyncConfig) Start()

Starts a new sync instance

func (*SyncConfig) Stop

func (s *SyncConfig) Stop()

Jump to

Keyboard shortcuts

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