-
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.
- Loading branch information
Showing
18 changed files
with
117 additions
and
115 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
2 changes: 1 addition & 1 deletion
2
pkg/axapi/gslb/serviceip/port/port.go → ...xapi/gslb/serviceip/serviceipport/port.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package port | ||
package serviceipport | ||
|
||
import ( | ||
"fmt" | ||
|
2 changes: 1 addition & 1 deletion
2
pkg/axapi/gslb/serviceip/port/types.go → ...api/gslb/serviceip/serviceipport/types.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package port | ||
package serviceipport | ||
|
||
import "github.com/ureuzy/acos-client-go/pkg/axapi/shared" | ||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
pkg/axapi/gslb/site/ipserver/ipserver.go → pkg/axapi/gslb/site/siteipserver/ipserver.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ipserver | ||
package siteipserver | ||
|
||
import ( | ||
"fmt" | ||
|
2 changes: 1 addition & 1 deletion
2
pkg/axapi/gslb/site/ipserver/types.go → pkg/axapi/gslb/site/siteipserver/types.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ipserver | ||
package siteipserver | ||
|
||
import "github.com/ureuzy/acos-client-go/pkg/axapi/shared" | ||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
pkg/axapi/gslb/zone/service/service.go → pkg/axapi/gslb/zone/zoneservice/service.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package service | ||
package zoneservice | ||
|
||
import ( | ||
"fmt" | ||
|
2 changes: 1 addition & 1 deletion
2
pkg/axapi/gslb/zone/service/types.go → pkg/axapi/gslb/zone/zoneservice/types.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package service | ||
package zoneservice | ||
|
||
import ( | ||
"github.com/ureuzy/acos-client-go/pkg/axapi/shared" | ||
|
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package health | ||
|
||
import ( | ||
"github.com/ureuzy/acos-client-go/pkg/axapi/health/monitor" | ||
"github.com/ureuzy/acos-client-go/pkg/axapi/health/healthmonitor" | ||
"github.com/ureuzy/acos-client-go/pkg/rest" | ||
"github.com/ureuzy/acos-client-go/utils" | ||
) | ||
|
||
const path = "health" | ||
|
||
type Operator struct { | ||
Montitor rest.Operator[monitor.Body, monitor.ListBody] | ||
Montitor rest.Operator[healthmonitor.Body, healthmonitor.ListBody] | ||
} | ||
|
||
func New(c utils.HTTPClient) *Operator { | ||
return &Operator{ | ||
Montitor: monitor.New(c, path), | ||
Montitor: healthmonitor.New(c, path), | ||
} | ||
} |
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,25 @@ | ||
package healthmonitor | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/ureuzy/acos-client-go/pkg/rest" | ||
"github.com/ureuzy/acos-client-go/utils" | ||
) | ||
|
||
// Docs: https://acos.docs.a10networks.com/axapi/521p2/axapiv3/health_monitor.html | ||
|
||
func New(c utils.HTTPClient, basePath string) rest.Operator[Body, ListBody] { | ||
const path = "monitor" | ||
return rest.Rest[Body, ListBody](c, fmt.Sprintf("%s/%s", basePath, path)) | ||
} | ||
|
||
type ListBody struct { | ||
ListObjects `json:"monitor-list,omitempty"` | ||
} | ||
|
||
type Body struct { | ||
Object `json:"monitor,omitempty"` | ||
} | ||
|
||
type ListObjects []Object |
27 changes: 2 additions & 25 deletions
27
pkg/axapi/health/monitor/monitor.go → pkg/axapi/health/healthmonitor/types.go
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
10 changes: 1 addition & 9 deletions
10
pkg/axapi/slb/virtualserver/port/types.go → .../virtualserver/virtualserverport/types.go
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