Documentation ¶
Index ¶
- Variables
- func IsHyperV() bool
- func IsKVM() bool
- func IsPositive(name string, val string) error
- func IsValidCIDR(name string, cidr string) error
- func IsValidDiskSize(name string, diskSize string) error
- func IsValidDriver(string, driver string) error
- func IsValidIPv4Address(name string, address string) error
- func IsValidIPv4AddressSlice(name string, addressSlice string) error
- func IsValidISOUrl(_ string, isoURL string) error
- func IsValidMemorySize(name string, memorySize string) error
- func IsValidNetmask(name string, mask string) error
- func IsValidPath(name string, path string) error
- func IsValidPort(name string, p string) error
- func IsValidProxy(name string, uri string) error
- func IsVirtualBox() bool
- func IsXhyve() bool
- type GlobalConfigType
- type InstanceConfigType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EnableExperimental bool
)
Functions ¶
func IsPositive ¶ added in v1.5.0
func IsValidCIDR ¶ added in v1.5.0
func IsValidDiskSize ¶ added in v1.5.0
func IsValidDriver ¶ added in v1.5.0
func IsValidIPv4Address ¶ added in v1.7.0
func IsValidIPv4AddressSlice ¶ added in v1.15.0
func IsValidISOUrl ¶ added in v1.14.0
func IsValidMemorySize ¶ added in v1.5.0
func IsValidNetmask ¶ added in v1.7.0
func IsValidPath ¶ added in v1.5.0
func IsValidPort ¶ added in v1.15.0
func IsValidProxy ¶ added in v1.5.0
func IsVirtualBox ¶ added in v1.15.0
func IsVirtualBox() bool
Types ¶
type GlobalConfigType ¶
type GlobalConfigType struct { FilePath string `json:"-"` HostFolders []config.HostFolderConfig ActiveProfile string SftpdPID int }
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 InstanceConfigType ¶
type InstanceConfigType struct { FilePath string `json:"-"` OcPath string // minishift state IsRegistered bool // minishift state IsRHELBased bool // minishift state SupportsNetworkAssignment bool // minishift state HostFolders []config.HostFolderConfig VMDriver string // general config }
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.