Documentation
¶
Index ¶
Constants ¶
View Source
const ( VolumeTable = "volumes" NameKey = "name" FsKey = "filesystem" PersistenceKey = "persistence_mode" ConnKey = "connections" UpdateKey = "updated_at" DatabaseFile = ".clientdb" )
Variables ¶
View Source
var ( OS ISystem FileReader ReadFile )
Binding this to an exported function for mocking purposes in tests
Functions ¶
Types ¶
type ISystem ¶
type ISystem interface {
Lstat(string) (os.FileInfo, error)
Stat(string) (os.FileInfo, error)
IsNotExist(error) bool
MkdirAll(string, os.FileMode) error
}
"OS" interface to allow for mocking purposes in tests If more OS functions are needed, just add them to this interface and the concrete implementation
type VolObj ¶
type VolObj struct {
Name string
Filesystem string
Connections int
Persistence string
UpdatedAt string
}
func UpsertVolObj ¶
func (*VolObj) AddConnection ¶
func (*VolObj) DelConnection ¶
func (*VolObj) ResetConnections ¶
Click to show internal directories.
Click to hide internal directories.