sync

package
v1.19.0-darwin-arm64 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WorkingDir = docker.RetrieveWorkingDir
	Labels     = docker.RetrieveLabels
	SyncMap    = syncMapForArtifact
)

For testing

Functions

func Init added in v1.6.0

func Init(ctx context.Context, artifacts []*latest.Artifact) error

func Perform

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

Types

type Config added in v1.7.1

type Config interface {
	kubectl.Config

	GetNamespaces() []string
}

type Item

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

func NewItem

func NewItem(ctx context.Context, a *latest.Artifact, e filemon.Events, builds []build.Artifact, cfg docker.Config, dependentArtifactsCount int) (*Item, error)

type Syncer

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

func NewSyncer added in v0.35.0

func NewSyncer(cfg Config) Syncer

Jump to

Keyboard shortcuts

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