Documentation ¶
Index ¶
- func New(config string) (driver.Storager, error)
- type Config
- func (c *Config) AddData(name, dtype, value, description string) error
- func (c *Config) AddDataToProfile(profile, data string)
- func (c *Config) AddHost(enable bool, name, fqdn, profile string, interfaces []string) error
- func (c *Config) AddIP(ip, netmask, gateway string) error
- func (c *Config) AddInterface(index int, mac, ip, floatingIP string) error
- func (c *Config) AddProfile(name string) error
- func (c *Config) CountData() int
- func (c *Config) CountHost() int
- func (c *Config) CountIP() int
- func (c *Config) CountInterface() int
- func (c *Config) CountProfile() int
- func (c *Config) DisableHost(name string) error
- func (c *Config) EnableHost(name string) error
- func (c *Config) End()
- func (c *Config) FloatingIPExists(srvid int, itype string, index int) bool
- func (c *Config) GetDNSIndex(srvid int) []string
- func (c *Config) GetDNSNameservers(srvid int) []string
- func (c *Config) GetDNSOptions(srvid int) []string
- func (c *Config) GetDNSSearchDomains(srvid int) []string
- func (c *Config) GetEnumeratedInterface(srvid int, itype string, index int) []string
- func (c *Config) GetFQDN(srvid int) string
- func (c *Config) GetHostname(srvid int) string
- func (c *Config) GetID(srvid int) int
- func (c *Config) GetIDFromIP(ip string) int
- func (c *Config) GetInterfaceFloatingIPAddress(srvid int, itype string, index int) string
- func (c *Config) GetInterfaceFloatingIPGateway(srvid int, itype string, index int) string
- func (c *Config) GetInterfaceFloatingIPNetmask(srvid int, itype string, index int) string
- func (c *Config) GetInterfaceIPv4Address(srvid int, itype string, index int) string
- func (c *Config) GetInterfaceIPv4Gateway(srvid int, itype string, index int) string
- func (c *Config) GetInterfaceIPv4Netmask(srvid int, itype string, index int) string
- func (c *Config) GetInterfaceMACAddress(srvid int, itype string, index int) string
- func (c *Config) GetInterfaceType(srvid int, itype string, index int) string
- func (c *Config) GetInterfaces(srvid int) []string
- func (c *Config) GetInterfacesType(srvid int, itype string) []int
- func (c *Config) GetKey(srvid int, key string) string
- func (c *Config) GetKeys(srvid int) []string
- func (c *Config) GetPublicKeys(srvid int) []string
- func (c *Config) GetRegion(srvid int) string
- func (c *Config) GetTags(srvid int) []string
- func (c *Config) GetUserData(srvid int) string
- func (c *Config) GetVendorData(srvid int) string
- func (c *Config) ListData(filter map[string]string) []types.Data
- func (c *Config) ListHost(filter map[string]string) []types.Host
- func (c *Config) ListIP(filter map[string]string) []types.IP
- func (c *Config) ListInterface(filter map[string]string) []types.Interface
- func (c *Config) ListProfile(filter map[string]string) map[string][]string
- func (c *Config) RemoveData(name string) error
- func (c *Config) RemoveDataFromProfile(profile, data string)
- func (c *Config) RemoveHost(name string) error
- func (c *Config) RemoveIP(ip string) error
- func (c *Config) RemoveInterface(mac string) error
- func (c *Config) RemoveProfile(name string) error
- func (c *Config) UpdateData(name, value, description string) error
- func (c *Config) UpdateInterface(mac, itype, value string) error
- type Data
- type Host
- type IP
- type Interface
- type Model
- type Profile
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
func (*Config) AddDataToProfile ¶
func (*Config) AddInterface ¶
func (*Config) AddProfile ¶
func (*Config) CountInterface ¶
func (*Config) CountProfile ¶
func (*Config) DisableHost ¶
func (*Config) EnableHost ¶
func (*Config) FloatingIPExists ¶
func (*Config) GetDNSIndex ¶
func (*Config) GetDNSNameservers ¶
func (*Config) GetDNSOptions ¶
func (*Config) GetDNSSearchDomains ¶
func (*Config) GetEnumeratedInterface ¶
func (*Config) GetHostname ¶
func (*Config) GetIDFromIP ¶
func (*Config) GetInterfaceFloatingIPAddress ¶
func (*Config) GetInterfaceFloatingIPGateway ¶
func (*Config) GetInterfaceFloatingIPNetmask ¶
func (*Config) GetInterfaceIPv4Address ¶
func (*Config) GetInterfaceIPv4Gateway ¶
func (*Config) GetInterfaceIPv4Netmask ¶
func (*Config) GetInterfaceMACAddress ¶
func (*Config) GetInterfaceType ¶
func (*Config) GetInterfaces ¶
func (*Config) GetInterfacesType ¶
func (*Config) GetPublicKeys ¶
func (*Config) GetUserData ¶
func (*Config) GetVendorData ¶
func (*Config) ListInterface ¶
func (*Config) ListProfile ¶
func (*Config) RemoveData ¶
func (*Config) RemoveDataFromProfile ¶
func (*Config) RemoveHost ¶
func (*Config) RemoveInterface ¶
func (*Config) RemoveProfile ¶
func (*Config) UpdateData ¶
func (*Config) UpdateInterface ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.