| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
package pipe |
| 10 |
|
| 11 |
import ( |
| 12 |
fown "github.com/checkpoint-restore/go-criu/v7/crit/images/fown" |
| 13 |
_ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts" |
| 14 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 15 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 16 |
reflect "reflect" |
| 17 |
sync "sync" |
| 18 |
) |
| 19 |
|
| 20 |
const ( |
| 21 |
|
| 22 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 23 |
|
| 24 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 25 |
) |
| 26 |
|
| 27 |
type PipeEntry struct { |
| 28 |
state protoimpl.MessageState |
| 29 |
sizeCache protoimpl.SizeCache |
| 30 |
unknownFields protoimpl.UnknownFields |
| 31 |
|
| 32 |
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` |
| 33 |
PipeId *uint32 `protobuf:"varint,2,req,name=pipe_id,json=pipeId" json:"pipe_id,omitempty"` |
| 34 |
Flags *uint32 `protobuf:"varint,3,req,name=flags" json:"flags,omitempty"` |
| 35 |
Fown *fown.FownEntry `protobuf:"bytes,4,req,name=fown" json:"fown,omitempty"` |
| 36 |
} |
| 37 |
|
| 38 |
func (x *PipeEntry) Reset() { |
| 39 |
*x = PipeEntry{} |
| 40 |
if protoimpl.UnsafeEnabled { |
| 41 |
mi := &file_pipe_proto_msgTypes[0] |
| 42 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 43 |
ms.StoreMessageInfo(mi) |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
func (x *PipeEntry) String() string { |
| 48 |
return protoimpl.X.MessageStringOf(x) |
| 49 |
} |
| 50 |
|
| 51 |
func (*PipeEntry) ProtoMessage() {} |
| 52 |
|
| 53 |
func (x *PipeEntry) ProtoReflect() protoreflect.Message { |
| 54 |
mi := &file_pipe_proto_msgTypes[0] |
| 55 |
if protoimpl.UnsafeEnabled && x != nil { |
| 56 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 57 |
if ms.LoadMessageInfo() == nil { |
| 58 |
ms.StoreMessageInfo(mi) |
| 59 |
} |
| 60 |
return ms |
| 61 |
} |
| 62 |
return mi.MessageOf(x) |
| 63 |
} |
| 64 |
|
| 65 |
|
| 66 |
func (*PipeEntry) Descriptor() ([]byte, []int) { |
| 67 |
return file_pipe_proto_rawDescGZIP(), []int{0} |
| 68 |
} |
| 69 |
|
| 70 |
func (x *PipeEntry) GetId() uint32 { |
| 71 |
if x != nil && x.Id != nil { |
| 72 |
return *x.Id |
| 73 |
} |
| 74 |
return 0 |
| 75 |
} |
| 76 |
|
| 77 |
func (x *PipeEntry) GetPipeId() uint32 { |
| 78 |
if x != nil && x.PipeId != nil { |
| 79 |
return *x.PipeId |
| 80 |
} |
| 81 |
return 0 |
| 82 |
} |
| 83 |
|
| 84 |
func (x *PipeEntry) GetFlags() uint32 { |
| 85 |
if x != nil && x.Flags != nil { |
| 86 |
return *x.Flags |
| 87 |
} |
| 88 |
return 0 |
| 89 |
} |
| 90 |
|
| 91 |
func (x *PipeEntry) GetFown() *fown.FownEntry { |
| 92 |
if x != nil { |
| 93 |
return x.Fown |
| 94 |
} |
| 95 |
return nil |
| 96 |
} |
| 97 |
|
| 98 |
var File_pipe_proto protoreflect.FileDescriptor |
| 99 |
|
| 100 |
var file_pipe_proto_rawDesc = []byte{ |
| 101 |
0x0a, 0x0a, 0x70, 0x69, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6f, 0x70, |
| 102 |
0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x66, 0x6f, 0x77, 0x6e, 0x2e, 0x70, |
| 103 |
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x73, 0x0a, 0x0a, 0x70, 0x69, 0x70, 0x65, 0x5f, 0x65, 0x6e, 0x74, |
| 104 |
0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x02, |
| 105 |
0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x69, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, |
| 106 |
0x02, 0x28, 0x0d, 0x52, 0x06, 0x70, 0x69, 0x70, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x05, 0x66, |
| 107 |
0x6c, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, |
| 108 |
0x01, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x1f, 0x0a, 0x04, 0x66, 0x6f, 0x77, 0x6e, |
| 109 |
0x18, 0x04, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x66, 0x6f, 0x77, 0x6e, 0x5f, 0x65, 0x6e, |
| 110 |
0x74, 0x72, 0x79, 0x52, 0x04, 0x66, 0x6f, 0x77, 0x6e, |
| 111 |
} |
| 112 |
|
| 113 |
var ( |
| 114 |
file_pipe_proto_rawDescOnce sync.Once |
| 115 |
file_pipe_proto_rawDescData = file_pipe_proto_rawDesc |
| 116 |
) |
| 117 |
|
| 118 |
func file_pipe_proto_rawDescGZIP() []byte { |
| 119 |
file_pipe_proto_rawDescOnce.Do(func() { |
| 120 |
file_pipe_proto_rawDescData = protoimpl.X.CompressGZIP(file_pipe_proto_rawDescData) |
| 121 |
}) |
| 122 |
return file_pipe_proto_rawDescData |
| 123 |
} |
| 124 |
|
| 125 |
var file_pipe_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 126 |
var file_pipe_proto_goTypes = []interface{}{ |
| 127 |
(*PipeEntry)(nil), |
| 128 |
(*fown.FownEntry)(nil), |
| 129 |
} |
| 130 |
var file_pipe_proto_depIdxs = []int32{ |
| 131 |
1, |
| 132 |
1, |
| 133 |
1, |
| 134 |
1, |
| 135 |
1, |
| 136 |
0, |
| 137 |
} |
| 138 |
|
| 139 |
func init() { file_pipe_proto_init() } |
| 140 |
func file_pipe_proto_init() { |
| 141 |
if File_pipe_proto != nil { |
| 142 |
return |
| 143 |
} |
| 144 |
if !protoimpl.UnsafeEnabled { |
| 145 |
file_pipe_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 146 |
switch v := v.(*PipeEntry); i { |
| 147 |
case 0: |
| 148 |
return &v.state |
| 149 |
case 1: |
| 150 |
return &v.sizeCache |
| 151 |
case 2: |
| 152 |
return &v.unknownFields |
| 153 |
default: |
| 154 |
return nil |
| 155 |
} |
| 156 |
} |
| 157 |
} |
| 158 |
type x struct{} |
| 159 |
out := protoimpl.TypeBuilder{ |
| 160 |
File: protoimpl.DescBuilder{ |
| 161 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 162 |
RawDescriptor: file_pipe_proto_rawDesc, |
| 163 |
NumEnums: 0, |
| 164 |
NumMessages: 1, |
| 165 |
NumExtensions: 0, |
| 166 |
NumServices: 0, |
| 167 |
}, |
| 168 |
GoTypes: file_pipe_proto_goTypes, |
| 169 |
DependencyIndexes: file_pipe_proto_depIdxs, |
| 170 |
MessageInfos: file_pipe_proto_msgTypes, |
| 171 |
}.Build() |
| 172 |
File_pipe_proto = out.File |
| 173 |
file_pipe_proto_rawDesc = nil |
| 174 |
file_pipe_proto_goTypes = nil |
| 175 |
file_pipe_proto_depIdxs = nil |
| 176 |
} |