_go

package module
v1.36.3-20250111010333... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const Marker_Body_not_set_case case_Marker_Body = 0
View Source
const Marker_FileData_case case_Marker_Body = 3
View Source
const Marker_FileEof_case case_Marker_Body = 4
View Source
const Marker_Filename_case case_Marker_Body = 2
View Source
const Marker_ImageEof_case case_Marker_Body = 5

Variables

View Source
var File_img_streamer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ImgStreamerReplyEntry

type ImgStreamerReplyEntry struct {
	Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
	// contains filtered or unexported fields
}

This message is sent from the streamer to CRIU. It is only used during restore to report whether the requested file exists.

func (*ImgStreamerReplyEntry) GetExists

func (x *ImgStreamerReplyEntry) GetExists() bool

func (*ImgStreamerReplyEntry) ProtoMessage

func (*ImgStreamerReplyEntry) ProtoMessage()

func (*ImgStreamerReplyEntry) ProtoReflect

func (x *ImgStreamerReplyEntry) ProtoReflect() protoreflect.Message

func (*ImgStreamerReplyEntry) Reset

func (x *ImgStreamerReplyEntry) Reset()

func (*ImgStreamerReplyEntry) SetExists

func (x *ImgStreamerReplyEntry) SetExists(v bool)

func (*ImgStreamerReplyEntry) String

func (x *ImgStreamerReplyEntry) String() string

type ImgStreamerReplyEntry_builder

type ImgStreamerReplyEntry_builder struct {
	Exists bool
	// contains filtered or unexported fields
}

func (ImgStreamerReplyEntry_builder) Build

type ImgStreamerRequestEntry

type ImgStreamerRequestEntry struct {
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	// contains filtered or unexported fields
}

This message is sent from CRIU to the streamer.

  • During dump, it communicates the name of the file that is about to be sent to the streamer.
  • During restore, CRIU requests image files from the streamer. The message is used to communicate the name of the desired file.

func (*ImgStreamerRequestEntry) GetFilename

func (x *ImgStreamerRequestEntry) GetFilename() string

func (*ImgStreamerRequestEntry) ProtoMessage

func (*ImgStreamerRequestEntry) ProtoMessage()

func (*ImgStreamerRequestEntry) ProtoReflect

func (x *ImgStreamerRequestEntry) ProtoReflect() protoreflect.Message

func (*ImgStreamerRequestEntry) Reset

func (x *ImgStreamerRequestEntry) Reset()

func (*ImgStreamerRequestEntry) SetFilename

func (x *ImgStreamerRequestEntry) SetFilename(v string)

func (*ImgStreamerRequestEntry) String

func (x *ImgStreamerRequestEntry) String() string

type ImgStreamerRequestEntry_builder

type ImgStreamerRequestEntry_builder struct {
	Filename string
	// contains filtered or unexported fields
}

func (ImgStreamerRequestEntry_builder) Build

type Marker

type Marker struct {
	Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
	// Types that are valid to be assigned to Body:
	//
	//	*Marker_Filename
	//	*Marker_FileData
	//	*Marker_FileEof
	//	*Marker_ImageEof
	Body isMarker_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

func (*Marker) ClearBody

func (x *Marker) ClearBody()

func (*Marker) ClearFileData

func (x *Marker) ClearFileData()

func (*Marker) ClearFileEof

func (x *Marker) ClearFileEof()

func (*Marker) ClearFilename

func (x *Marker) ClearFilename()

func (*Marker) ClearImageEof

func (x *Marker) ClearImageEof()

func (*Marker) GetBody

func (x *Marker) GetBody() isMarker_Body

func (*Marker) GetFileData

func (x *Marker) GetFileData() uint32

func (*Marker) GetFileEof

func (x *Marker) GetFileEof() bool

func (*Marker) GetFilename

func (x *Marker) GetFilename() string

func (*Marker) GetImageEof

func (x *Marker) GetImageEof() bool

func (*Marker) GetSeq

func (x *Marker) GetSeq() uint64

func (*Marker) HasBody

func (x *Marker) HasBody() bool

func (*Marker) HasFileData

func (x *Marker) HasFileData() bool

func (*Marker) HasFileEof

func (x *Marker) HasFileEof() bool

func (*Marker) HasFilename

func (x *Marker) HasFilename() bool

func (*Marker) HasImageEof

func (x *Marker) HasImageEof() bool

func (*Marker) ProtoMessage

func (*Marker) ProtoMessage()

func (*Marker) ProtoReflect

func (x *Marker) ProtoReflect() protoreflect.Message

func (*Marker) Reset

func (x *Marker) Reset()

func (*Marker) SetFileData

func (x *Marker) SetFileData(v uint32)

func (*Marker) SetFileEof

func (x *Marker) SetFileEof(v bool)

func (*Marker) SetFilename

func (x *Marker) SetFilename(v string)

func (*Marker) SetImageEof

func (x *Marker) SetImageEof(v bool)

func (*Marker) SetSeq

func (x *Marker) SetSeq(v uint64)

func (*Marker) String

func (x *Marker) String() string

func (*Marker) WhichBody

func (x *Marker) WhichBody() case_Marker_Body

type Marker_FileData

type Marker_FileData struct {
	// Incoming data for the current file
	FileData uint32 `protobuf:"varint,3,opt,name=file_data,json=fileData,proto3,oneof"`
}

type Marker_FileEof

type Marker_FileEof struct {
	// EOF of current file is reached
	FileEof bool `protobuf:"varint,4,opt,name=file_eof,json=fileEof,proto3,oneof"`
}

type Marker_Filename

type Marker_Filename struct {
	// Denotes the filename of the next upcoming markers (denoted as current file)
	Filename string `protobuf:"bytes,2,opt,name=filename,proto3,oneof"`
}

type Marker_ImageEof

type Marker_ImageEof struct {
	// EOF of image is reached
	ImageEof bool `protobuf:"varint,5,opt,name=image_eof,json=imageEof,proto3,oneof"`
}

type Marker_builder

type Marker_builder struct {
	Seq uint64
	// Fields of oneof Body:
	// Denotes the filename of the next upcoming markers (denoted as current file)
	Filename *string
	// Incoming data for the current file
	FileData *uint32
	// EOF of current file is reached
	FileEof *bool
	// EOF of image is reached
	ImageEof *bool
	// contains filtered or unexported fields
}

func (Marker_builder) Build

func (b0 Marker_builder) Build() *Marker

Source Files

  • img_streamer.pb.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL