types

package
v0.0.0-...-1360432 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 11 Imported by: 207

Documentation

Index

Constants

View Source
const (
	PACKET_STAT = Packet_PACKET_STAT
	PACKET_REQ  = Packet_PACKET_REQ
	PACKET_DATA = Packet_PACKET_DATA
	PACKET_FIN  = Packet_PACKET_FIN
	PACKET_ERR  = Packet_PACKET_ERR
)

Variables

View Source
var (
	Packet_PacketType_name = map[int32]string{
		0: "PACKET_STAT",
		1: "PACKET_REQ",
		2: "PACKET_DATA",
		3: "PACKET_FIN",
		4: "PACKET_ERR",
	}
	Packet_PacketType_value = map[string]int32{
		"PACKET_STAT": 0,
		"PACKET_REQ":  1,
		"PACKET_DATA": 2,
		"PACKET_FIN":  3,
		"PACKET_ERR":  4,
	}
)

Enum value maps for Packet_PacketType.

View Source
var File_github_com_tonistiigi_fsutil_types_stat_proto protoreflect.FileDescriptor
View Source
var File_github_com_tonistiigi_fsutil_types_wire_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Packet

type Packet struct {
	Type Packet_PacketType `protobuf:"varint,1,opt,name=type,proto3,enum=fsutil.types.Packet_PacketType" json:"type,omitempty"`
	Stat *Stat             `protobuf:"bytes,2,opt,name=stat,proto3" json:"stat,omitempty"`
	ID   uint32            `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"`
	Data []byte            `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func PacketFromVTPool

func PacketFromVTPool() *Packet

func (*Packet) CloneMessageVT

func (m *Packet) CloneMessageVT() proto.Message

func (*Packet) CloneVT

func (m *Packet) CloneVT() *Packet

func (*Packet) Descriptor deprecated

func (*Packet) Descriptor() ([]byte, []int)

Deprecated: Use Packet.ProtoReflect.Descriptor instead.

func (*Packet) EqualMessageVT

func (this *Packet) EqualMessageVT(thatMsg proto.Message) bool

func (*Packet) EqualVT

func (this *Packet) EqualVT(that *Packet) bool

func (*Packet) GetData

func (x *Packet) GetData() []byte

func (*Packet) GetID

func (x *Packet) GetID() uint32

func (*Packet) GetStat

func (x *Packet) GetStat() *Stat

func (*Packet) GetType

func (x *Packet) GetType() Packet_PacketType

func (*Packet) Marshal

func (p *Packet) Marshal() ([]byte, error)

func (*Packet) MarshalToSizedBufferVT

func (m *Packet) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Packet) MarshalToSizedBufferVTStrict

func (m *Packet) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)

func (*Packet) MarshalToVT

func (m *Packet) MarshalToVT(dAtA []byte) (int, error)

func (*Packet) MarshalToVTStrict

func (m *Packet) MarshalToVTStrict(dAtA []byte) (int, error)

func (*Packet) MarshalVT

func (m *Packet) MarshalVT() (dAtA []byte, err error)

func (*Packet) MarshalVTStrict

func (m *Packet) MarshalVTStrict() (dAtA []byte, err error)

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) ProtoReflect

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

func (*Packet) Reset

func (x *Packet) Reset()

func (*Packet) ResetVT

func (m *Packet) ResetVT()

func (*Packet) ReturnToVTPool

func (m *Packet) ReturnToVTPool()

func (*Packet) Size

func (p *Packet) Size() int

func (*Packet) SizeVT

func (m *Packet) SizeVT() (n int)

func (*Packet) String

func (x *Packet) String() string

func (*Packet) Unmarshal

func (p *Packet) Unmarshal(dAtA []byte) error

func (*Packet) UnmarshalVT

func (m *Packet) UnmarshalVT(dAtA []byte) error

func (*Packet) UnmarshalVTUnsafe

func (m *Packet) UnmarshalVTUnsafe(dAtA []byte) error

type Packet_PacketType

type Packet_PacketType int32
const (
	Packet_PACKET_STAT Packet_PacketType = 0
	Packet_PACKET_REQ  Packet_PacketType = 1
	Packet_PACKET_DATA Packet_PacketType = 2
	Packet_PACKET_FIN  Packet_PacketType = 3
	Packet_PACKET_ERR  Packet_PacketType = 4
)

func (Packet_PacketType) Descriptor

func (Packet_PacketType) Enum

func (Packet_PacketType) EnumDescriptor deprecated

func (Packet_PacketType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Packet_PacketType.Descriptor instead.

func (Packet_PacketType) Number

func (Packet_PacketType) String

func (x Packet_PacketType) String() string

func (Packet_PacketType) Type

type Stat

type Stat struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Mode    uint32 `protobuf:"varint,2,opt,name=mode,proto3" json:"mode,omitempty"`
	Uid     uint32 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"`
	Gid     uint32 `protobuf:"varint,4,opt,name=gid,proto3" json:"gid,omitempty"`
	Size    int64  `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	ModTime int64  `protobuf:"varint,6,opt,name=modTime,proto3" json:"modTime,omitempty"`
	// int32 typeflag = 7;
	Linkname string            `protobuf:"bytes,7,opt,name=linkname,proto3" json:"linkname,omitempty"`
	Devmajor int64             `protobuf:"varint,8,opt,name=devmajor,proto3" json:"devmajor,omitempty"`
	Devminor int64             `protobuf:"varint,9,opt,name=devminor,proto3" json:"devminor,omitempty"`
	Xattrs   map[string][]byte `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Stat) Clone

func (s *Stat) Clone() *Stat

func (*Stat) CloneMessageVT

func (m *Stat) CloneMessageVT() proto.Message

func (*Stat) CloneVT

func (m *Stat) CloneVT() *Stat

func (*Stat) Descriptor deprecated

func (*Stat) Descriptor() ([]byte, []int)

Deprecated: Use Stat.ProtoReflect.Descriptor instead.

func (*Stat) EqualMessageVT

func (this *Stat) EqualMessageVT(thatMsg proto.Message) bool

func (*Stat) EqualVT

func (this *Stat) EqualVT(that *Stat) bool

func (*Stat) GetDevmajor

func (x *Stat) GetDevmajor() int64

func (*Stat) GetDevminor

func (x *Stat) GetDevminor() int64

func (*Stat) GetGid

func (x *Stat) GetGid() uint32

func (*Stat) GetLinkname

func (x *Stat) GetLinkname() string

func (*Stat) GetModTime

func (x *Stat) GetModTime() int64

func (*Stat) GetMode

func (x *Stat) GetMode() uint32

func (*Stat) GetPath

func (x *Stat) GetPath() string

func (*Stat) GetSize

func (x *Stat) GetSize() int64

func (*Stat) GetUid

func (x *Stat) GetUid() uint32

func (*Stat) GetXattrs

func (x *Stat) GetXattrs() map[string][]byte

func (*Stat) IsDir

func (s *Stat) IsDir() bool

func (*Stat) Marshal

func (s *Stat) Marshal() ([]byte, error)

func (*Stat) MarshalToSizedBufferVT

func (m *Stat) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Stat) MarshalToSizedBufferVTStrict

func (m *Stat) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)

func (*Stat) MarshalToVT

func (m *Stat) MarshalToVT(dAtA []byte) (int, error)

func (*Stat) MarshalToVTStrict

func (m *Stat) MarshalToVTStrict(dAtA []byte) (int, error)

func (*Stat) MarshalVT

func (m *Stat) MarshalVT() (dAtA []byte, err error)

func (*Stat) MarshalVTStrict

func (m *Stat) MarshalVTStrict() (dAtA []byte, err error)

func (*Stat) ProtoMessage

func (*Stat) ProtoMessage()

func (*Stat) ProtoReflect

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

func (*Stat) Reset

func (x *Stat) Reset()

func (*Stat) SizeVT

func (m *Stat) SizeVT() (n int)

func (*Stat) String

func (x *Stat) String() string

func (*Stat) Unmarshal

func (s *Stat) Unmarshal(dAtA []byte) error

func (*Stat) UnmarshalVT

func (m *Stat) UnmarshalVT(dAtA []byte) error

func (*Stat) UnmarshalVTUnsafe

func (m *Stat) UnmarshalVTUnsafe(dAtA []byte) error

Jump to

Keyboard shortcuts

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