-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
os.go
55 lines (44 loc) · 1.12 KB
/
os.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
// Auto-generated to Go types and interfaces using avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler)
// Input file: avdl/keybase1/os.avdl
package keybase1
import (
"fmt"
"github.com/keybase/go-framed-msgpack-rpc/rpc"
)
type RuntimeGroup int
const (
RuntimeGroup_UNKNOWN RuntimeGroup = 0
RuntimeGroup_LINUXLIKE RuntimeGroup = 1
RuntimeGroup_DARWINLIKE RuntimeGroup = 2
RuntimeGroup_WINDOWSLIKE RuntimeGroup = 3
)
func (o RuntimeGroup) DeepCopy() RuntimeGroup { return o }
var RuntimeGroupMap = map[string]RuntimeGroup{
"UNKNOWN": 0,
"LINUXLIKE": 1,
"DARWINLIKE": 2,
"WINDOWSLIKE": 3,
}
var RuntimeGroupRevMap = map[RuntimeGroup]string{
0: "UNKNOWN",
1: "LINUXLIKE",
2: "DARWINLIKE",
3: "WINDOWSLIKE",
}
func (e RuntimeGroup) String() string {
if v, ok := RuntimeGroupRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type RuntimeInterface interface {
}
func RuntimeProtocol(i RuntimeInterface) rpc.Protocol {
return rpc.Protocol{
Name: "keybase.1.runtime",
Methods: map[string]rpc.ServeHandlerDescription{},
}
}
type RuntimeClient struct {
Cli rpc.GenericClient
}