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 ¶
- type BuildContextProvider
- func (bcp *BuildContextProvider) AddDir(dirName, dir string)
- func (bcp *BuildContextProvider) AddDirs(dirs map[string]string)
- func (bcp *BuildContextProvider) DiffCopy(stream filesync.FileSync_DiffCopyServer) error
- func (bcp *BuildContextProvider) Register(server *grpc.Server)
- func (bcp *BuildContextProvider) SetNextProgressCallback(f func(int, bool), doneCh chan error)
- func (bcp *BuildContextProvider) TarStream(stream filesync.FileSync_TarStreamServer) error
- type SyncedDir
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 ¶
func (bcp *BuildContextProvider) DiffCopy(stream filesync.FileSync_DiffCopyServer) error
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 ¶
func (bcp *BuildContextProvider) TarStream(stream filesync.FileSync_TarStreamServer) error
TarStream implements the DiffCopy attachable.