- Copy envd source from e2b-dev/infra, internalize shared dependencies
into envd/internal/shared/ (keys, filesystem, id, smap, utils)
- Switch from gRPC to Connect RPC for all envd services
- Update module paths to git.omukk.dev/wrenn/{sandbox,sandbox/envd}
- Add proto specs (process, filesystem) with buf-based code generation
- Implement full envd: process exec, filesystem ops, port forwarding,
cgroup management, MMDS integration, and HTTP API
- Update main module dependencies (firecracker SDK, pgx, goose, etc.)
- Remove placeholder .gitkeep files replaced by real implementations
1445 lines
44 KiB
Go
1445 lines
44 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: filesystem/filesystem.proto
|
|
|
|
package filesystem
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type FileType int32
|
|
|
|
const (
|
|
FileType_FILE_TYPE_UNSPECIFIED FileType = 0
|
|
FileType_FILE_TYPE_FILE FileType = 1
|
|
FileType_FILE_TYPE_DIRECTORY FileType = 2
|
|
FileType_FILE_TYPE_SYMLINK FileType = 3
|
|
)
|
|
|
|
// Enum value maps for FileType.
|
|
var (
|
|
FileType_name = map[int32]string{
|
|
0: "FILE_TYPE_UNSPECIFIED",
|
|
1: "FILE_TYPE_FILE",
|
|
2: "FILE_TYPE_DIRECTORY",
|
|
3: "FILE_TYPE_SYMLINK",
|
|
}
|
|
FileType_value = map[string]int32{
|
|
"FILE_TYPE_UNSPECIFIED": 0,
|
|
"FILE_TYPE_FILE": 1,
|
|
"FILE_TYPE_DIRECTORY": 2,
|
|
"FILE_TYPE_SYMLINK": 3,
|
|
}
|
|
)
|
|
|
|
func (x FileType) Enum() *FileType {
|
|
p := new(FileType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x FileType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (FileType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_filesystem_filesystem_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (FileType) Type() protoreflect.EnumType {
|
|
return &file_filesystem_filesystem_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x FileType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use FileType.Descriptor instead.
|
|
func (FileType) EnumDescriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type EventType int32
|
|
|
|
const (
|
|
EventType_EVENT_TYPE_UNSPECIFIED EventType = 0
|
|
EventType_EVENT_TYPE_CREATE EventType = 1
|
|
EventType_EVENT_TYPE_WRITE EventType = 2
|
|
EventType_EVENT_TYPE_REMOVE EventType = 3
|
|
EventType_EVENT_TYPE_RENAME EventType = 4
|
|
EventType_EVENT_TYPE_CHMOD EventType = 5
|
|
)
|
|
|
|
// Enum value maps for EventType.
|
|
var (
|
|
EventType_name = map[int32]string{
|
|
0: "EVENT_TYPE_UNSPECIFIED",
|
|
1: "EVENT_TYPE_CREATE",
|
|
2: "EVENT_TYPE_WRITE",
|
|
3: "EVENT_TYPE_REMOVE",
|
|
4: "EVENT_TYPE_RENAME",
|
|
5: "EVENT_TYPE_CHMOD",
|
|
}
|
|
EventType_value = map[string]int32{
|
|
"EVENT_TYPE_UNSPECIFIED": 0,
|
|
"EVENT_TYPE_CREATE": 1,
|
|
"EVENT_TYPE_WRITE": 2,
|
|
"EVENT_TYPE_REMOVE": 3,
|
|
"EVENT_TYPE_RENAME": 4,
|
|
"EVENT_TYPE_CHMOD": 5,
|
|
}
|
|
)
|
|
|
|
func (x EventType) Enum() *EventType {
|
|
p := new(EventType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x EventType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (EventType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_filesystem_filesystem_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (EventType) Type() protoreflect.EnumType {
|
|
return &file_filesystem_filesystem_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x EventType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use EventType.Descriptor instead.
|
|
func (EventType) EnumDescriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type MoveRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
|
|
Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MoveRequest) Reset() {
|
|
*x = MoveRequest{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MoveRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MoveRequest) ProtoMessage() {}
|
|
|
|
func (x *MoveRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MoveRequest.ProtoReflect.Descriptor instead.
|
|
func (*MoveRequest) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *MoveRequest) GetSource() string {
|
|
if x != nil {
|
|
return x.Source
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MoveRequest) GetDestination() string {
|
|
if x != nil {
|
|
return x.Destination
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type MoveResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Entry *EntryInfo `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MoveResponse) Reset() {
|
|
*x = MoveResponse{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MoveResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MoveResponse) ProtoMessage() {}
|
|
|
|
func (x *MoveResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MoveResponse.ProtoReflect.Descriptor instead.
|
|
func (*MoveResponse) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *MoveResponse) GetEntry() *EntryInfo {
|
|
if x != nil {
|
|
return x.Entry
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MakeDirRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MakeDirRequest) Reset() {
|
|
*x = MakeDirRequest{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MakeDirRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MakeDirRequest) ProtoMessage() {}
|
|
|
|
func (x *MakeDirRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MakeDirRequest.ProtoReflect.Descriptor instead.
|
|
func (*MakeDirRequest) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *MakeDirRequest) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type MakeDirResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Entry *EntryInfo `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MakeDirResponse) Reset() {
|
|
*x = MakeDirResponse{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MakeDirResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MakeDirResponse) ProtoMessage() {}
|
|
|
|
func (x *MakeDirResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MakeDirResponse.ProtoReflect.Descriptor instead.
|
|
func (*MakeDirResponse) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *MakeDirResponse) GetEntry() *EntryInfo {
|
|
if x != nil {
|
|
return x.Entry
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RemoveRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveRequest) Reset() {
|
|
*x = RemoveRequest{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveRequest) ProtoMessage() {}
|
|
|
|
func (x *RemoveRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.
|
|
func (*RemoveRequest) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *RemoveRequest) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RemoveResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveResponse) Reset() {
|
|
*x = RemoveResponse{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveResponse) ProtoMessage() {}
|
|
|
|
func (x *RemoveResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.
|
|
func (*RemoveResponse) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type StatRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatRequest) Reset() {
|
|
*x = StatRequest{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatRequest) ProtoMessage() {}
|
|
|
|
func (x *StatRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StatRequest.ProtoReflect.Descriptor instead.
|
|
func (*StatRequest) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *StatRequest) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type StatResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Entry *EntryInfo `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatResponse) Reset() {
|
|
*x = StatResponse{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatResponse) ProtoMessage() {}
|
|
|
|
func (x *StatResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StatResponse.ProtoReflect.Descriptor instead.
|
|
func (*StatResponse) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *StatResponse) GetEntry() *EntryInfo {
|
|
if x != nil {
|
|
return x.Entry
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type EntryInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type FileType `protobuf:"varint,2,opt,name=type,proto3,enum=filesystem.FileType" json:"type,omitempty"`
|
|
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
|
|
Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
|
|
Mode uint32 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
Permissions string `protobuf:"bytes,6,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
|
Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
|
|
Group string `protobuf:"bytes,8,opt,name=group,proto3" json:"group,omitempty"`
|
|
ModifiedTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=modified_time,json=modifiedTime,proto3" json:"modified_time,omitempty"`
|
|
// If the entry is a symlink, this field contains the target of the symlink.
|
|
SymlinkTarget *string `protobuf:"bytes,10,opt,name=symlink_target,json=symlinkTarget,proto3,oneof" json:"symlink_target,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EntryInfo) Reset() {
|
|
*x = EntryInfo{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EntryInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EntryInfo) ProtoMessage() {}
|
|
|
|
func (x *EntryInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EntryInfo.ProtoReflect.Descriptor instead.
|
|
func (*EntryInfo) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *EntryInfo) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EntryInfo) GetType() FileType {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return FileType_FILE_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *EntryInfo) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EntryInfo) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EntryInfo) GetMode() uint32 {
|
|
if x != nil {
|
|
return x.Mode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EntryInfo) GetPermissions() string {
|
|
if x != nil {
|
|
return x.Permissions
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EntryInfo) GetOwner() string {
|
|
if x != nil {
|
|
return x.Owner
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EntryInfo) GetGroup() string {
|
|
if x != nil {
|
|
return x.Group
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EntryInfo) GetModifiedTime() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ModifiedTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *EntryInfo) GetSymlinkTarget() string {
|
|
if x != nil && x.SymlinkTarget != nil {
|
|
return *x.SymlinkTarget
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListDirRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
Depth uint32 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListDirRequest) Reset() {
|
|
*x = ListDirRequest{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListDirRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListDirRequest) ProtoMessage() {}
|
|
|
|
func (x *ListDirRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListDirRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListDirRequest) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *ListDirRequest) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListDirRequest) GetDepth() uint32 {
|
|
if x != nil {
|
|
return x.Depth
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListDirResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Entries []*EntryInfo `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListDirResponse) Reset() {
|
|
*x = ListDirResponse{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListDirResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListDirResponse) ProtoMessage() {}
|
|
|
|
func (x *ListDirResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListDirResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListDirResponse) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *ListDirResponse) GetEntries() []*EntryInfo {
|
|
if x != nil {
|
|
return x.Entries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type WatchDirRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
Recursive bool `protobuf:"varint,2,opt,name=recursive,proto3" json:"recursive,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WatchDirRequest) Reset() {
|
|
*x = WatchDirRequest{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WatchDirRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatchDirRequest) ProtoMessage() {}
|
|
|
|
func (x *WatchDirRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WatchDirRequest.ProtoReflect.Descriptor instead.
|
|
func (*WatchDirRequest) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *WatchDirRequest) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WatchDirRequest) GetRecursive() bool {
|
|
if x != nil {
|
|
return x.Recursive
|
|
}
|
|
return false
|
|
}
|
|
|
|
type FilesystemEvent struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type EventType `protobuf:"varint,2,opt,name=type,proto3,enum=filesystem.EventType" json:"type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilesystemEvent) Reset() {
|
|
*x = FilesystemEvent{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilesystemEvent) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilesystemEvent) ProtoMessage() {}
|
|
|
|
func (x *FilesystemEvent) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FilesystemEvent.ProtoReflect.Descriptor instead.
|
|
func (*FilesystemEvent) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *FilesystemEvent) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FilesystemEvent) GetType() EventType {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return EventType_EVENT_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
type WatchDirResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Event:
|
|
//
|
|
// *WatchDirResponse_Start
|
|
// *WatchDirResponse_Filesystem
|
|
// *WatchDirResponse_Keepalive
|
|
Event isWatchDirResponse_Event `protobuf_oneof:"event"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WatchDirResponse) Reset() {
|
|
*x = WatchDirResponse{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WatchDirResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatchDirResponse) ProtoMessage() {}
|
|
|
|
func (x *WatchDirResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WatchDirResponse.ProtoReflect.Descriptor instead.
|
|
func (*WatchDirResponse) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *WatchDirResponse) GetEvent() isWatchDirResponse_Event {
|
|
if x != nil {
|
|
return x.Event
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *WatchDirResponse) GetStart() *WatchDirResponse_StartEvent {
|
|
if x != nil {
|
|
if x, ok := x.Event.(*WatchDirResponse_Start); ok {
|
|
return x.Start
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *WatchDirResponse) GetFilesystem() *FilesystemEvent {
|
|
if x != nil {
|
|
if x, ok := x.Event.(*WatchDirResponse_Filesystem); ok {
|
|
return x.Filesystem
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *WatchDirResponse) GetKeepalive() *WatchDirResponse_KeepAlive {
|
|
if x != nil {
|
|
if x, ok := x.Event.(*WatchDirResponse_Keepalive); ok {
|
|
return x.Keepalive
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isWatchDirResponse_Event interface {
|
|
isWatchDirResponse_Event()
|
|
}
|
|
|
|
type WatchDirResponse_Start struct {
|
|
Start *WatchDirResponse_StartEvent `protobuf:"bytes,1,opt,name=start,proto3,oneof"`
|
|
}
|
|
|
|
type WatchDirResponse_Filesystem struct {
|
|
Filesystem *FilesystemEvent `protobuf:"bytes,2,opt,name=filesystem,proto3,oneof"`
|
|
}
|
|
|
|
type WatchDirResponse_Keepalive struct {
|
|
Keepalive *WatchDirResponse_KeepAlive `protobuf:"bytes,3,opt,name=keepalive,proto3,oneof"`
|
|
}
|
|
|
|
func (*WatchDirResponse_Start) isWatchDirResponse_Event() {}
|
|
|
|
func (*WatchDirResponse_Filesystem) isWatchDirResponse_Event() {}
|
|
|
|
func (*WatchDirResponse_Keepalive) isWatchDirResponse_Event() {}
|
|
|
|
type CreateWatcherRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
Recursive bool `protobuf:"varint,2,opt,name=recursive,proto3" json:"recursive,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateWatcherRequest) Reset() {
|
|
*x = CreateWatcherRequest{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateWatcherRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateWatcherRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateWatcherRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateWatcherRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateWatcherRequest) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *CreateWatcherRequest) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateWatcherRequest) GetRecursive() bool {
|
|
if x != nil {
|
|
return x.Recursive
|
|
}
|
|
return false
|
|
}
|
|
|
|
type CreateWatcherResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WatcherId string `protobuf:"bytes,1,opt,name=watcher_id,json=watcherId,proto3" json:"watcher_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateWatcherResponse) Reset() {
|
|
*x = CreateWatcherResponse{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateWatcherResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateWatcherResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateWatcherResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateWatcherResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateWatcherResponse) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *CreateWatcherResponse) GetWatcherId() string {
|
|
if x != nil {
|
|
return x.WatcherId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetWatcherEventsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WatcherId string `protobuf:"bytes,1,opt,name=watcher_id,json=watcherId,proto3" json:"watcher_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetWatcherEventsRequest) Reset() {
|
|
*x = GetWatcherEventsRequest{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetWatcherEventsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetWatcherEventsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetWatcherEventsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetWatcherEventsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetWatcherEventsRequest) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *GetWatcherEventsRequest) GetWatcherId() string {
|
|
if x != nil {
|
|
return x.WatcherId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetWatcherEventsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Events []*FilesystemEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetWatcherEventsResponse) Reset() {
|
|
*x = GetWatcherEventsResponse{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetWatcherEventsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetWatcherEventsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetWatcherEventsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetWatcherEventsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetWatcherEventsResponse) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *GetWatcherEventsResponse) GetEvents() []*FilesystemEvent {
|
|
if x != nil {
|
|
return x.Events
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RemoveWatcherRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WatcherId string `protobuf:"bytes,1,opt,name=watcher_id,json=watcherId,proto3" json:"watcher_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveWatcherRequest) Reset() {
|
|
*x = RemoveWatcherRequest{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveWatcherRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveWatcherRequest) ProtoMessage() {}
|
|
|
|
func (x *RemoveWatcherRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RemoveWatcherRequest.ProtoReflect.Descriptor instead.
|
|
func (*RemoveWatcherRequest) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *RemoveWatcherRequest) GetWatcherId() string {
|
|
if x != nil {
|
|
return x.WatcherId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RemoveWatcherResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveWatcherResponse) Reset() {
|
|
*x = RemoveWatcherResponse{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveWatcherResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveWatcherResponse) ProtoMessage() {}
|
|
|
|
func (x *RemoveWatcherResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RemoveWatcherResponse.ProtoReflect.Descriptor instead.
|
|
func (*RemoveWatcherResponse) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
type WatchDirResponse_StartEvent struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WatchDirResponse_StartEvent) Reset() {
|
|
*x = WatchDirResponse_StartEvent{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WatchDirResponse_StartEvent) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatchDirResponse_StartEvent) ProtoMessage() {}
|
|
|
|
func (x *WatchDirResponse_StartEvent) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WatchDirResponse_StartEvent.ProtoReflect.Descriptor instead.
|
|
func (*WatchDirResponse_StartEvent) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{13, 0}
|
|
}
|
|
|
|
type WatchDirResponse_KeepAlive struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WatchDirResponse_KeepAlive) Reset() {
|
|
*x = WatchDirResponse_KeepAlive{}
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WatchDirResponse_KeepAlive) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatchDirResponse_KeepAlive) ProtoMessage() {}
|
|
|
|
func (x *WatchDirResponse_KeepAlive) ProtoReflect() protoreflect.Message {
|
|
mi := &file_filesystem_filesystem_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WatchDirResponse_KeepAlive.ProtoReflect.Descriptor instead.
|
|
func (*WatchDirResponse_KeepAlive) Descriptor() ([]byte, []int) {
|
|
return file_filesystem_filesystem_proto_rawDescGZIP(), []int{13, 1}
|
|
}
|
|
|
|
var File_filesystem_filesystem_proto protoreflect.FileDescriptor
|
|
|
|
const file_filesystem_filesystem_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1bfilesystem/filesystem.proto\x12\n" +
|
|
"filesystem\x1a\x1fgoogle/protobuf/timestamp.proto\"G\n" +
|
|
"\vMoveRequest\x12\x16\n" +
|
|
"\x06source\x18\x01 \x01(\tR\x06source\x12 \n" +
|
|
"\vdestination\x18\x02 \x01(\tR\vdestination\";\n" +
|
|
"\fMoveResponse\x12+\n" +
|
|
"\x05entry\x18\x01 \x01(\v2\x15.filesystem.EntryInfoR\x05entry\"$\n" +
|
|
"\x0eMakeDirRequest\x12\x12\n" +
|
|
"\x04path\x18\x01 \x01(\tR\x04path\">\n" +
|
|
"\x0fMakeDirResponse\x12+\n" +
|
|
"\x05entry\x18\x01 \x01(\v2\x15.filesystem.EntryInfoR\x05entry\"#\n" +
|
|
"\rRemoveRequest\x12\x12\n" +
|
|
"\x04path\x18\x01 \x01(\tR\x04path\"\x10\n" +
|
|
"\x0eRemoveResponse\"!\n" +
|
|
"\vStatRequest\x12\x12\n" +
|
|
"\x04path\x18\x01 \x01(\tR\x04path\";\n" +
|
|
"\fStatResponse\x12+\n" +
|
|
"\x05entry\x18\x01 \x01(\v2\x15.filesystem.EntryInfoR\x05entry\"\xd3\x02\n" +
|
|
"\tEntryInfo\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12(\n" +
|
|
"\x04type\x18\x02 \x01(\x0e2\x14.filesystem.FileTypeR\x04type\x12\x12\n" +
|
|
"\x04path\x18\x03 \x01(\tR\x04path\x12\x12\n" +
|
|
"\x04size\x18\x04 \x01(\x03R\x04size\x12\x12\n" +
|
|
"\x04mode\x18\x05 \x01(\rR\x04mode\x12 \n" +
|
|
"\vpermissions\x18\x06 \x01(\tR\vpermissions\x12\x14\n" +
|
|
"\x05owner\x18\a \x01(\tR\x05owner\x12\x14\n" +
|
|
"\x05group\x18\b \x01(\tR\x05group\x12?\n" +
|
|
"\rmodified_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\fmodifiedTime\x12*\n" +
|
|
"\x0esymlink_target\x18\n" +
|
|
" \x01(\tH\x00R\rsymlinkTarget\x88\x01\x01B\x11\n" +
|
|
"\x0f_symlink_target\":\n" +
|
|
"\x0eListDirRequest\x12\x12\n" +
|
|
"\x04path\x18\x01 \x01(\tR\x04path\x12\x14\n" +
|
|
"\x05depth\x18\x02 \x01(\rR\x05depth\"B\n" +
|
|
"\x0fListDirResponse\x12/\n" +
|
|
"\aentries\x18\x01 \x03(\v2\x15.filesystem.EntryInfoR\aentries\"C\n" +
|
|
"\x0fWatchDirRequest\x12\x12\n" +
|
|
"\x04path\x18\x01 \x01(\tR\x04path\x12\x1c\n" +
|
|
"\trecursive\x18\x02 \x01(\bR\trecursive\"P\n" +
|
|
"\x0fFilesystemEvent\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12)\n" +
|
|
"\x04type\x18\x02 \x01(\x0e2\x15.filesystem.EventTypeR\x04type\"\xfe\x01\n" +
|
|
"\x10WatchDirResponse\x12?\n" +
|
|
"\x05start\x18\x01 \x01(\v2'.filesystem.WatchDirResponse.StartEventH\x00R\x05start\x12=\n" +
|
|
"\n" +
|
|
"filesystem\x18\x02 \x01(\v2\x1b.filesystem.FilesystemEventH\x00R\n" +
|
|
"filesystem\x12F\n" +
|
|
"\tkeepalive\x18\x03 \x01(\v2&.filesystem.WatchDirResponse.KeepAliveH\x00R\tkeepalive\x1a\f\n" +
|
|
"\n" +
|
|
"StartEvent\x1a\v\n" +
|
|
"\tKeepAliveB\a\n" +
|
|
"\x05event\"H\n" +
|
|
"\x14CreateWatcherRequest\x12\x12\n" +
|
|
"\x04path\x18\x01 \x01(\tR\x04path\x12\x1c\n" +
|
|
"\trecursive\x18\x02 \x01(\bR\trecursive\"6\n" +
|
|
"\x15CreateWatcherResponse\x12\x1d\n" +
|
|
"\n" +
|
|
"watcher_id\x18\x01 \x01(\tR\twatcherId\"8\n" +
|
|
"\x17GetWatcherEventsRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"watcher_id\x18\x01 \x01(\tR\twatcherId\"O\n" +
|
|
"\x18GetWatcherEventsResponse\x123\n" +
|
|
"\x06events\x18\x01 \x03(\v2\x1b.filesystem.FilesystemEventR\x06events\"5\n" +
|
|
"\x14RemoveWatcherRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"watcher_id\x18\x01 \x01(\tR\twatcherId\"\x17\n" +
|
|
"\x15RemoveWatcherResponse*i\n" +
|
|
"\bFileType\x12\x19\n" +
|
|
"\x15FILE_TYPE_UNSPECIFIED\x10\x00\x12\x12\n" +
|
|
"\x0eFILE_TYPE_FILE\x10\x01\x12\x17\n" +
|
|
"\x13FILE_TYPE_DIRECTORY\x10\x02\x12\x15\n" +
|
|
"\x11FILE_TYPE_SYMLINK\x10\x03*\x98\x01\n" +
|
|
"\tEventType\x12\x1a\n" +
|
|
"\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x15\n" +
|
|
"\x11EVENT_TYPE_CREATE\x10\x01\x12\x14\n" +
|
|
"\x10EVENT_TYPE_WRITE\x10\x02\x12\x15\n" +
|
|
"\x11EVENT_TYPE_REMOVE\x10\x03\x12\x15\n" +
|
|
"\x11EVENT_TYPE_RENAME\x10\x04\x12\x14\n" +
|
|
"\x10EVENT_TYPE_CHMOD\x10\x052\x9f\x05\n" +
|
|
"\n" +
|
|
"Filesystem\x129\n" +
|
|
"\x04Stat\x12\x17.filesystem.StatRequest\x1a\x18.filesystem.StatResponse\x12B\n" +
|
|
"\aMakeDir\x12\x1a.filesystem.MakeDirRequest\x1a\x1b.filesystem.MakeDirResponse\x129\n" +
|
|
"\x04Move\x12\x17.filesystem.MoveRequest\x1a\x18.filesystem.MoveResponse\x12B\n" +
|
|
"\aListDir\x12\x1a.filesystem.ListDirRequest\x1a\x1b.filesystem.ListDirResponse\x12?\n" +
|
|
"\x06Remove\x12\x19.filesystem.RemoveRequest\x1a\x1a.filesystem.RemoveResponse\x12G\n" +
|
|
"\bWatchDir\x12\x1b.filesystem.WatchDirRequest\x1a\x1c.filesystem.WatchDirResponse0\x01\x12T\n" +
|
|
"\rCreateWatcher\x12 .filesystem.CreateWatcherRequest\x1a!.filesystem.CreateWatcherResponse\x12]\n" +
|
|
"\x10GetWatcherEvents\x12#.filesystem.GetWatcherEventsRequest\x1a$.filesystem.GetWatcherEventsResponse\x12T\n" +
|
|
"\rRemoveWatcher\x12 .filesystem.RemoveWatcherRequest\x1a!.filesystem.RemoveWatcherResponseB\xad\x01\n" +
|
|
"\x0ecom.filesystemB\x0fFilesystemProtoP\x01ZBgit.omukk.dev/wrenn/sandbox/envd/internal/services/spec/filesystem\xa2\x02\x03FXX\xaa\x02\n" +
|
|
"Filesystem\xca\x02\n" +
|
|
"Filesystem\xe2\x02\x16Filesystem\\GPBMetadata\xea\x02\n" +
|
|
"Filesystemb\x06proto3"
|
|
|
|
var (
|
|
file_filesystem_filesystem_proto_rawDescOnce sync.Once
|
|
file_filesystem_filesystem_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_filesystem_filesystem_proto_rawDescGZIP() []byte {
|
|
file_filesystem_filesystem_proto_rawDescOnce.Do(func() {
|
|
file_filesystem_filesystem_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_filesystem_filesystem_proto_rawDesc), len(file_filesystem_filesystem_proto_rawDesc)))
|
|
})
|
|
return file_filesystem_filesystem_proto_rawDescData
|
|
}
|
|
|
|
var file_filesystem_filesystem_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
var file_filesystem_filesystem_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
|
|
var file_filesystem_filesystem_proto_goTypes = []any{
|
|
(FileType)(0), // 0: filesystem.FileType
|
|
(EventType)(0), // 1: filesystem.EventType
|
|
(*MoveRequest)(nil), // 2: filesystem.MoveRequest
|
|
(*MoveResponse)(nil), // 3: filesystem.MoveResponse
|
|
(*MakeDirRequest)(nil), // 4: filesystem.MakeDirRequest
|
|
(*MakeDirResponse)(nil), // 5: filesystem.MakeDirResponse
|
|
(*RemoveRequest)(nil), // 6: filesystem.RemoveRequest
|
|
(*RemoveResponse)(nil), // 7: filesystem.RemoveResponse
|
|
(*StatRequest)(nil), // 8: filesystem.StatRequest
|
|
(*StatResponse)(nil), // 9: filesystem.StatResponse
|
|
(*EntryInfo)(nil), // 10: filesystem.EntryInfo
|
|
(*ListDirRequest)(nil), // 11: filesystem.ListDirRequest
|
|
(*ListDirResponse)(nil), // 12: filesystem.ListDirResponse
|
|
(*WatchDirRequest)(nil), // 13: filesystem.WatchDirRequest
|
|
(*FilesystemEvent)(nil), // 14: filesystem.FilesystemEvent
|
|
(*WatchDirResponse)(nil), // 15: filesystem.WatchDirResponse
|
|
(*CreateWatcherRequest)(nil), // 16: filesystem.CreateWatcherRequest
|
|
(*CreateWatcherResponse)(nil), // 17: filesystem.CreateWatcherResponse
|
|
(*GetWatcherEventsRequest)(nil), // 18: filesystem.GetWatcherEventsRequest
|
|
(*GetWatcherEventsResponse)(nil), // 19: filesystem.GetWatcherEventsResponse
|
|
(*RemoveWatcherRequest)(nil), // 20: filesystem.RemoveWatcherRequest
|
|
(*RemoveWatcherResponse)(nil), // 21: filesystem.RemoveWatcherResponse
|
|
(*WatchDirResponse_StartEvent)(nil), // 22: filesystem.WatchDirResponse.StartEvent
|
|
(*WatchDirResponse_KeepAlive)(nil), // 23: filesystem.WatchDirResponse.KeepAlive
|
|
(*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp
|
|
}
|
|
var file_filesystem_filesystem_proto_depIdxs = []int32{
|
|
10, // 0: filesystem.MoveResponse.entry:type_name -> filesystem.EntryInfo
|
|
10, // 1: filesystem.MakeDirResponse.entry:type_name -> filesystem.EntryInfo
|
|
10, // 2: filesystem.StatResponse.entry:type_name -> filesystem.EntryInfo
|
|
0, // 3: filesystem.EntryInfo.type:type_name -> filesystem.FileType
|
|
24, // 4: filesystem.EntryInfo.modified_time:type_name -> google.protobuf.Timestamp
|
|
10, // 5: filesystem.ListDirResponse.entries:type_name -> filesystem.EntryInfo
|
|
1, // 6: filesystem.FilesystemEvent.type:type_name -> filesystem.EventType
|
|
22, // 7: filesystem.WatchDirResponse.start:type_name -> filesystem.WatchDirResponse.StartEvent
|
|
14, // 8: filesystem.WatchDirResponse.filesystem:type_name -> filesystem.FilesystemEvent
|
|
23, // 9: filesystem.WatchDirResponse.keepalive:type_name -> filesystem.WatchDirResponse.KeepAlive
|
|
14, // 10: filesystem.GetWatcherEventsResponse.events:type_name -> filesystem.FilesystemEvent
|
|
8, // 11: filesystem.Filesystem.Stat:input_type -> filesystem.StatRequest
|
|
4, // 12: filesystem.Filesystem.MakeDir:input_type -> filesystem.MakeDirRequest
|
|
2, // 13: filesystem.Filesystem.Move:input_type -> filesystem.MoveRequest
|
|
11, // 14: filesystem.Filesystem.ListDir:input_type -> filesystem.ListDirRequest
|
|
6, // 15: filesystem.Filesystem.Remove:input_type -> filesystem.RemoveRequest
|
|
13, // 16: filesystem.Filesystem.WatchDir:input_type -> filesystem.WatchDirRequest
|
|
16, // 17: filesystem.Filesystem.CreateWatcher:input_type -> filesystem.CreateWatcherRequest
|
|
18, // 18: filesystem.Filesystem.GetWatcherEvents:input_type -> filesystem.GetWatcherEventsRequest
|
|
20, // 19: filesystem.Filesystem.RemoveWatcher:input_type -> filesystem.RemoveWatcherRequest
|
|
9, // 20: filesystem.Filesystem.Stat:output_type -> filesystem.StatResponse
|
|
5, // 21: filesystem.Filesystem.MakeDir:output_type -> filesystem.MakeDirResponse
|
|
3, // 22: filesystem.Filesystem.Move:output_type -> filesystem.MoveResponse
|
|
12, // 23: filesystem.Filesystem.ListDir:output_type -> filesystem.ListDirResponse
|
|
7, // 24: filesystem.Filesystem.Remove:output_type -> filesystem.RemoveResponse
|
|
15, // 25: filesystem.Filesystem.WatchDir:output_type -> filesystem.WatchDirResponse
|
|
17, // 26: filesystem.Filesystem.CreateWatcher:output_type -> filesystem.CreateWatcherResponse
|
|
19, // 27: filesystem.Filesystem.GetWatcherEvents:output_type -> filesystem.GetWatcherEventsResponse
|
|
21, // 28: filesystem.Filesystem.RemoveWatcher:output_type -> filesystem.RemoveWatcherResponse
|
|
20, // [20:29] is the sub-list for method output_type
|
|
11, // [11:20] is the sub-list for method input_type
|
|
11, // [11:11] is the sub-list for extension type_name
|
|
11, // [11:11] is the sub-list for extension extendee
|
|
0, // [0:11] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_filesystem_filesystem_proto_init() }
|
|
func file_filesystem_filesystem_proto_init() {
|
|
if File_filesystem_filesystem_proto != nil {
|
|
return
|
|
}
|
|
file_filesystem_filesystem_proto_msgTypes[8].OneofWrappers = []any{}
|
|
file_filesystem_filesystem_proto_msgTypes[13].OneofWrappers = []any{
|
|
(*WatchDirResponse_Start)(nil),
|
|
(*WatchDirResponse_Filesystem)(nil),
|
|
(*WatchDirResponse_Keepalive)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_filesystem_filesystem_proto_rawDesc), len(file_filesystem_filesystem_proto_rawDesc)),
|
|
NumEnums: 2,
|
|
NumMessages: 22,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_filesystem_filesystem_proto_goTypes,
|
|
DependencyIndexes: file_filesystem_filesystem_proto_depIdxs,
|
|
EnumInfos: file_filesystem_filesystem_proto_enumTypes,
|
|
MessageInfos: file_filesystem_filesystem_proto_msgTypes,
|
|
}.Build()
|
|
File_filesystem_filesystem_proto = out.File
|
|
file_filesystem_filesystem_proto_goTypes = nil
|
|
file_filesystem_filesystem_proto_depIdxs = nil
|
|
}
|