Versions in this module Expand all Collapse all v0 v0.0.1 Oct 7, 2016 Changes in this version + func Auth(prm AuthParams) string + func LogRequests() bool + type AkamaiError struct + Detail string + RequestBody string + ResponseBody string + Title string + Type string + func (a AkamaiError) Error() string + type AuthCredentials struct + APIHost string + AccessToken string + ClientSecret string + ClientToken string + func NewCredentials() *AuthCredentials + type AuthParams struct + func NewAuthParams(req *http.Request, accessToken, clientToken, clientSecret string) AuthParams + type Client interface + GetCredentials func() *AuthCredentials + GetHTTPClient func() *http.Client + type CpCodeSummary struct + CPCodeID string + CreatedDate string + Name string + ProductIDs []string + type CpCodes struct + CpCodes struct{ ... } + type DataCenter struct + City string + CloneOf int + CloudServerTargeting bool + Continent string + Country string + DataCenterID int + DefaultLoadObject *DefaultLoadObject + Latitude float64 + Links []Link + Longitude float64 + Nickname string + StateOrProvince string + Virtual bool + type DataCenterResponse struct + DataCenter *DataCenter + Status *ResourceStatus + type DataCenters struct + Items []DataCenter + type DefaultLoadObject struct + LoadObject interface{} + LoadObjectPort int64 + LoadServers interface{} + type Domain struct + CIDRMaps []interface{} + Datacenters []DataCenter + GeographicMaps []interface{} + LastModified string + LastModifiedBy string + Links []Link + ModificationComments string + Name string + Properties []Property + Resources []interface{} + Status *ResourceStatus + Type string + type DomainResponse struct + Domain *Domain + Status *ResourceStatus + type DomainSummary struct + LastModified string + Name string + Status string + type Domains struct + Domains []DomainSummary + type GTMClient struct + Credentials *AuthCredentials + HTTPClient *http.Client + func GTMClientWithCreds(accessToken, clientToken, clientSecret, apiHost string) *GTMClient + func NewGTMClient() *GTMClient + func (c *GTMClient) DataCenter(domain string, id int) (*DataCenter, error) + func (c *GTMClient) DataCenterByName(domain string, name string) (*DataCenter, error) + func (c *GTMClient) DataCenterCreate(domain string, dc *DataCenter) (*DataCenterResponse, error) + func (c *GTMClient) DataCenterDelete(domain string, id int) error + func (c *GTMClient) DataCenterUpdate(domain string, dc *DataCenter) (*DataCenterResponse, error) + func (c *GTMClient) DataCenters(domain string) ([]DataCenter, error) + func (c *GTMClient) Domain(name string) (*Domain, error) + func (c *GTMClient) DomainCreate(name string, domainType string) (*DomainResponse, error) + func (c *GTMClient) DomainStatus(name string) (*ResourceStatus, error) + func (c *GTMClient) DomainUpdate(domain *Domain) (*DomainResponse, error) + func (c *GTMClient) Domains() ([]DomainSummary, error) + func (c *GTMClient) Properties(domain string) (*Properties, error) + func (c *GTMClient) PropertiesSorted(domain string) (*Properties, error) + func (c *GTMClient) Property(domain, property string) (*Property, error) + func (c *GTMClient) PropertyCreate(domain string, property *Property) (*PropertyResponse, error) + func (c *GTMClient) PropertyDelete(domain string, property string) (bool, error) + func (c *GTMClient) PropertyUpdate(domain string, property *Property) (*PropertyResponse, error) + func (c GTMClient) GetCredentials() *AuthCredentials + func (c GTMClient) GetHTTPClient() *http.Client + type GroupSummary struct + ContractIDs []string + GroupID string + Name string + ParentGroupID string + type Groups struct + Groups struct{ ... } + type HostnameSummary struct + DomainPrefix string + DomainSuffix string + EdgeHostnameDomain string + EdgeHostnameID string + IPVersionBehavior string + Secure bool + type Hostnames struct + Hostnames struct{ ... } + type Link struct + Href string + Rel string + type LivenessTest struct + DisableNonstandardPortWarning bool + HTTPError3xx bool + HTTPError4xx bool + HTTPError5xx bool + HostHeader string + Name string + RequestString string + ResponseString string + SSLCertificate string + SSLClientPrivateKey string + TestInterval int64 + TestObject string + TestObjectPassword string + TestObjectPort int64 + TestObjectProtocol string + TestObjectUsername string + TestTimeout float64 + type LoadObject struct + CloudServerTargeting bool + Continent string + LoadObject string + LoadObjectPort string + LoadServers string + type PAPIClient struct + Credentials *AuthCredentials + HTTPClient *http.Client + func NewPAPIClient() *PAPIClient + func PAPIClientWithCreds(accessToken, clientToken, clientSecret, apiHost string) *PAPIClient + func (c *PAPIClient) Activations(propID, contractID, groupID string) ([]PapiActivation, error) + func (c *PAPIClient) CpCode(cpCodeID, contractID, groupID string) (*CpCodeSummary, error) + func (c *PAPIClient) CpCodes(contractID, groupID string) ([]CpCodeSummary, error) + func (c *PAPIClient) Groups() ([]GroupSummary, error) + func (c *PAPIClient) Hostname(hostID, contractID, groupID string) (HostnameSummary, error) + func (c *PAPIClient) Hostnames(contractID, groupID string) ([]HostnameSummary, error) + func (c *PAPIClient) Products(contractID string) ([]ProductSummary, error) + func (c *PAPIClient) Properties(contractID, groupID string) ([]PapiPropertySummary, error) + func (c *PAPIClient) Property(propID, contractID, groupID string) (PapiPropertySummary, error) + func (c *PAPIClient) PropertyLatestVersion(propID, contractID, groupID string) (PapiPropertyVersionSummary, error) + func (c *PAPIClient) PropertyRules(propID, version, contractID, groupID string) (PapiPropertyRuleSummary, error) + func (c *PAPIClient) PropertyVersion(version, propID, contractID, groupID string) (PapiPropertyVersionSummary, error) + func (c *PAPIClient) PropertyVersionXML(version, propID, contractID, groupID string) (string, error) + func (c *PAPIClient) PropertyVersions(propID, contractID, groupID string) ([]PapiPropertyVersionSummary, error) + func (c PAPIClient) GetCredentials() *AuthCredentials + func (c PAPIClient) GetHTTPClient() *http.Client + type PapiActivation struct + ActivationID string + ActivationType string + Network string + Note string + PropertyID string + PropertyName string + PropertyVersion int + Status string + SubmitDate string + UpdateDate string + type PapiActivations struct + Activations struct{ ... } + type PapiProperties struct + Properties struct{ ... } + type PapiPropertyRuleBehavior struct + Name string + type PapiPropertyRuleSummary struct + Behaviors []PapiPropertyRuleBehavior + Name string + UUID string + type PapiPropertyRules struct + Rules PapiPropertyRuleSummary + type PapiPropertySummary struct + AccountID string + ContractID string + GroupID string + LatestVersion int + Name string + Note string + ProductionVersion int + PropertyID string + StagingVersion int + type PapiPropertyVersionSummary struct + Etag string + Note string + ProductID string + ProductionStatus string + PropertyVersion int + StagingStatus string + UpdatedByUser string + UpdatedDate string + type PapiPropertyVersions struct + Versions struct{ ... } + type ProductSummary struct + Name string + ProductID string + type Products struct + Products struct{ ... } + type Properties struct + Properties []Property + func (props Properties) Len() int + func (props Properties) Less(i, j int) bool + func (props Properties) Swap(i, j int) + type Property struct + BackupCname string + BackupIP string + BalanceByDownloadScore bool + Cname string + Comments string + DynamicTTL int + FailbackDelay int + FailoverDelay int + HandoutMode string + HealthMax float64 + HealthMultiplier float64 + HealthThreshold float64 + Ipv6 bool + LastModified string + Links []Link + LivenessTests []LivenessTest + LoadImbalancePercentage float64 + MapName interface{} + MaxUnreachablePenalty interface{} + MxRecords []interface{} + Name string + ScoreAggregationType string + StaticTTL interface{} + StickinessBonusConstant interface{} + StickinessBonusPercentage interface{} + TrafficTargets []TrafficTarget + Type string + UnreachableThreshold interface{} + UseComputedTargets bool + type PropertyResponse struct + Property *Property + Status *ResourceStatus + type ResourceStatus struct + ChangeID string + Links []Link + Message string + PassingValidation bool + PropagationStatus string + PropagationStatusDate string + type TrafficTarget struct + DataCenterID int + Enabled bool + HandoutCname interface{} + Name interface{} + Servers []string + Weight float64