forked from ligato/cn-infra
/
status.pb.go
73 lines (58 loc) · 2.51 KB
/
status.pb.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
61
62
63
64
65
66
67
68
69
70
71
72
73
// Code generated by protoc-gen-gogo.
// source: status.proto
// DO NOT EDIT!
/*
Package status is a generated protocol buffer package.
Package status provides data model for status information of the agent.
It is generated from these files:
status.proto
It has these top-level messages:
AgentStatus
PluginStatus
*/
package status
import "github.com/gogo/protobuf/proto"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
type OperationalState int32
const (
OperationalState_INIT OperationalState = 0
OperationalState_OK OperationalState = 1
OperationalState_ERROR OperationalState = 2
)
var OperationalState_name = map[int32]string{
0: "INIT",
1: "OK",
2: "ERROR",
}
var OperationalState_value = map[string]int32{
"INIT": 0,
"OK": 1,
"ERROR": 2,
}
func (x OperationalState) String() string {
return proto.EnumName(OperationalState_name, int32(x))
}
type AgentStatus struct {
BuildVersion string `protobuf:"bytes,1,opt,name=build_version,proto3" json:"build_version,omitempty"`
BuildDate string `protobuf:"bytes,2,opt,name=build_date,proto3" json:"build_date,omitempty"`
State OperationalState `protobuf:"varint,3,opt,name=state,proto3,enum=status.OperationalState" json:"state,omitempty"`
StartTime int64 `protobuf:"varint,4,opt,name=start_time,proto3" json:"start_time,omitempty"`
LastChange int64 `protobuf:"varint,5,opt,name=last_change,proto3" json:"last_change,omitempty"`
LastUpdate int64 `protobuf:"varint,6,opt,name=last_update,proto3" json:"last_update,omitempty"`
}
func (m *AgentStatus) Reset() { *m = AgentStatus{} }
func (m *AgentStatus) String() string { return proto.CompactTextString(m) }
func (*AgentStatus) ProtoMessage() {}
type PluginStatus struct {
State OperationalState `protobuf:"varint,1,opt,name=state,proto3,enum=status.OperationalState" json:"state,omitempty"`
LastChange int64 `protobuf:"varint,4,opt,name=last_change,proto3" json:"last_change,omitempty"`
LastUpdate int64 `protobuf:"varint,5,opt,name=last_update,proto3" json:"last_update,omitempty"`
Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
}
func (m *PluginStatus) Reset() { *m = PluginStatus{} }
func (m *PluginStatus) String() string { return proto.CompactTextString(m) }
func (*PluginStatus) ProtoMessage() {}
func init() {
proto.RegisterEnum("status.OperationalState", OperationalState_name, OperationalState_value)
}