Documentation
¶
Overview ¶
Package probe defines common probe interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MagicMatch ¶
MagicMatch is a magic detection result.
type Partition ¶
type Partition struct {
UUID *uuid.UUID
TypeUUID *uuid.UUID
Label *string
Index uint // 1-based index
Offset uint64
Size uint64
}
Partition is a probe sub-result.
type Prober ¶
type Prober interface {
// Name returns the name of the filesystem or volume manager.
Name() string
// Magic returns the magic value for the filesystem or volume manager.
Magic() []*magic.Magic
// Probe runs the further inspection and returns the result if successful.
Probe(Reader, magic.Magic) (*Result, error)
}
Prober is an interface for probing filesystems and volume managers.
Click to show internal directories.
Click to hide internal directories.