-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathclient_others.go
60 lines (45 loc) · 1.14 KB
/
client_others.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//go:build !linux
// +build !linux
package ipvs
import (
"fmt"
"runtime"
)
var (
errUnimplemented = fmt.Errorf("ipvs is not implemented on %s/%s",
runtime.GOOS, runtime.GOARCH)
)
type client struct{}
func newClient() (*client, error) {
return nil, errUnimplemented
}
func (c *client) Info() (Info, error) {
return Info{}, errUnimplemented
}
func (c *client) Services() ([]ServiceExtended, error) {
return nil, errUnimplemented
}
func (c *client) Service(Service) (ServiceExtended, error) {
return ServiceExtended{}, errUnimplemented
}
func (c *client) CreateService(Service) error {
return errUnimplemented
}
func (c *client) UpdateService(Service) error {
return errUnimplemented
}
func (c *client) RemoveService(Service) error {
return errUnimplemented
}
func (c *client) Destinations(Service) ([]DestinationExtended, error) {
return nil, errUnimplemented
}
func (c *client) CreateDestination(Service, Destination) error {
return errUnimplemented
}
func (c *client) UpdateDestination(Service, Destination) error {
return errUnimplemented
}
func (c *client) RemoveDestination(Service, Destination) error {
return errUnimplemented
}