-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathinterface.go
More file actions
23 lines (21 loc) · 897 Bytes
/
Copy pathinterface.go
File metadata and controls
23 lines (21 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package client
import "github.com/nl2go/hrobot-go/models"
type RobotClient interface {
SetBaseURL(baseURL string)
SetUserAgent(userAgent string)
GetVersion() string
ServerGetList() ([]models.Server, error)
ServerGet(ip string) (*models.Server, error)
ServerSetName(ip string, input *models.ServerSetNameInput) (*models.Server, error)
ServerReverse(ip string) (*models.Cancellation, error)
KeyGetList() ([]models.Key, error)
IPGetList() ([]models.IP, error)
RDnsGetList() ([]models.Rdns, error)
RDnsGet(ip string) (*models.Rdns, error)
BootRescueGet(ip string) (*models.Rescue, error)
BootRescueSet(ip string, input *models.RescueSetInput) (*models.Rescue, error)
ResetGet(ip string) (*models.Reset, error)
ResetSet(ip string, input *models.ResetSetInput) (*models.ResetPost, error)
FailoverGetList() ([]models.Failover, error)
FailoverGet(ip string) (*models.Failover, error)
}