sync

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: Apache-2.0 Imports: 20 Imported by: 1

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