|
@@ -1,6 +1,5 @@
|
|
-// Code generated by protoc-gen-gogo.
|
|
|
|
|
|
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: plugin.proto
|
|
// source: plugin.proto
|
|
-// DO NOT EDIT!
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
Package runtime is a generated protocol buffer package.
|
|
Package runtime is a generated protocol buffer package.
|
|
@@ -38,6 +37,7 @@ type PluginSpec struct {
|
|
Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"`
|
|
Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"`
|
|
Privileges []*PluginPrivilege `protobuf:"bytes,3,rep,name=privileges" json:"privileges,omitempty"`
|
|
Privileges []*PluginPrivilege `protobuf:"bytes,3,rep,name=privileges" json:"privileges,omitempty"`
|
|
Disabled bool `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"`
|
|
Disabled bool `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"`
|
|
|
|
+ Env []string `protobuf:"bytes,5,rep,name=env" json:"env,omitempty"`
|
|
}
|
|
}
|
|
|
|
|
|
func (m *PluginSpec) Reset() { *m = PluginSpec{} }
|
|
func (m *PluginSpec) Reset() { *m = PluginSpec{} }
|
|
@@ -73,6 +73,13 @@ func (m *PluginSpec) GetDisabled() bool {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (m *PluginSpec) GetEnv() []string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Env
|
|
|
|
+ }
|
|
|
|
+ return nil
|
|
|
|
+}
|
|
|
|
+
|
|
// PluginPrivilege describes a permission the user has to accept
|
|
// PluginPrivilege describes a permission the user has to accept
|
|
// upon installing a plugin.
|
|
// upon installing a plugin.
|
|
type PluginPrivilege struct {
|
|
type PluginPrivilege struct {
|
|
@@ -160,6 +167,21 @@ func (m *PluginSpec) MarshalTo(dAtA []byte) (int, error) {
|
|
}
|
|
}
|
|
i++
|
|
i++
|
|
}
|
|
}
|
|
|
|
+ if len(m.Env) > 0 {
|
|
|
|
+ for _, s := range m.Env {
|
|
|
|
+ dAtA[i] = 0x2a
|
|
|
|
+ i++
|
|
|
|
+ l = len(s)
|
|
|
|
+ for l >= 1<<7 {
|
|
|
|
+ dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
|
|
|
|
+ l >>= 7
|
|
|
|
+ i++
|
|
|
|
+ }
|
|
|
|
+ dAtA[i] = uint8(l)
|
|
|
|
+ i++
|
|
|
|
+ i += copy(dAtA[i:], s)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return i, nil
|
|
return i, nil
|
|
}
|
|
}
|
|
|
|
|
|
@@ -208,24 +230,6 @@ func (m *PluginPrivilege) MarshalTo(dAtA []byte) (int, error) {
|
|
return i, nil
|
|
return i, nil
|
|
}
|
|
}
|
|
|
|
|
|
-func encodeFixed64Plugin(dAtA []byte, offset int, v uint64) int {
|
|
|
|
- dAtA[offset] = uint8(v)
|
|
|
|
- dAtA[offset+1] = uint8(v >> 8)
|
|
|
|
- dAtA[offset+2] = uint8(v >> 16)
|
|
|
|
- dAtA[offset+3] = uint8(v >> 24)
|
|
|
|
- dAtA[offset+4] = uint8(v >> 32)
|
|
|
|
- dAtA[offset+5] = uint8(v >> 40)
|
|
|
|
- dAtA[offset+6] = uint8(v >> 48)
|
|
|
|
- dAtA[offset+7] = uint8(v >> 56)
|
|
|
|
- return offset + 8
|
|
|
|
-}
|
|
|
|
-func encodeFixed32Plugin(dAtA []byte, offset int, v uint32) int {
|
|
|
|
- dAtA[offset] = uint8(v)
|
|
|
|
- dAtA[offset+1] = uint8(v >> 8)
|
|
|
|
- dAtA[offset+2] = uint8(v >> 16)
|
|
|
|
- dAtA[offset+3] = uint8(v >> 24)
|
|
|
|
- return offset + 4
|
|
|
|
-}
|
|
|
|
func encodeVarintPlugin(dAtA []byte, offset int, v uint64) int {
|
|
func encodeVarintPlugin(dAtA []byte, offset int, v uint64) int {
|
|
for v >= 1<<7 {
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
@@ -255,6 +259,12 @@ func (m *PluginSpec) Size() (n int) {
|
|
if m.Disabled {
|
|
if m.Disabled {
|
|
n += 2
|
|
n += 2
|
|
}
|
|
}
|
|
|
|
+ if len(m.Env) > 0 {
|
|
|
|
+ for _, s := range m.Env {
|
|
|
|
+ l = len(s)
|
|
|
|
+ n += 1 + l + sovPlugin(uint64(l))
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return n
|
|
return n
|
|
}
|
|
}
|
|
|
|
|
|
@@ -429,6 +439,35 @@ func (m *PluginSpec) Unmarshal(dAtA []byte) error {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
m.Disabled = bool(v != 0)
|
|
m.Disabled = bool(v != 0)
|
|
|
|
+ case 5:
|
|
|
|
+ if wireType != 2 {
|
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType)
|
|
|
|
+ }
|
|
|
|
+ var stringLen uint64
|
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
|
+ if shift >= 64 {
|
|
|
|
+ return ErrIntOverflowPlugin
|
|
|
|
+ }
|
|
|
|
+ if iNdEx >= l {
|
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
|
+ }
|
|
|
|
+ b := dAtA[iNdEx]
|
|
|
|
+ iNdEx++
|
|
|
|
+ stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
+ if b < 0x80 {
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ intStringLen := int(stringLen)
|
|
|
|
+ if intStringLen < 0 {
|
|
|
|
+ return ErrInvalidLengthPlugin
|
|
|
|
+ }
|
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
|
+ if postIndex > l {
|
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
|
+ }
|
|
|
|
+ m.Env = append(m.Env, string(dAtA[iNdEx:postIndex]))
|
|
|
|
+ iNdEx = postIndex
|
|
default:
|
|
default:
|
|
iNdEx = preIndex
|
|
iNdEx = preIndex
|
|
skippy, err := skipPlugin(dAtA[iNdEx:])
|
|
skippy, err := skipPlugin(dAtA[iNdEx:])
|
|
@@ -695,18 +734,21 @@ var (
|
|
func init() { proto.RegisterFile("plugin.proto", fileDescriptorPlugin) }
|
|
func init() { proto.RegisterFile("plugin.proto", fileDescriptorPlugin) }
|
|
|
|
|
|
var fileDescriptorPlugin = []byte{
|
|
var fileDescriptorPlugin = []byte{
|
|
- // 196 bytes of a gzipped FileDescriptorProto
|
|
|
|
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0xc8, 0x29, 0x4d,
|
|
|
|
- 0xcf, 0xcc, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x57, 0x6a, 0x63, 0xe4, 0xe2, 0x0a, 0x00, 0x0b,
|
|
|
|
- 0x04, 0x17, 0xa4, 0x26, 0x0b, 0x09, 0x71, 0xb1, 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30,
|
|
|
|
- 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x62, 0x5c, 0x6c, 0x45, 0xa9, 0xb9, 0xf9, 0x25, 0xa9, 0x12,
|
|
|
|
- 0x4c, 0x60, 0x51, 0x28, 0x4f, 0xc8, 0x80, 0x8b, 0xab, 0xa0, 0x28, 0xb3, 0x2c, 0x33, 0x27, 0x35,
|
|
|
|
- 0x3d, 0xb5, 0x58, 0x82, 0x59, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x40, 0x0f, 0x62, 0x58, 0x00, 0x4c,
|
|
|
|
- 0x22, 0x08, 0x49, 0x8d, 0x90, 0x14, 0x17, 0x47, 0x4a, 0x66, 0x71, 0x62, 0x52, 0x4e, 0x6a, 0x8a,
|
|
|
|
- 0x04, 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