Documentation ¶
Index ¶
- func GenerateSpec(ctx context.Context, meta executor.Meta, mounts []executor.Mount, ...) (*specs.Spec, func(), error)
- func GetHostsFile(ctx context.Context, stateDir string) (string, error)
- func GetMounts(ctx context.Context, mountOpts ...MountOpts) []specs.Mount
- func GetResolvConf(ctx context.Context, stateDir string) (string, error)
- func GetUser(ctx context.Context, root, username string) (uint32, uint32, error)
- func ParseUser(str string) (uid uint32, gid uint32, err error)
- type MountOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSpec ¶
func GenerateSpec(ctx context.Context, meta executor.Meta, mounts []executor.Mount, id, resolvConf, hostsFile string, opts ...oci.SpecOpts) (*specs.Spec, func(), error)
GenerateSpec generates spec using containerd functionality.
func GetMounts ¶
GetMounts returns default required for buildkit https://github.com/moby/buildkit/issues/429
Types ¶
Click to show internal directories.
Click to hide internal directories.