package config import ( "github.com/warewulf/warewulf/internal/pkg/util" ) // A MountEntry represents a bind mount that is applied to a container // during exec and shell. type MountEntry struct { Source string `yaml:"source"` Dest string `yaml:"dest,omitempty"` ReadOnlyP *bool `yaml:"readonly,omitempty"` Options string `yaml:"options,omitempty"` // ignored at the moment CopyP *bool `yaml:"copy,omitempty"` // temporarily copy the file into the container } func (this MountEntry) ReadOnly() bool { return util.BoolP(this.ReadOnlyP) } func (this MountEntry) Copy() bool { return util.BoolP(this.CopyP) }