sync

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 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) error

CopyToContainer copies a local folder or file to a container path

Types

type FileInformation

type FileInformation struct {
	Name        string // %n
	Size        int64  // %s
	Mtime       int64  // %Y
	IsDirectory bool   // parseHex(%f) & S_IFDIR
}

type ParsingError

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

func (ParsingError) Error

func (p ParsingError) Error() string

type SyncConfig

type SyncConfig struct {
	Kubectl      *kubernetes.Clientset
	Pod          *k8sv1.Pod
	Container    *k8sv1.Container
	WatchPath    string
	DestPath     string
	ExcludeRegEx []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()

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