Documentation
¶
Overview ¶
Package proto provides protocol buffer message for hashfs.
Index ¶
- Variables
- type Digest
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetAction() *Digest
- func (x *Entry) GetCmdHash() []byte
- func (x *Entry) GetDigest() *Digest
- func (x *Entry) GetId() *FileID
- func (x *Entry) GetIsExecutable() bool
- func (x *Entry) GetName() string
- func (x *Entry) GetTarget() string
- func (x *Entry) GetUpdatedTime() int64
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (x *Entry) String() string
- type FileID
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var File_state_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Digest ¶
type Digest struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` SizeBytes int64 `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"` // contains filtered or unexported fields }
func (*Digest) Descriptor
deprecated
func (*Digest) GetSizeBytes ¶
func (*Digest) ProtoMessage ¶
func (*Digest) ProtoMessage()
func (*Digest) ProtoReflect ¶
func (x *Digest) ProtoReflect() protoreflect.Message
type Entry ¶
type Entry struct { Id *FileID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Digest *Digest `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"` IsExecutable bool `protobuf:"varint,4,opt,name=is_executable,json=isExecutable,proto3" json:"is_executable,omitempty"` // target is symlink target. Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` // action, cmd that generated this file. CmdHash []byte `protobuf:"bytes,6,opt,name=cmd_hash,json=cmdHash,proto3" json:"cmd_hash,omitempty"` Action *Digest `protobuf:"bytes,7,opt,name=action,proto3" json:"action,omitempty"` UpdatedTime int64 `protobuf:"varint,8,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"` // unix nano sec. // contains filtered or unexported fields }
func (*Entry) Descriptor
deprecated
func (*Entry) GetCmdHash ¶
func (*Entry) GetIsExecutable ¶
func (*Entry) GetUpdatedTime ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
type FileID ¶
type FileID struct { ModTime int64 `protobuf:"varint,1,opt,name=mod_time,json=modTime,proto3" json:"mod_time,omitempty"` // unix nano sec. // contains filtered or unexported fields }
func (*FileID) Descriptor
deprecated
func (*FileID) GetModTime ¶
func (*FileID) ProtoMessage ¶
func (*FileID) ProtoMessage()
func (*FileID) ProtoReflect ¶
func (x *FileID) ProtoReflect() protoreflect.Message
type State ¶
type State struct { Entries []*Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` // last checked token for fsmonitor (e.g. watchman) LastChecked string `protobuf:"bytes,2,opt,name=last_checked,json=lastChecked,proto3" json:"last_checked,omitempty"` // contains filtered or unexported fields }
func (*State) Descriptor
deprecated
func (*State) GetEntries ¶
func (*State) GetLastChecked ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) ProtoReflect ¶
func (x *State) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.