-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from m-terra/feature/gslb-subresource-operators
Feature/gslb subresource operators
- Loading branch information
Showing
35 changed files
with
876 additions
and
585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
package policy | ||
|
||
import "github.com/ureuzy/acos-client-go/pkg/axapi/shared" | ||
|
||
// Object Docs: https://acos.docs.a10networks.com/axapi/521p2/axapiv3/gslb_policy.html#policy-attributes | ||
|
||
type Object struct { | ||
shared.AxaBase `json:",inline"` | ||
Name string `json:"name,omitempty"` | ||
HealthCheck shared.Boolean `json:"health-check,omitempty"` | ||
HealthCheckPreferenceEnable shared.Boolean `json:"health-check-preference-enable,omitempty"` | ||
HealthPreferenceTop int `json:"health-preference-top,omitempty"` | ||
AmountFirst shared.Boolean `json:"amount-first,omitempty"` | ||
WeightedIPEnable shared.Boolean `json:"weighted-ip-enable,omitempty"` | ||
WeightedIPTotalHits shared.Boolean `json:"weighted-ip-total-hits,omitempty"` | ||
WeightedSiteEnable shared.Boolean `json:"weighted-site-enable,omitempty"` | ||
WeightedSiteTotalHits shared.Boolean `json:"weighted-site-total-hits,omitempty"` | ||
WeightedAlias shared.Boolean `json:"weighted-alias,omitempty"` | ||
ActiveServersEnable shared.Boolean `json:"active-servers-enable,omitempty"` | ||
ActiveServersFailBreak shared.Boolean `json:"active-servers-fail-break,omitempty"` | ||
BwCostEnable shared.Boolean `json:"bw-cost-enable,omitempty"` | ||
BwCostFailBreak shared.Boolean `json:"bw-cost-fail-break,omitempty"` | ||
Geographic shared.Boolean `json:"geographic,omitempty"` | ||
NumSessionEnable shared.Boolean `json:"num-session-enable,omitempty"` | ||
NumSessionTolerance int `json:"num-session-tolerance,omitempty"` | ||
AdminPreference shared.Boolean `json:"admin-preference,omitempty"` | ||
AliasAdminPreference shared.Boolean `json:"alias-admin-preference,omitempty"` | ||
LeastResponse shared.Boolean `json:"least-response,omitempty"` | ||
AdminIPEnable shared.Boolean `json:"admin-ip-enable,omitempty"` | ||
AdminIPTopOnly shared.Boolean `json:"admin-ip-top-only,omitempty"` | ||
OrderedIPTopOnly shared.Boolean `json:"ordered-ip-top-only,omitempty"` | ||
RoundRobin shared.Boolean `json:"round-robin,omitempty"` | ||
MetricForceCheck shared.Boolean `json:"metric-force-check,omitempty"` | ||
IPList string `json:"ip-list,omitempty"` | ||
MetricOrder shared.Boolean `json:"metric-order,omitempty"` | ||
MetricType shared.Boolean `json:"metric-type,omitempty"` // "enum":[ "health-check", "weighted-ip", "weighted-site", "capacity", "active-servers", "active-rdt", "geographic", "connection-load", "num-session", "admin-preference", "bw-cost", "least-response", "admin-ip"] | ||
Capacity Capacity `json:"capacity,omitempty"` | ||
ConnectionLoad ConnectionLoad `json:"connection-load,omitempty"` | ||
DNS DNS `json:"dns,omitempty"` | ||
GeoLocationList []GeoLocation `json:"geo-location-list,omitempty"` | ||
GeoLocationMatch GeoLocationMatch `json:"geo-location-match,omitempty"` | ||
ActiveRdt ActiveRdt `json:"active-rdt,omitempty"` | ||
AutoMap AutoMap `json:"auto-map,omitempty"` | ||
EDNS EDNS `json:"edns,omitempty"` | ||
} | ||
|
||
type Capacity struct { | ||
shared.AxaBase `json:",inline"` | ||
// TODO | ||
} | ||
|
||
type ConnectionLoad struct { | ||
shared.AxaBase `json:",inline"` | ||
// TODO | ||
} | ||
|
||
type DNS struct { | ||
shared.AxaBase `json:",inline"` | ||
// TODO | ||
} | ||
|
||
type GeoLocation struct { | ||
shared.AxaBase `json:",inline"` | ||
// TODO | ||
} | ||
|
||
type GeoLocationMatch struct { | ||
shared.AxaBase `json:",inline"` | ||
// TODO | ||
} | ||
|
||
type ActiveRdt struct { | ||
shared.AxaBase `json:",inline"` | ||
// TODO | ||
} | ||
|
||
type AutoMap struct { | ||
shared.AxaBase `json:",inline"` | ||
// TODO | ||
} | ||
|
||
type EDNS struct { | ||
shared.AxaBase `json:",inline"` | ||
// TODO | ||
} |
Oops, something went wrong.