Documentation
¶
Overview ¶
Package disk inspects explicitly named Linux block devices for disk plans. It does not change devices or authorize disk operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
Device string `json:"device"`
StableIDs []string `json:"stableIDs,omitempty"`
Size uint64 `json:"size"`
Type string `json:"type"`
Serial string `json:"serial,omitempty"`
WWN string `json:"wwn,omitempty"`
Filesystem string `json:"filesystem,omitempty"`
Mountpoints []string `json:"mountpoints,omitempty"`
Partitions int `json:"partitions"`
Inspectable bool `json:"inspectable"`
Reason string `json:"reason,omitempty"`
}
Device is one block device on a host, for choosing a disk to inspect. Only a device that Inspectable marks may be passed to Probe; Reason says why not.
type Observation ¶
type Observation struct {
Requested string `json:"requested"`
Device string `json:"device"`
MajorMinor string `json:"majorMinor"`
Size uint64 `json:"size"`
Type string `json:"type"`
Serial string `json:"serial,omitempty"`
WWN string `json:"wwn,omitempty"`
Filesystem string `json:"filesystem,omitempty"`
UUID string `json:"uuid,omitempty"`
Mountpoints []string `json:"mountpoints,omitempty"`
Children []Observation `json:"children,omitempty"`
}
Observation describes one exact device at a point in time. Callers must compare a fresh observation to the approved plan before changing the host.