Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MSReadOnly equals unix.MS_RDONLY MSReadOnly = unix.MS_RDONLY )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Size uint64 // Size of sotrage to create in KiB.
}
Config holds the configuration for the storage.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage describes storage.
func NewStorage ¶
NewStorage creates a new storage based on the given configuration and returns its descriptor.
func (Storage) PathOnHost ¶
PathOnHost returns the path of this storage on host.
func (Storage) RemoveDetach ¶
func (s Storage) RemoveDetach()
RemoveDetach removes a storage and warns if failed not return error.
Click to show internal directories.
Click to hide internal directories.