provider

package
v0.7.21 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package provider is heavily based on fsSyncProvider in github.com/moby/buildkit/session/filesync. The key difference between BuildContextProvider and fsSyncProvider is that in BuildContextProvider, the dirs can be added incrementally after the construction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildContextProvider

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

BuildContextProvider is a BuildKit attachable which provides local files as part of the build context.

func NewBuildContextProvider

func NewBuildContextProvider(console conslogging.ConsoleLogger) *BuildContextProvider

NewBuildContextProvider creates a new provider for sending build context files from client.

func (*BuildContextProvider) AddDir added in v0.6.15

func (bcp *BuildContextProvider) AddDir(dirName, dir string)

AddDir adds a single local directory to the context.

func (*BuildContextProvider) AddDirs

func (bcp *BuildContextProvider) AddDirs(dirs map[string]string)

AddDirs adds local directories to the context.

func (*BuildContextProvider) DiffCopy

DiffCopy implements the DiffCopy attachable.

func (*BuildContextProvider) Register

func (bcp *BuildContextProvider) Register(server *grpc.Server)

Register registers the attachable.

func (*BuildContextProvider) SetNextProgressCallback

func (bcp *BuildContextProvider) SetNextProgressCallback(f func(int, bool), doneCh chan error)

SetNextProgressCallback sets the progress callback function.

func (*BuildContextProvider) TarStream

TarStream implements the DiffCopy attachable.

type SyncedDir

type SyncedDir struct {
	Name     string
	Dir      string
	Excludes []string
	Map      func(string, *fstypes.Stat) fsutil.MapResult
}

SyncedDir is a directory to be synced across.

Jump to

Keyboard shortcuts

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