Files
warewulf/internal/pkg/config/mounts.go
Jonathon Anderson b0164c36b9 Remove Chdir from util.FindFiles
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-25 08:48:14 -07:00

20 lines
565 B
Go

package config
// 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 BoolP(this.ReadOnlyP)
}
func (this MountEntry) Copy() bool {
return BoolP(this.CopyP)
}