Documentation
¶
Index ¶
- func IsCapable() bool
- func WithLogger(log *plog.Logger) funcopt.O
- type Info
- type InfoEntries
- type InfoEntry
- type T
- func (t T) Add(filePath string) error
- func (t T) Data() (InfoEntries, error)
- func (t T) Delete(devPath string) error
- func (t T) FileDelete(filePath string) error
- func (t T) FileExists(filePath string) (bool, error)
- func (t T) FileGet(filePath string) (*InfoEntry, error)
- func (t T) Get(name string) (*InfoEntry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InfoEntries ¶
type InfoEntries []InfoEntry
func (InfoEntries) File ¶
func (t InfoEntries) File(s string) *InfoEntry
func (InfoEntries) HasFile ¶
func (t InfoEntries) HasFile(s string) bool
func (InfoEntries) Name ¶
func (t InfoEntries) Name(s string) *InfoEntry
type InfoEntry ¶
type InfoEntry struct {
Name string `json:"name"` // "/dev/loop1"
SizeLimit int64 `json:"sizelimit"` // 0
Offset int64 `json:"offset"` // 0
AutoClear bool `json:"autoclear"` // true
ReadOnly bool `json:"ro"` // true
BackFile string `json:"back-file"` // "/var/lib/snapd/snaps/gnome-3-34-1804_66.snap"
DirectIO bool `json:"dio"` // false
LogSec int64 `json:"log-sec"` // 512
}
type T ¶
type T struct {
// contains filtered or unexported fields
}
func (T) Data ¶
func (t T) Data() (InfoEntries, error)
func (T) FileDelete ¶
Click to show internal directories.
Click to hide internal directories.