Versions in this module Expand all Collapse all v2 v2.3.2 May 9, 2023 v2.3.1 May 9, 2023 Changes in this version + const MACADDR_ZERO + var ValidateConnector = validateConnector + func CheckIntRange(name string, value int, min int, max int) error + func GetIPAddressFromRef(ref string) string + func ValidateDomainName(name string) error + func ValidateSrvRecName(name string) error + type AuthConfig struct + ClientCert []byte + ClientKey []byte + Password string + Username string + type Bool bool + func (b Bool) MarshalJSON() ([]byte, error) + type CapacityReport struct + HardwareType string + MaxCapacity int + Name string + ObjectCount []map[string]interface{} + PercentUsed int + Ref string + Role string + TotalObjects int + func NewCapcityReport(capReport CapacityReport) *CapacityReport + type Connector struct + func NewConnector(hostConfig HostConfig, authCfg AuthConfig, transportConfig TransportConfig, ...) (res *Connector, err error) + func (c *Connector) CreateObject(obj IBObject) (ref string, err error) + func (c *Connector) DeleteObject(ref string) (refRes string, err error) + func (c *Connector) GetObject(obj IBObject, ref string, queryParams *QueryParams, res interface{}) (err error) + func (c *Connector) Logout() (err error) + func (c *Connector) UpdateObject(obj IBObject, ref string) (refRes string, err error) + type DNSView struct + Comment string + Ea EA + Name string + NetworkView string + Ref string + func NewEmptyDNSView() *DNSView + type EA map[string]interface + func (ea *EA) UnmarshalJSON(b []byte) (err error) + func (ea EA) Count() int + func (ea EA) MarshalJSON() ([]byte, error) + type EADefListValue string + func (v *EADefListValue) UnmarshalJSON(b []byte) (err error) + func (v EADefListValue) MarshalJSON() ([]byte, error) + type EADefinition struct + AllowedObjectTypes []string + Comment string + Flags string + ListValues []EADefListValue + Name string + Ref string + Type string + func NewEADefinition(eadef EADefinition) *EADefinition + type EASearch map[string]interface + func (eas EASearch) MarshalJSON() ([]byte, error) + type FixedAddress struct + Cidr string + Comment string + Duid string + Ea EA + IPv4Address string + IPv6Address string + Mac string + MatchClient string + Name string + NetviewName string + Ref string + func NewEmptyFixedAddress(isIPv6 bool) *FixedAddress + func NewFixedAddress(netView string, name string, ipAddr string, cidr string, macOrDuid string, ...) *FixedAddress + type Grid struct + NTPSetting *NTPSetting + Name string + Ref string + func NewGrid(grid Grid) *Grid + type HostConfig struct + Host string + Port string + Version string + type HostRecord struct + Aliases []string + Comment string + Ea EA + EnableDns bool + Ipv4Addr string + Ipv4Addrs []HostRecordIpv4Addr + Ipv6Addr string + Ipv6Addrs []HostRecordIpv6Addr + Name string + NetworkView string + Ref string + Ttl uint32 + UseTtl bool + View string + Zone string + func NewEmptyHostRecord() *HostRecord + func NewHostRecord(netView string, name string, ipv4Addr string, ipv6Addr string, ...) *HostRecord + type HostRecordIpv4Addr struct + Cidr string + EnableDhcp bool + Ipv4Addr string + Mac string + Ref string + View string + func NewEmptyHostRecordIpv4Addr() *HostRecordIpv4Addr + func NewHostRecordIpv4Addr(ipAddr string, macAddr string, enableDhcp bool, ref string) *HostRecordIpv4Addr + type HostRecordIpv6Addr struct + Cidr string + Duid string + EnableDhcp bool + Ipv6Addr string + Ref string + View string + func NewEmptyHostRecordIpv6Addr() *HostRecordIpv6Addr + func NewHostRecordIpv6Addr(ipAddr string, duid string, enableDhcp bool, ref string) *HostRecordIpv6Addr + type HttpRequestBuilder interface + BuildBody func(r RequestType, obj IBObject) (jsonStr []byte) + BuildRequest func(r RequestType, obj IBObject, ref string, queryParams *QueryParams) (req *http.Request, err error) + BuildUrl func(r RequestType, objType string, ref string, returnFields []string, ...) (urlStr string) + Init func(HostConfig, AuthConfig) + type HttpRequestor interface + Init func(AuthConfig, TransportConfig) + SendRequest func(*http.Request) ([]byte, error) + type IBBase struct + func (obj *IBBase) EaSearch() EASearch + func (obj *IBBase) ObjectType() string + func (obj *IBBase) ReturnFields() []string + type IBConnector interface + CreateObject func(obj IBObject) (ref string, err error) + DeleteObject func(ref string) (refRes string, err error) + GetObject func(obj IBObject, ref string, queryParams *QueryParams, res interface{}) error + UpdateObject func(obj IBObject, ref string) (refRes string, err error) + type IBObject interface + EaSearch func() EASearch + ObjectType func() string + ReturnFields func() []string + type IBObjectManager interface + AllocateIP func(netview string, cidr string, ipAddr string, isIPv6 bool, macOrDuid string, ...) (*FixedAddress, error) + AllocateNetwork func(netview string, cidr string, isIPv6 bool, prefixLen uint, comment string, ...) (network *Network, err error) + AllocateNetworkContainer func(netview string, cidr string, isIPv6 bool, prefixLen uint, comment string, ...) (netContainer *NetworkContainer, err error) + CreateAAAARecord func(netView string, dnsView string, recordName string, cidr string, ipAddr string, ...) (*RecordAAAA, error) + CreateARecord func(netView string, dnsView string, name string, cidr string, ipAddr string, ...) (*RecordA, error) + CreateCNAMERecord func(dnsview string, canonical string, recordname string, useTtl bool, ttl uint32, ...) (*RecordCNAME, error) + CreateDefaultNetviews func(globalNetview string, localNetview string) (globalNetviewRef string, localNetviewRef string, err error) + CreateEADefinition func(eadef EADefinition) (*EADefinition, error) + CreateHostRecord func(enabledns bool, enabledhcp bool, recordName string, netview string, ...) (*HostRecord, error) + CreateMXRecord func(dnsView string, fqdn string, mx string, preference uint32, ttl uint32, ...) (*RecordMX, error) + CreateNetwork func(netview string, cidr string, isIPv6 bool, comment string, eas EA) (*Network, error) + CreateNetworkContainer func(netview string, cidr string, isIPv6 bool, comment string, eas EA) (*NetworkContainer, error) + CreateNetworkView func(name string, comment string, setEas EA) (*NetworkView, error) + CreatePTRRecord func(networkView string, dnsView string, ptrdname string, recordName string, ...) (*RecordPTR, error) + CreateSRVRecord func(dnsView string, name string, priority uint32, weight uint32, port uint32, ...) (*RecordSRV, error) + CreateTXTRecord func(dnsView string, recordName string, text string, ttl uint32, useTtl bool, ...) (*RecordTXT, error) + CreateZoneAuth func(fqdn string, ea EA) (*ZoneAuth, error) + CreateZoneDelegated func(fqdn string, delegate_to []NameServer) (*ZoneDelegated, error) + DeleteAAAARecord func(ref string) (string, error) + DeleteARecord func(ref string) (string, error) + DeleteCNAMERecord func(ref string) (string, error) + DeleteFixedAddress func(ref string) (string, error) + DeleteHostRecord func(ref string) (string, error) + DeleteMXRecord func(ref string) (string, error) + DeleteNetwork func(ref string) (string, error) + DeleteNetworkContainer func(ref string) (string, error) + DeleteNetworkView func(ref string) (string, error) + DeletePTRRecord func(ref string) (string, error) + DeleteSRVRecord func(ref string) (string, error) + DeleteTXTRecord func(ref string) (string, error) + DeleteZoneAuth func(ref string) (string, error) + DeleteZoneDelegated func(ref string) (string, error) + GetAAAARecord func(dnsview string, recordName string, ipAddr string) (*RecordAAAA, error) + GetAAAARecordByRef func(ref string) (*RecordAAAA, error) + GetARecord func(dnsview string, recordName string, ipAddr string) (*RecordA, error) + GetARecordByRef func(ref string) (*RecordA, error) + GetAllMembers func() ([]Member, error) + GetCNAMERecord func(dnsview string, canonical string, recordName string) (*RecordCNAME, error) + GetCNAMERecordByRef func(ref string) (*RecordCNAME, error) + GetCapacityReport func(name string) ([]CapacityReport, error) + GetDNSView func(name string) (*DNSView, error) + GetEADefinition func(name string) (*EADefinition, error) + GetFixedAddress func(netview string, cidr string, ipAddr string, isIPv6 bool, macOrDuid string) (*FixedAddress, error) + GetFixedAddressByRef func(ref string) (*FixedAddress, error) + GetGridInfo func() ([]Grid, error) + GetGridLicense func() ([]License, error) + GetHostRecord func(netview string, dnsview string, recordName string, ipv4addr string, ...) (*HostRecord, error) + GetHostRecordByRef func(ref string) (*HostRecord, error) + GetIpAddressFromHostRecord func(host HostRecord) (string, error) + GetMXRecord func(dnsView string, fqdn string, mx string, preference uint32) (*RecordMX, error) + GetMXRecordByRef func(ref string) (*RecordMX, error) + GetNetwork func(netview string, cidr string, isIPv6 bool, ea EA) (*Network, error) + GetNetworkByEA func(netview string, ea map[string]interface{}) (interface{}, error) + GetNetworkByRef func(ref string) (*Network, error) + GetNetworkContainer func(netview string, cidr string, isIPv6 bool, eaSearch EA) (*NetworkContainer, error) + GetNetworkContainerByRef func(ref string) (*NetworkContainer, error) + GetNetworkView func(name string) (*NetworkView, error) + GetNetworkViewByRef func(ref string) (*NetworkView, error) + GetPTRRecord func(dnsview string, ptrdname string, recordName string, ipAddr string) (*RecordPTR, error) + GetPTRRecordByRef func(ref string) (*RecordPTR, error) + GetSRVRecord func(dnsView string, name string, target string, port uint32) (*RecordSRV, error) + GetSRVRecordByRef func(ref string) (*RecordSRV, error) + GetTXTRecord func(dnsview string, name string) (*RecordTXT, error) + GetTXTRecordByRef func(ref string) (*RecordTXT, error) + GetUpgradeStatus func(statusType string) ([]UpgradeStatus, error) + GetZoneAuthByRef func(ref string) (*ZoneAuth, error) + GetZoneDelegated func(fqdn string) (*ZoneDelegated, error) + ReleaseIP func(netview string, cidr string, ipAddr string, isIPv6 bool, macAddr string) (string, error) + SearchHostRecordByAltId func(internalId string, ref string, eaNameForInternalId string) (*HostRecord, error) + UpdateAAAARecord func(ref string, netView string, recordName string, cidr string, ipAddr string, ...) (*RecordAAAA, error) + UpdateARecord func(ref string, name string, ipAddr string, cidr string, netview string, ...) (*RecordA, error) + UpdateCNAMERecord func(ref string, canonical string, recordName string, useTtl bool, ttl uint32, ...) (*RecordCNAME, error) + UpdateFixedAddress func(fixedAddrRef string, netview string, name string, cidr string, ipAddr string, ...) (*FixedAddress, error) + UpdateHostRecord func(hostRref string, enabledns bool, enabledhcp bool, name string, netview string, ...) (*HostRecord, error) + UpdateMXRecord func(ref string, dnsView string, fqdn string, mx string, preference uint32, ...) (*RecordMX, error) + UpdateNetwork func(ref string, setEas EA, comment string) (*Network, error) + UpdateNetworkContainer func(ref string, setEas EA, comment string) (*NetworkContainer, error) + UpdateNetworkView func(ref string, name string, comment string, setEas EA) (*NetworkView, error) + UpdatePTRRecord func(ref string, netview string, ptrdname string, name string, cidr string, ...) (*RecordPTR, error) + UpdateSRVRecord func(ref string, name string, priority uint32, weight uint32, port uint32, ...) (*RecordSRV, error) + UpdateTXTRecord func(ref string, recordName string, text string, ttl uint32, useTtl bool, ...) (*RecordTXT, error) + UpdateZoneDelegated func(ref string, delegate_to []NameServer) (*ZoneDelegated, error) + func NewObjectManager(connector IBConnector, cmpType string, tenantID string) IBObjectManager + type Ipv6Setting struct + AutoRouterConfigEnabled bool + CidrPrefix uint + Dscp uint + Enabled bool + Gateway string + Primary string + UseDscp bool + VirtualIp string + VlanId uint + type LanHaPortSetting struct + HAIpAddress string + HaPortSetting PhysicalPortSetting + LanPortSetting PhysicalPortSetting + MgmtIpv6addr string + MgmtLan string + type License struct + ExpirationStatus string + ExpiryDate int + HwID string + Key string + Kind string + Licensetype string + Limit string + LimitContext string + Ref string + func NewGridLicense(license License) *License + func NewLicense(license License) *License + type Lock interface + Lock func() error + UnLock func(force bool) error + type Member struct + ConfigAddrType string + HostName string + Nodeinfo []NodeInfo + PLATFORM string + Ref string + ServiceTypeConfiguration string + TimeZone string + func NewMember(member Member) *Member + type MultiRequest struct + Body []*RequestBody + func NewMultiRequest(body []*RequestBody) *MultiRequest + func (r *MultiRequest) MarshalJSON() ([]byte, error) + type NTPSetting struct + EnableNTP bool + NTPAcl map[string]interface{} + NTPKeys []string + NTPKod bool + NTPServers []NTPserver + type NTPserver struct + Address string + Burst bool + EnableAuthentication bool + IBurst bool + NTPKeyNumber uint + Preffered bool + type NameServer struct + Address string + Name string + type Network struct + Cidr string + Comment string + Ea EA + NetviewName string + Ref string + func BuildIPv6NetworkFromRef(ref string) (*Network, error) + func BuildNetworkFromRef(ref string) (*Network, error) + func NewNetwork(netview string, cidr string, isIPv6 bool, comment string, ea EA) *Network + type NetworkContainer struct + Cidr string + Comment string + Ea EA + NetviewName string + Ref string + func BuildIPv6NetworkContainerFromRef(ref string) (*NetworkContainer, error) + func BuildNetworkContainerFromRef(ref string) (*NetworkContainer, error) + func NewNetworkContainer(netview, cidr string, isIPv6 bool, comment string, ea EA) *NetworkContainer + type NetworkContainerNextAvailable struct + Comment string + Ea EA + Network *NetworkContainerNextAvailableInfo + func NewNetworkContainerNextAvailable(ncav *NetworkContainerNextAvailableInfo, isIPv6 bool, comment string, ea EA) *NetworkContainerNextAvailable + type NetworkContainerNextAvailableInfo struct + Function string + NetviewName string + Object string + ObjectParams map[string]string + Params map[string]uint + ResultField string + func NewNetworkContainerNextAvailableInfo(netview, cidr string, prefixLen uint, isIPv6 bool) *NetworkContainerNextAvailableInfo + type NetworkSetting struct + Address string + Dscp uint + Gateway string + Primary bool + SubnetMask string + UseDscp bool + VlanId uint + type NetworkView struct + Comment string + Ea EA + Name string + Ref string + func BuildNetworkViewFromRef(ref string) *NetworkView + func NewEmptyNetworkView() *NetworkView + func NewNetworkView(name string, comment string, eas EA, ref string) *NetworkView + type NetworkViewLock struct + LockEA string + LockTimeoutEA string + Name string + ObjMgr *ObjectManager + func (l *NetworkViewLock) Lock() error + func (l *NetworkViewLock) UnLock(force bool) error + type NodeInfo struct + HaStatus string + HwId string + HwModel string + HwPlatform string + HwType string + Lan2PhysicalSetting PhysicalPortSetting + LanHaPortSetting LanHaPortSetting + MgmtNetworkSetting NetworkSetting + MgmtPhysicalSetting PhysicalPortSetting + PaidNios bool + PhysicalOid string + ServiceStatus []ServiceStatus + V6MgmtNetworkSetting Ipv6Setting + type NotFoundError struct + func NewNotFoundError(msg string) *NotFoundError + func (e *NotFoundError) Error() string + type ObjectManager struct + func (objMgr *ObjectManager) AllocateIP(netview string, cidr string, ipAddr string, isIPv6 bool, macOrDuid string, ...) (*FixedAddress, error) + func (objMgr *ObjectManager) AllocateNetwork(netview string, cidr string, isIPv6 bool, prefixLen uint, comment string, ...) (network *Network, err error) + func (objMgr *ObjectManager) AllocateNetworkContainer(netview string, cidr string, isIPv6 bool, prefixLen uint, comment string, ...) (*NetworkContainer, error) + func (objMgr *ObjectManager) CreateAAAARecord(netView string, dnsView string, recordName string, cidr string, ipAddr string, ...) (*RecordAAAA, error) + func (objMgr *ObjectManager) CreateARecord(netView string, dnsView string, name string, cidr string, ipAddr string, ...) (*RecordA, error) + func (objMgr *ObjectManager) CreateCNAMERecord(dnsview string, canonical string, recordname string, useTtl bool, ttl uint32, ...) (*RecordCNAME, error) + func (objMgr *ObjectManager) CreateDefaultNetviews(globalNetview string, localNetview string) (globalNetviewRef string, localNetviewRef string, err error) + func (objMgr *ObjectManager) CreateEADefinition(eadef EADefinition) (*EADefinition, error) + func (objMgr *ObjectManager) CreateHostRecord(enabledns bool, enableDhcp bool, recordName string, netview string, ...) (*HostRecord, error) + func (objMgr *ObjectManager) CreateMXRecord(dnsView string, fqdn string, mx string, preference uint32, ttl uint32, ...) (*RecordMX, error) + func (objMgr *ObjectManager) CreateMultiObject(req *MultiRequest) ([]map[string]interface{}, error) + func (objMgr *ObjectManager) CreateNetwork(netview string, cidr string, isIPv6 bool, comment string, eas EA) (*Network, error) + func (objMgr *ObjectManager) CreateNetworkContainer(netview string, cidr string, isIPv6 bool, comment string, eas EA) (*NetworkContainer, error) + func (objMgr *ObjectManager) CreateNetworkView(name string, comment string, setEas EA) (*NetworkView, error) + func (objMgr *ObjectManager) CreatePTRRecord(networkView string, dnsView string, ptrdname string, recordName string, ...) (*RecordPTR, error) + func (objMgr *ObjectManager) CreateSRVRecord(dnsView string, name string, priority uint32, weight uint32, port uint32, ...) (*RecordSRV, error) + func (objMgr *ObjectManager) CreateTXTRecord(dnsView string, recordName string, text string, ttl uint32, useTtl bool, ...) (*RecordTXT, error) + func (objMgr *ObjectManager) CreateZoneAuth(fqdn string, eas EA) (*ZoneAuth, error) + func (objMgr *ObjectManager) CreateZoneDelegated(fqdn string, delegate_to []NameServer) (*ZoneDelegated, error) + func (objMgr *ObjectManager) DeleteAAAARecord(ref string) (string, error) + func (objMgr *ObjectManager) DeleteARecord(ref string) (string, error) + func (objMgr *ObjectManager) DeleteCNAMERecord(ref string) (string, error) + func (objMgr *ObjectManager) DeleteFixedAddress(ref string) (string, error) + func (objMgr *ObjectManager) DeleteHostRecord(ref string) (string, error) + func (objMgr *ObjectManager) DeleteMXRecord(ref string) (string, error) + func (objMgr *ObjectManager) DeleteNetwork(ref string) (string, error) + func (objMgr *ObjectManager) DeleteNetworkContainer(ref string) (string, error) + func (objMgr *ObjectManager) DeleteNetworkView(ref string) (string, error) + func (objMgr *ObjectManager) DeletePTRRecord(ref string) (string, error) + func (objMgr *ObjectManager) DeleteSRVRecord(ref string) (string, error) + func (objMgr *ObjectManager) DeleteTXTRecord(ref string) (string, error) + func (objMgr *ObjectManager) DeleteZoneAuth(ref string) (string, error) + func (objMgr *ObjectManager) DeleteZoneDelegated(ref string) (string, error) + func (objMgr *ObjectManager) GetAAAARecord(dnsview string, recordName string, ipAddr string) (*RecordAAAA, error) + func (objMgr *ObjectManager) GetAAAARecordByRef(ref string) (*RecordAAAA, error) + func (objMgr *ObjectManager) GetARecord(dnsview string, recordName string, ipAddr string) (*RecordA, error) + func (objMgr *ObjectManager) GetARecordByRef(ref string) (*RecordA, error) + func (objMgr *ObjectManager) GetAllMembers() ([]Member, error) + func (objMgr *ObjectManager) GetCNAMERecord(dnsview string, canonical string, recordName string) (*RecordCNAME, error) + func (objMgr *ObjectManager) GetCNAMERecordByRef(ref string) (*RecordCNAME, error) + func (objMgr *ObjectManager) GetCapacityReport(name string) ([]CapacityReport, error) + func (objMgr *ObjectManager) GetDNSView(name string) (*DNSView, error) + func (objMgr *ObjectManager) GetEADefinition(name string) (*EADefinition, error) + func (objMgr *ObjectManager) GetFixedAddress(netview string, cidr string, ipAddr string, isIpv6 bool, macOrDuid string) (*FixedAddress, error) + func (objMgr *ObjectManager) GetFixedAddressByRef(ref string) (*FixedAddress, error) + func (objMgr *ObjectManager) GetGridInfo() ([]Grid, error) + func (objMgr *ObjectManager) GetGridLicense() ([]License, error) + func (objMgr *ObjectManager) GetHostRecord(netview string, dnsview string, recordName string, ipv4addr string, ...) (*HostRecord, error) + func (objMgr *ObjectManager) GetHostRecordByRef(ref string) (*HostRecord, error) + func (objMgr *ObjectManager) GetIpAddressFromHostRecord(host HostRecord) (string, error) + func (objMgr *ObjectManager) GetLicense() ([]License, error) + func (objMgr *ObjectManager) GetMXRecord(dnsView string, fqdn string, mx string, preference uint32) (*RecordMX, error) + func (objMgr *ObjectManager) GetMXRecordByRef(ref string) (*RecordMX, error) + func (objMgr *ObjectManager) GetNetwork(netview string, cidr string, isIPv6 bool, ea EA) (*Network, error) + func (objMgr *ObjectManager) GetNetworkByEA(netview string, ea map[string]interface{}) (interface{}, error) + func (objMgr *ObjectManager) GetNetworkByRef(ref string) (*Network, error) + func (objMgr *ObjectManager) GetNetworkContainer(netview string, cidr string, isIPv6 bool, eaSearch EA) (*NetworkContainer, error) + func (objMgr *ObjectManager) GetNetworkContainerByRef(ref string) (*NetworkContainer, error) + func (objMgr *ObjectManager) GetNetworkView(name string) (*NetworkView, error) + func (objMgr *ObjectManager) GetNetworkViewByRef(ref string) (*NetworkView, error) + func (objMgr *ObjectManager) GetPTRRecord(dnsview string, ptrdname string, recordName string, ipAddr string) (*RecordPTR, error) + func (objMgr *ObjectManager) GetPTRRecordByRef(ref string) (*RecordPTR, error) + func (objMgr *ObjectManager) GetSRVRecord(dnsView string, name string, target string, port uint32) (*RecordSRV, error) + func (objMgr *ObjectManager) GetSRVRecordByRef(ref string) (*RecordSRV, error) + func (objMgr *ObjectManager) GetTXTRecord(dnsview string, name string) (*RecordTXT, error) + func (objMgr *ObjectManager) GetTXTRecordByRef(ref string) (*RecordTXT, error) + func (objMgr *ObjectManager) GetUpgradeStatus(statusType string) ([]UpgradeStatus, error) + func (objMgr *ObjectManager) GetZoneAuth() ([]ZoneAuth, error) + func (objMgr *ObjectManager) GetZoneAuthByRef(ref string) (*ZoneAuth, error) + func (objMgr *ObjectManager) GetZoneDelegated(fqdn string) (*ZoneDelegated, error) + func (objMgr *ObjectManager) ReleaseIP(netview string, cidr string, ipAddr string, isIpv6 bool, macOrDuid string) (string, error) + func (objMgr *ObjectManager) SearchHostRecordByAltId(internalId string, ref string, eaNameForInternalId string) (*HostRecord, error) + func (objMgr *ObjectManager) UpdateAAAARecord(ref string, netView string, recordName string, ipAddr string, cidr string, ...) (*RecordAAAA, error) + func (objMgr *ObjectManager) UpdateARecord(ref string, name string, ipAddr string, cidr string, netView string, ...) (*RecordA, error) + func (objMgr *ObjectManager) UpdateCNAMERecord(ref string, canonical string, recordName string, useTtl bool, ttl uint32, ...) (*RecordCNAME, error) + func (objMgr *ObjectManager) UpdateFixedAddress(fixedAddrRef string, netview string, name string, cidr string, ipAddr string, ...) (*FixedAddress, error) + func (objMgr *ObjectManager) UpdateHostRecord(hostRref string, enabledns bool, enableDhcp bool, name string, netView string, ...) (*HostRecord, error) + func (objMgr *ObjectManager) UpdateMXRecord(ref string, dnsView string, fqdn string, mx string, preference uint32, ...) (*RecordMX, error) + func (objMgr *ObjectManager) UpdateNetwork(ref string, setEas EA, comment string) (*Network, error) + func (objMgr *ObjectManager) UpdateNetworkContainer(ref string, setEas EA, comment string) (*NetworkContainer, error) + func (objMgr *ObjectManager) UpdateNetworkView(ref string, name string, comment string, setEas EA) (*NetworkView, error) + func (objMgr *ObjectManager) UpdatePTRRecord(ref string, netview string, ptrdname string, name string, cidr string, ...) (*RecordPTR, error) + func (objMgr *ObjectManager) UpdateSRVRecord(ref string, name string, priority uint32, weight uint32, port uint32, ...) (*RecordSRV, error) + func (objMgr *ObjectManager) UpdateTXTRecord(ref string, recordName string, text string, ttl uint32, useTtl bool, ...) (*RecordTXT, error) + func (objMgr *ObjectManager) UpdateZoneDelegated(ref string, delegate_to []NameServer) (*ZoneDelegated, error) + type PhysicalPortSetting struct + AutoPortSettingEnabled bool + Duplex string + Speed string + type QueryParams struct + func NewQueryParams(forceProxy bool, searchFields map[string]string) *QueryParams + type RecordA struct + Comment string + Ea EA + Ipv4Addr string + Name string + Ref string + Ttl uint32 + UseTtl bool + View string + Zone string + func NewEmptyRecordA() *RecordA + func NewRecordA(view string, zone string, name string, ipAddr string, ttl uint32, useTTL bool, ...) *RecordA + type RecordAAAA struct + Comment string + Ea EA + Ipv6Addr string + Name string + Ref string + Ttl uint32 + UseTtl bool + View string + Zone string + func NewEmptyRecordAAAA() *RecordAAAA + func NewRecordAAAA(view string, name string, ipAddr string, useTtl bool, ttl uint32, ...) *RecordAAAA + type RecordCNAME struct + Canonical string + Comment string + Ea EA + Name string + Ref string + Ttl uint32 + UseTtl bool + View string + Zone string + func NewEmptyRecordCNAME() *RecordCNAME + func NewRecordCNAME(dnsView string, canonical string, recordName string, useTtl bool, ttl uint32, ...) *RecordCNAME + type RecordMX struct + Comment string + Ea EA + Fqdn string + MX string + Preference uint32 + Ref string + Ttl uint32 + UseTtl bool + View string + Zone string + func NewEmptyRecordMX() *RecordMX + func NewRecordMX(rm RecordMX) *RecordMX + type RecordNS struct + Addresses []ZoneNameServer + Name string + Nameserver string + Ref string + View string + Zone string + func NewRecordNS(rc RecordNS) *RecordNS + type RecordPTR struct + Comment string + Ea EA + Ipv4Addr string + Ipv6Addr string + Name string + PtrdName string + Ref string + Ttl uint32 + UseTtl bool + View string + Zone string + func NewEmptyRecordPTR() *RecordPTR + func NewRecordPTR(dnsView string, ptrdname string, useTtl bool, ttl uint32, comment string, ...) *RecordPTR + type RecordSRV struct + Comment string + Ea EA + Name string + Port uint32 + Priority uint32 + Ref string + Target string + Ttl uint32 + UseTtl bool + View string + Weight uint32 + Zone string + func NewEmptyRecordSRV() *RecordSRV + func NewRecordSRV(rv RecordSRV) *RecordSRV + type RecordTXT struct + Comment string + Ea EA + Name string + Ref string + Text string + Ttl uint32 + UseTtl bool + View string + Zone string + func NewEmptyRecordTXT() *RecordTXT + func NewRecordTXT(dnsview string, zone string, recordname string, text string, ttl uint32, ...) *RecordTXT + type RequestBody struct + Args map[string]string + AssignState map[string]string + Data map[string]interface{} + Discard bool + EnableSubstitution bool + Method string + Object string + type RequestType int + const CREATE + const DELETE + const GET + const UPDATE + type ServiceStatus struct + Desciption string + Service string + Status string + type SingleRequest struct + Body *RequestBody + func NewRequest(body *RequestBody) *SingleRequest + type SubElementsStatus struct + CurrentVersion string + ElementStatus string + Ipv4Address string + Ipv6Address string + Member string + NodeType string + Ref string + StatusValue string + StepsCompleted int + StepsTotal int + type TransportConfig struct + HttpPoolConnections int + HttpRequestTimeout time.Duration + ProxyUrl *url.URL + SslVerify bool + func NewTransportConfig(sslVerify string, httpRequestTimeout int, httpPoolConnections int) (cfg TransportConfig) + type UpgradeStatus struct + Ref string + SubElementStatus []SubElementsStatus + Type string + UpgradeGroup string + func NewUpgradeStatus(upgradeStatus UpgradeStatus) *UpgradeStatus + type UserProfile struct + Name string + Ref string + func NewUserProfile(userprofile UserProfile) *UserProfile + type WapiHttpRequestor struct + func (whr *WapiHttpRequestor) Init(authCfg AuthConfig, trCfg TransportConfig) + func (whr *WapiHttpRequestor) SendRequest(req *http.Request) (res []byte, err error) + type WapiRequestBuilder struct + func NewWapiRequestBuilder(hostCfg HostConfig, authCfg AuthConfig) (*WapiRequestBuilder, error) + func (wrb *WapiRequestBuilder) BuildBody(t RequestType, obj IBObject) []byte + func (wrb *WapiRequestBuilder) BuildRequest(t RequestType, obj IBObject, ref string, queryParams *QueryParams) (req *http.Request, err error) + func (wrb *WapiRequestBuilder) BuildUrl(t RequestType, objType string, ref string, returnFields []string, ...) (urlStr string) + func (wrb *WapiRequestBuilder) Init(hostCfg HostConfig, authCfg AuthConfig) + type ZoneAuth struct + Ea EA + Fqdn string + Ref string + View string + func NewZoneAuth(za ZoneAuth) *ZoneAuth + type ZoneDelegated struct + DelegateTo []NameServer + Ea EA + Fqdn string + Ref string + View string + func NewZoneDelegated(za ZoneDelegated) *ZoneDelegated + type ZoneNameServer struct + Address string