Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDevice ¶
type BlockDevice struct { Name string MountPoint string FileSystem FileSystem Label string }
type BlockDeviceMetrics ¶
func (*BlockDeviceMetrics) ShouldResize ¶
func (bdm *BlockDeviceMetrics) ShouldResize(threshold float64) bool
type FilePermissions ¶
type FilePermissions uint32
func (FilePermissions) Perm ¶
func (p FilePermissions) Perm() fs.FileMode
It is useful to be able to convert FilePermissions back into the fs.FileMode type which is expected by Go standard libraries
func (*FilePermissions) UnmarshalYAML ¶
func (p *FilePermissions) UnmarshalYAML(unmarshal func(interface{}) error) error
Linux File Permission bits are typically represented as octals: e.g 0755. Some users may feel comfortable representing file permission bits as decimals: e.g 755. While the latter is not considered an octal, lets not punish them for a behaviour that has been ingrained by tools like chmod. `strconv.ParseUint` has the ability to force the intepreation of a string as a base-8 unsigned integer
type FileSystem ¶
type FileSystem string
const ( Unformatted FileSystem = "" Ext4 FileSystem = "ext4" Xfs FileSystem = "xfs" Lvm FileSystem = "LVM2_member" )
func ParseFileSystem ¶
func ParseFileSystem(s string) (FileSystem, error)
func (FileSystem) String ¶
func (fs FileSystem) String() string
type LogicalVolume ¶ added in v1.1.0
type MountOptions ¶
type MountOptions string
func (MountOptions) Remount ¶
func (mop MountOptions) Remount() MountOptions
type PhysicalVolume ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.