sync

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// WorkingDir is here for testing
	WorkingDir = docker.RetrieveWorkingDir
)

Functions

func Perform

func Perform(ctx context.Context, image string, files syncMap, cmdFn func(context.Context, v1.Pod, v1.Container, map[string][]string) []*exec.Cmd, namespaces []string) error

Types

type DestinationProvider added in v0.34.1

type DestinationProvider func() (map[string][]string, error)

type Item

type Item struct {
	Image  string
	Copy   map[string][]string
	Delete map[string][]string
}

func NewItem

func NewItem(a *latest.Artifact, e filemon.Events, builds []build.Artifact, insecureRegistries map[string]bool, destProvider DestinationProvider) (*Item, error)

type Syncer

type Syncer interface {
	Sync(context.Context, *Item) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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