Documentation ¶
Index ¶
Constants ¶
View Source
const ( HostfoldersDefaultPath = "/mnt/sda1" HostfoldersMountPathKey = "hostfolders-mountpath" )
Variables ¶
This section is empty.
Functions ¶
func GetHostfoldersMountPath ¶
Types ¶
type GlobalConfigType ¶
type GlobalConfigType struct { FilePath string `json:"-"` HostFolders []HostFolder }
var AllInstancesConfig *GlobalConfigType
func NewAllInstancesConfig ¶
func NewAllInstancesConfig(path string) (*GlobalConfigType, error)
Create new object with data if file exists or Create json file and return object if doesn't exists
func (*GlobalConfigType) Delete ¶
func (cfg *GlobalConfigType) Delete() error
func (*GlobalConfigType) Write ¶
func (cfg *GlobalConfigType) Write() error
type HostFolder ¶
func (*HostFolder) Mountpoint ¶
func (hf *HostFolder) Mountpoint() string
type InstanceConfigType ¶
type InstanceConfigType struct { FilePath string `json:"-"` OcPath string IsRegistered bool HostFolders []HostFolder }
var InstanceConfig *InstanceConfigType
func NewInstanceConfig ¶
func NewInstanceConfig(path string) (*InstanceConfigType, error)
Create new object with data if file exists or Create json file and return object if doesn't exists
func (*InstanceConfigType) Delete ¶
func (cfg *InstanceConfigType) Delete() error
func (*InstanceConfigType) Write ¶
func (cfg *InstanceConfigType) Write() error
Click to show internal directories.
Click to hide internal directories.