forked from security/hakurei
container: improve documentation
This change removes inconsistencies collected over time in this package. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -12,14 +12,16 @@ import (
|
||||
|
||||
func init() { gob.Register(new(BindMountOp)) }
|
||||
|
||||
// Bind appends an [Op] that bind mounts host path [BindMountOp.Source] on container path [BindMountOp.Target].
|
||||
// Bind is a helper for appending [BindMountOp] to [Ops].
|
||||
func (f *Ops) Bind(source, target *check.Absolute, flags int) *Ops {
|
||||
*f = append(*f, &BindMountOp{nil, source, target, flags})
|
||||
return f
|
||||
}
|
||||
|
||||
// BindMountOp bind mounts host path Source on container path Target.
|
||||
// Note that Flags uses bits declared in this package and should not be set with constants in [syscall].
|
||||
// BindMountOp creates a bind mount from host path Source to container path Target.
|
||||
//
|
||||
// Note that Flags uses bits declared in the [std] package and should not be set
|
||||
// with constants in [syscall].
|
||||
type BindMountOp struct {
|
||||
sourceFinal, Source, Target *check.Absolute
|
||||
|
||||
|
||||
Reference in New Issue
Block a user