Versions in this module Expand all Collapse all v1 v1.3.4 Jan 17, 2018 Changes in this version type SBRDataInfo + AvailableToServe bool v1.3.2 Mar 3, 2017 v1.3.1 Mar 3, 2017 v1.3.0 Feb 28, 2017 Changes in this version type DPRDataInfo + Type string v1.2.1 Jun 13, 2016 v1.2.0 Jun 9, 2016 Changes in this version + func Endpoint(BaseURL string) oauth2.Endpoint + func NewConfig(username, password, BaseURL string) *passwordcredentials.Config + func TokenURL(BaseURL string) string type Client + Config *passwordcredentials.Config type ProbeDetailsDTO + func (s *ProbeDetailsDTO) DNSProbeDetails() (DNSProbeDetailsDTO, error) + func (s *ProbeDetailsDTO) FTPProbeDetails() (FTPProbeDetailsDTO, error) + func (s *ProbeDetailsDTO) GetDetailsObject(t ProbeType) (interface{}, error) + func (s *ProbeDetailsDTO) HTTPProbeDetails() (HTTPProbeDetailsDTO, error) + func (s *ProbeDetailsDTO) PingProbeDetails() (PingProbeDetailsDTO, error) + func (s *ProbeDetailsDTO) SMTPProbeDetails() (SMTPProbeDetailsDTO, error) + func (s *ProbeDetailsDTO) SMTPSENDProbeDetails() (SMTPSENDProbeDetailsDTO, error) + func (s *ProbeDetailsDTO) TCPProbeDetails() (TCPProbeDetailsDTO, error) + type ProbeType string + const DNSProbeType + const FTPProbeType + const HTTPProbeType + const PingProbeType + const SMTPProbeType + const SMTPSENDProbeType + const TCPProbeType v1.1.1 May 27, 2016 v1.1.0 May 27, 2016 Changes in this version type ProbeAlertDataDTO + func (a ProbeAlertDataDTO) Equal(b ProbeAlertDataDTO) bool v1.0.0 May 11, 2016 Changes in this version + const DefaultLiveBaseURL + const DefaultTestBaseURL + const DirPoolSchema + const RDPoolSchema + const SBPoolSchema + const TCPoolSchema + func AccountsURI() string + func CheckAuthResponse(r *http.Response, body []byte) error + func CheckResponse(r *http.Response) error + func GetAuthTokens(username, password, BaseURL string) (string, string, error) + func TasksQueryURI(query string, offset int) string + type Account struct + AccountHolderUserName string + AccountName string + AccountType string + NumberOfGroups int + NumberOfUsers int + OwnerUserName string + type AccountKey string + func (k AccountKey) URI() string + type AccountLevelGeoDirectionalGroupDTO struct + Codes []string + Description string + Name string + type AccountLevelGeoDirectionalGroupListDTO struct + AccountName string + GeoGroups []AccountLevelGeoDirectionalGroupDTO + Queryinfo QueryInfo + Resultinfo ResultInfo + type AccountLevelIPDirectionalGroupDTO struct + Description string + IPs []IPAddrDTO + Name string + type AccountLevelIPDirectionalGroupListDTO struct + AccountName string + IPGroups []AccountLevelIPDirectionalGroupDTO + Queryinfo QueryInfo + Resultinfo ResultInfo + type AccountListDTO struct + Accounts []Account + Resultinfo ResultInfo + type AccountsService struct + func (s *AccountsService) Delete(k AccountKey) (*Response, error) + func (s *AccountsService) Find(k AccountKey) (Account, *Response, error) + func (s *AccountsService) Select() ([]Account, *Response, error) + type AlertsService struct + func (s *AlertsService) Select(k RRSetKey) ([]ProbeAlertDataDTO, error) + func (s *AlertsService) SelectWithOffset(k RRSetKey, offset int) ([]ProbeAlertDataDTO, ResultInfo, *Response, error) + type AuthResponse struct + AccessToken string + ExpiresIn string + RefreshToken string + TokenType string + type BackupRecord struct + FailoverDelay int + RData string + type Client struct + AccessToken string + Accounts *AccountsService + Alerts *AlertsService + BaseURL string + DirectionalPools *DirectionalPoolsService + Events *EventsService + HTTPClient *http.Client + Notifications *NotificationsService + Password string + Probes *ProbesService + RRSets *RRSetsService + RefreshToken string + Tasks *TasksService + UserAgent string + Username string + func NewClient(username, password, BaseURL string) (*Client, error) + func (c *Client) Do(method, path string, payload, v interface{}) (*Response, error) + func (c *Client) GetResultByURI(uri string) (*Response, error) + func (c *Client) NewRequest(method, path string, payload interface{}) (*http.Request, error) + type DNSProbeDetailsDTO struct + Limits map[string]ProbeDetailsLimitDTO + OwnerName string + Port int + RecordType string + TCPOnly bool + type DPRDataInfo struct + AllNonConfigured bool + GeoInfo GeoInfo + IPInfo IPInfo + type DirPoolProfile struct + ConflictResolve string + Context ProfileSchema + Description string + NoResponse DPRDataInfo + RDataInfo []DPRDataInfo + func (p DirPoolProfile) RawProfile() (RawProfile, error) + type DirectionalPool struct + DirectionalPoolID string + DirectionalPoolStatusCode string + Message string + ResultURI string + type DirectionalPoolKey struct + Account AccountKey + Name string + Type string + func (k DirectionalPoolKey) QueryURI(query string, offset int) string + func (k DirectionalPoolKey) URI() string + type DirectionalPoolListDTO struct + DirectionalPools []DirectionalPool + Queryinfo QueryInfo + Resultinfo ResultInfo + type DirectionalPoolsService struct + func (s *DirectionalPoolsService) Geos() *GeoDirectionalPoolsService + func (s *DirectionalPoolsService) IPs() *IPDirectionalPoolsService + type ErrorResponse struct + ErrorCode int + ErrorDescription string + ErrorMessage string + ErrorStr string + Response *http.Response + func (r ErrorResponse) Error() string + type ErrorResponseList struct + Response *http.Response + Responses []ErrorResponse + func (r ErrorResponseList) Error() string + type EventInfoDTO struct + End time.Time + EventType string + ID string + Notify string + PoolRecord string + Repeat string + Start time.Time + type EventInfoListDTO struct + Events []EventInfoDTO + Queryinfo QueryInfo + Resultinfo ResultInfo + type EventKey struct + GUID string + Name string + Type string + Zone string + func (p EventKey) RRSetKey() RRSetKey + func (p EventKey) URI() string + type EventsService struct + func (s *EventsService) Create(r RRSetKey, ev EventInfoDTO) (*Response, error) + func (s *EventsService) Delete(e EventKey) (*Response, error) + func (s *EventsService) Find(e EventKey) (EventInfoDTO, *Response, error) + func (s *EventsService) Select(r RRSetKey, query string) ([]EventInfoDTO, error) + func (s *EventsService) SelectWithOffset(r RRSetKey, query string, offset int) ([]EventInfoDTO, ResultInfo, *Response, error) + func (s *EventsService) Update(e EventKey, ev EventInfoDTO) (*Response, error) + type FTPProbeDetailsDTO struct + Limits map[string]ProbeDetailsLimitDTO + PassiveMode bool + Password string + Path string + Port int + Username string + type GeoDirectionalPoolKey struct + Account AccountKey + Name string + func (k GeoDirectionalPoolKey) DirectionalPoolKey() DirectionalPoolKey + func (k GeoDirectionalPoolKey) QueryURI(query string, offset int) string + func (k GeoDirectionalPoolKey) URI() string + type GeoDirectionalPoolsService struct + func (s *GeoDirectionalPoolsService) Create(k GeoDirectionalPoolKey, val interface{}) (*Response, error) + func (s *GeoDirectionalPoolsService) Delete(k GeoDirectionalPoolKey) (*Response, error) + func (s *GeoDirectionalPoolsService) Find(k GeoDirectionalPoolKey) (AccountLevelGeoDirectionalGroupDTO, *Response, error) + func (s *GeoDirectionalPoolsService) Select(k GeoDirectionalPoolKey, query string) ([]AccountLevelGeoDirectionalGroupDTO, error) + func (s *GeoDirectionalPoolsService) SelectWithOffset(k GeoDirectionalPoolKey, query string, offset int) ([]AccountLevelGeoDirectionalGroupDTO, ResultInfo, *Response, error) + func (s *GeoDirectionalPoolsService) Update(k GeoDirectionalPoolKey, val interface{}) (*Response, error) + type GeoInfo struct + Codes []string + IsAccountLevel bool + Name string + type HTTPProbeDetailsDTO struct + TotalLimits *ProbeDetailsLimitDTO + Transactions []Transaction + type IPAddrDTO struct + Address string + CIDR string + End string + Start string + type IPDirectionalPoolKey struct + Account AccountKey + Name string + func (k IPDirectionalPoolKey) DirectionalPoolKey() DirectionalPoolKey + func (k IPDirectionalPoolKey) QueryURI(query string, offset int) string + func (k IPDirectionalPoolKey) URI() string + type IPDirectionalPoolsService struct + func (s *IPDirectionalPoolsService) Create(k IPDirectionalPoolKey, val interface{}) (*Response, error) + func (s *IPDirectionalPoolsService) Delete(k IPDirectionalPoolKey) (*Response, error) + func (s *IPDirectionalPoolsService) Find(k IPDirectionalPoolKey) (AccountLevelIPDirectionalGroupDTO, *Response, error) + func (s *IPDirectionalPoolsService) Select(k IPDirectionalPoolKey, query string) ([]AccountLevelIPDirectionalGroupDTO, error) + func (s *IPDirectionalPoolsService) SelectWithOffset(k IPDirectionalPoolKey, query string, offset int) ([]AccountLevelIPDirectionalGroupDTO, ResultInfo, *Response, error) + func (s *IPDirectionalPoolsService) Update(k IPDirectionalPoolKey, val interface{}) (*Response, error) + type IPInfo struct + Ips []IPAddrDTO + IsAccountLevel bool + Name string + type NotificationDTO struct + Email string + PoolRecords []NotificationPoolRecord + type NotificationInfoDTO struct + Probe bool + Record bool + Scheduled bool + type NotificationKey struct + Email string + Name string + Type string + Zone string + func (k NotificationKey) RRSetKey() RRSetKey + func (k NotificationKey) URI() string + type NotificationListDTO struct + Notifications []NotificationDTO + Queryinfo QueryInfo + Resultinfo ResultInfo + type NotificationPoolRecord struct + Notification NotificationInfoDTO + PoolRecord string + type NotificationsService struct + func (s *NotificationsService) Create(k NotificationKey, n NotificationDTO) (*Response, error) + func (s *NotificationsService) Delete(k NotificationKey) (*Response, error) + func (s *NotificationsService) Find(k NotificationKey) (NotificationDTO, *Response, error) + func (s *NotificationsService) Select(k RRSetKey, query string) ([]NotificationDTO, *Response, error) + func (s *NotificationsService) SelectWithOffset(k RRSetKey, query string, offset int) ([]NotificationDTO, ResultInfo, *Response, error) + func (s *NotificationsService) Update(k NotificationKey, n NotificationDTO) (*Response, error) + type PingProbeDetailsDTO struct + Limits map[string]ProbeDetailsLimitDTO + PacketSize int + Packets int + type ProbeAlertDataDTO struct + AlertDate time.Time + FailoverOccured bool + OwnerName string + PoolRecord string + ProbeStatus string + ProbeType string + Status string + type ProbeAlertDataListDTO struct + Alerts []ProbeAlertDataDTO + Queryinfo QueryInfo + Resultinfo ResultInfo + type ProbeDetailsDTO struct + Detail interface{} + func (s *ProbeDetailsDTO) GetData() []byte + func (s *ProbeDetailsDTO) GoString() string + func (s *ProbeDetailsDTO) MarshalJSON() ([]byte, error) + func (s *ProbeDetailsDTO) Populate(typ string) (err error) + func (s *ProbeDetailsDTO) String() string + func (s *ProbeDetailsDTO) UnmarshalJSON(b []byte) (err error) + type ProbeDetailsLimitDTO struct + Critical int + Fail int + Warning int + type ProbeInfoDTO struct + Agents []string + Details *ProbeDetailsDTO + ID string + Interval string + PoolRecord string + ProbeType string + Threshold int + type ProbeKey struct + ID string + Name string + Zone string + func (k ProbeKey) RRSetKey() RRSetKey + func (k ProbeKey) URI() string + type ProbeListDTO struct + Probes []ProbeInfoDTO + Queryinfo QueryInfo + Resultinfo ResultInfo + type ProbesService struct + func (s *ProbesService) Create(k RRSetKey, dp ProbeInfoDTO) (*Response, error) + func (s *ProbesService) Delete(k ProbeKey) (*Response, error) + func (s *ProbesService) Find(k ProbeKey) (ProbeInfoDTO, *Response, error) + func (s *ProbesService) Select(k RRSetKey, query string) ([]ProbeInfoDTO, *Response, error) + func (s *ProbesService) Update(k ProbeKey, dp ProbeInfoDTO) (*Response, error) + type ProfileSchema string + type QueryInfo struct + Limit int + Q string + Reverse bool + Sort string + type RDPoolProfile struct + Context ProfileSchema + Description string + Order string + func (p RDPoolProfile) RawProfile() (RawProfile, error) + type RRSet struct + OwnerName string + Profile RawProfile + RData []string + RRType string + TTL int + type RRSetKey struct + Name string + Type string + Zone string + func (k RRSetKey) AlertsQueryURI(offset int) string + func (k RRSetKey) AlertsURI() string + func (k RRSetKey) EventsQueryURI(query string, offset int) string + func (k RRSetKey) EventsURI() string + func (k RRSetKey) NotificationsQueryURI(query string, offset int) string + func (k RRSetKey) NotificationsURI() string + func (k RRSetKey) ProbesQueryURI(query string) string + func (k RRSetKey) ProbesURI() string + func (k RRSetKey) QueryURI(offset int) string + func (k RRSetKey) URI() string + type RRSetListDTO struct + Queryinfo QueryInfo + Resultinfo ResultInfo + Rrsets []RRSet + ZoneName string + type RRSetsService struct + func (s *RRSetsService) Create(k RRSetKey, rrset RRSet) (*Response, error) + func (s *RRSetsService) Delete(k RRSetKey) (*Response, error) + func (s *RRSetsService) Select(k RRSetKey) ([]RRSet, error) + func (s *RRSetsService) SelectWithOffset(k RRSetKey, offset int) ([]RRSet, ResultInfo, *Response, error) + func (s *RRSetsService) Update(k RRSetKey, val RRSet) (*Response, error) + type RawProfile map[string]interface + func (rp RawProfile) Context() ProfileSchema + func (rp RawProfile) DirPoolProfile() (DirPoolProfile, error) + func (rp RawProfile) GetProfileObject() (interface{}, error) + func (rp RawProfile) RDPoolProfile() (RDPoolProfile, error) + func (rp RawProfile) SBPoolProfile() (SBPoolProfile, error) + func (rp RawProfile) TCPoolProfile() (TCPoolProfile, error) + type Response struct + type ResultInfo struct + Offset int + ReturnedCount int + TotalCount int + type SBPoolProfile struct + ActOnProbes bool + BackupRecords []BackupRecord + Context ProfileSchema + Description string + MaxActive int + MaxServed int + Order string + RDataInfo []SBRDataInfo + RunProbes bool + func (p SBPoolProfile) RawProfile() (RawProfile, error) + type SBRDataInfo struct + FailoverDelay int + Priority int + RunProbes bool + State string + Threshold int + Weight int + type SMTPProbeDetailsDTO struct + Limits map[string]ProbeDetailsLimitDTO + Port int + type SMTPSENDProbeDetailsDTO struct + From string + Limits map[string]ProbeDetailsLimitDTO + Message string + Port int + To string + type TCPProbeDetailsDTO struct + ControlIP string + Limits map[string]ProbeDetailsLimitDTO + Port int + type TCPoolProfile struct + ActOnProbes bool + BackupRecord *BackupRecord + Context ProfileSchema + Description string + MaxToLB int + RDataInfo []SBRDataInfo + RunProbes bool + func (p TCPoolProfile) RawProfile() (RawProfile, error) + type Task struct + Message string + ResultURI string + TaskID string + TaskStatusCode string + type TaskID string + func (t TaskID) ResultURI() string + func (t TaskID) URI() string + type TaskListDTO struct + Queryinfo QueryInfo + Resultinfo ResultInfo + Tasks []Task + type TasksService struct + func (s *TasksService) Delete(t TaskID) (*Response, error) + func (s *TasksService) Find(t TaskID) (Task, *Response, error) + func (s *TasksService) FindResult(t TaskID) (*Response, error) + func (s *TasksService) FindResultByTask(t Task) (*Response, error) + func (s *TasksService) Select(query string) ([]Task, error) + func (s *TasksService) SelectWithOffset(query string, offset int) ([]Task, ResultInfo, *Response, error) + type Transaction struct + FollowRedirects bool + Limits map[string]ProbeDetailsLimitDTO + Method string + TransmittedData string + URL string v0 v0.0.0 Jul 4, 2015