Documentation
¶
Index ¶
- Constants
- func NewBuildExecutor(opt WorkerOpt, networkProviders map[pb.NetMode]bknet.Provider) (executor.Executor, error)
- func NewWorkerOpt(ctx context.Context, root string, snFactory BkSnapshotterFactory, ...) (base.WorkerOpt, error)
- func Run(ctx context.Context, opts *Opts, socketPath string) error
- type BkSnapshotterFactory
- type Opts
- type WorkerOpt
Constants ¶
View Source
const DaemonName = "singularity-buildkitd"
Variables ¶
This section is empty.
Functions ¶
func NewBuildExecutor ¶
func NewWorkerOpt ¶
func NewWorkerOpt(ctx context.Context, root string, snFactory BkSnapshotterFactory, rootless bool, processMode bkoci.ProcessMode, labels map[string]string, idmap *user.IdentityMapping, nopt netproviders.Opt, dns *bkoci.DNSConfig, binary, apparmorProfile string, selinux bool, parallelismSem *semaphore.Weighted, traceSocket, defaultCgroupParent string, cdiManager *cdidevices.Manager) (base.WorkerOpt, error)
NewWorkerOpt creates a WorkerOpt.
Types ¶
type BkSnapshotterFactory ¶
type BkSnapshotterFactory struct {
Name string
New func(root string) (ctdsnapshot.Snapshotter, error)
}
BkSnapshotterFactory instantiates a snapshotter
type WorkerOpt ¶
type WorkerOpt struct {
// root directory
Root string
CommandCandidates []string
// without root privileges (has nothing to do with Opt.Root directory)
Rootless bool
// DefaultCgroupParent is the cgroup-parent name for executor
DefaultCgroupParent string
// ProcessMode
ProcessMode bkoci.ProcessMode
IdentityMapping *user.IdentityMapping
// runc run --no-pivot (unrecommended)
NoPivot bool
DNS *bkoci.DNSConfig
OOMScoreAdj *int
ApparmorProfile string
SELinux bool
TracingSocket string
ResourceMonitor *resources.Monitor
CDIManager *cdidevices.Manager
}
Click to show internal directories.
Click to hide internal directories.