-
Notifications
You must be signed in to change notification settings - Fork 1
/
action_param_cmd.pb.go
133 lines (118 loc) · 4.96 KB
/
action_param_cmd.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: action_param_cmd.proto
package easy_command
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
//
//动作为 "runCmd" 的action的参数
type CmdActionParam struct {
//
//要运行的脚本内容
Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd" form:"cmd"`
//
//执行用户
ExecUser string `protobuf:"bytes,2,opt,name=execUser,proto3" json:"execUser" form:"execUser"`
//
//脚本类型
ScriptType string `protobuf:"bytes,3,opt,name=scriptType,proto3" json:"scriptType" form:"scriptType"`
//
//指定脚本解析器,如用 /usr/bin/python 执行 python 脚本。不指定会用默认的
Parser string `protobuf:"bytes,4,opt,name=parser,proto3" json:"parser" form:"parser"`
//
//脚本执行超时时间,单位为秒。超时会触发agent去kill脚本的进程
Timeout int32 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout" form:"timeout"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CmdActionParam) Reset() { *m = CmdActionParam{} }
func (m *CmdActionParam) String() string { return proto.CompactTextString(m) }
func (*CmdActionParam) ProtoMessage() {}
func (*CmdActionParam) Descriptor() ([]byte, []int) {
return fileDescriptor_9cb13b69a084402c, []int{0}
}
func (m *CmdActionParam) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CmdActionParam.Unmarshal(m, b)
}
func (m *CmdActionParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CmdActionParam.Marshal(b, m, deterministic)
}
func (m *CmdActionParam) XXX_Merge(src proto.Message) {
xxx_messageInfo_CmdActionParam.Merge(m, src)
}
func (m *CmdActionParam) XXX_Size() int {
return xxx_messageInfo_CmdActionParam.Size(m)
}
func (m *CmdActionParam) XXX_DiscardUnknown() {
xxx_messageInfo_CmdActionParam.DiscardUnknown(m)
}
var xxx_messageInfo_CmdActionParam proto.InternalMessageInfo
func (m *CmdActionParam) GetCmd() string {
if m != nil {
return m.Cmd
}
return ""
}
func (m *CmdActionParam) GetExecUser() string {
if m != nil {
return m.ExecUser
}
return ""
}
func (m *CmdActionParam) GetScriptType() string {
if m != nil {
return m.ScriptType
}
return ""
}
func (m *CmdActionParam) GetParser() string {
if m != nil {
return m.Parser
}
return ""
}
func (m *CmdActionParam) GetTimeout() int32 {
if m != nil {
return m.Timeout
}
return 0
}
func init() {
proto.RegisterType((*CmdActionParam)(nil), "easy_command.CmdActionParam")
}
func init() { proto.RegisterFile("action_param_cmd.proto", fileDescriptor_9cb13b69a084402c) }
var fileDescriptor_9cb13b69a084402c = []byte{
// 293 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x41, 0x4b, 0xf3, 0x30,
0x1c, 0xc6, 0xe9, 0xbb, 0x77, 0x53, 0x83, 0x4e, 0x16, 0x51, 0x8a,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