proto

package
v0.0.0-...-636a2a8 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package proto provides protocol buffer message for hashfs.

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Digest.ProtoReflect.Descriptor instead.

func (*Digest) GetHash

func (x *Digest) GetHash() string

func (*Digest) GetSizeBytes

func (x *Digest) GetSizeBytes() int64

func (*Digest) ProtoMessage

func (*Digest) ProtoMessage()

func (*Digest) ProtoReflect

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

func (*Digest) Reset

func (x *Digest) Reset()

func (*Digest) String

func (x *Digest) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetAction

func (x *Entry) GetAction() *Digest

func (*Entry) GetCmdHash

func (x *Entry) GetCmdHash() []byte

func (*Entry) GetDigest

func (x *Entry) GetDigest() *Digest

func (*Entry) GetId

func (x *Entry) GetId() *FileID

func (*Entry) GetIsExecutable

func (x *Entry) GetIsExecutable() bool

func (*Entry) GetName

func (x *Entry) GetName() string

func (*Entry) GetTarget

func (x *Entry) GetTarget() string

func (*Entry) GetUpdatedTime

func (x *Entry) GetUpdatedTime() int64

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

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

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FileID.ProtoReflect.Descriptor instead.

func (*FileID) GetModTime

func (x *FileID) GetModTime() int64

func (*FileID) ProtoMessage

func (*FileID) ProtoMessage()

func (*FileID) ProtoReflect

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

func (*FileID) Reset

func (x *FileID) Reset()

func (*FileID) String

func (x *FileID) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetEntries

func (x *State) GetEntries() []*Entry

func (*State) GetLastChecked

func (x *State) GetLastChecked() string

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

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

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

Jump to

Keyboard shortcuts

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