filespb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package filespb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	DuplicateAction_name = map[int32]string{
		0: "Fail",
		1: "AutoRename",
		2: "Replace",
	}
	DuplicateAction_value = map[string]int32{
		"Fail":       0,
		"AutoRename": 1,
		"Replace":    2,
	}
)

Enum value maps for DuplicateAction.

View Source
var (
	Action_name = map[int32]string{
		0:  "NoAction",
		1:  "Create",
		2:  "Delete",
		3:  "Move",
		4:  "MoveEdit",
		5:  "Rename",
		6:  "RenameEdit",
		7:  "Edit",
		8:  "Read",
		9:  "Share",
		10: "UnShare",
		11: "UpdateMeta",
	}
	Action_value = map[string]int32{
		"NoAction":   0,
		"Create":     1,
		"Delete":     2,
		"Move":       3,
		"MoveEdit":   4,
		"Rename":     5,
		"RenameEdit": 6,
		"Edit":       7,
		"Read":       8,
		"Share":      9,
		"UnShare":    10,
		"UpdateMeta": 11,
	}
)

Enum value maps for Action.

View Source
var (
	Type_name = map[int32]string{
		0: "Unknown",
		1: "File",
		2: "Directory",
	}
	Type_value = map[string]int32{
		"Unknown":   0,
		"File":      1,
		"Directory": 2,
	}
)

Enum value maps for Type.

View Source
var (
	Rights_name = map[int32]string{
		0:  "AccessDenied",
		1:  "AccessRead",
		2:  "AccessUpdate",
		4:  "AccessDelete",
		8:  "AccessShare",
		15: "FullAccess",
	}
	Rights_value = map[string]int32{
		"AccessDenied": 0,
		"AccessRead":   1,
		"AccessUpdate": 2,
		"AccessDelete": 4,
		"AccessShare":  8,
		"FullAccess":   15,
	}
)

Enum value maps for Rights.

View Source
var (
	ShareType_name = map[int32]string{
		0: "Restricted",
		1: "PublicLink",
		2: "Internal",
	}
	ShareType_value = map[string]int32{
		"Restricted": 0,
		"PublicLink": 1,
		"Internal":   2,
	}
)

Enum value maps for ShareType.

View Source
var File_files_proto protoreflect.FileDescriptor

Functions

func RegisterFilesHandler

func RegisterFilesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterFilesHandler registers the http handlers for service Files to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterFilesHandlerClient

func RegisterFilesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FilesClient) error

RegisterFilesHandlerClient registers the http handlers for service Files to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FilesClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FilesClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FilesClient" to call the correct interceptors.

func RegisterFilesHandlerFromEndpoint

func RegisterFilesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterFilesHandlerFromEndpoint is same as RegisterFilesHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterFilesHandlerServer

func RegisterFilesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FilesServer) error

RegisterFilesHandlerServer registers the http handlers for service Files to "mux". UnaryRPC :call FilesServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFilesHandlerFromEndpoint instead.

func RegisterFilesServer

func RegisterFilesServer(s grpc.ServiceRegistrar, srv FilesServer)

Types

type Access

type Access struct {
	Uuid     string    `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Type     ShareType `protobuf:"varint,2,opt,name=type,proto3,enum=ShareType" json:"type,omitempty"`
	User     string    `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	NodePath string    `protobuf:"bytes,4,opt,name=node_path,json=nodePath,proto3" json:"node_path,omitempty"`
	Rights   Rights    `protobuf:"varint,5,opt,name=rights,proto3,enum=Rights" json:"rights,omitempty"`
	// contains filtered or unexported fields
}

func (*Access) Descriptor deprecated

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

Deprecated: Use Access.ProtoReflect.Descriptor instead.

func (*Access) GetNodePath

func (x *Access) GetNodePath() string

func (*Access) GetRights

func (x *Access) GetRights() Rights

func (*Access) GetType

func (x *Access) GetType() ShareType

func (*Access) GetUser

func (x *Access) GetUser() string

func (*Access) GetUuid

func (x *Access) GetUuid() string

func (*Access) ProtoMessage

func (*Access) ProtoMessage()

func (*Access) ProtoReflect

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

func (*Access) Reset

func (x *Access) Reset()

func (*Access) String

func (x *Access) String() string

type Action

type Action int32
const (
	Action_NoAction   Action = 0
	Action_Create     Action = 1
	Action_Delete     Action = 2
	Action_Move       Action = 3
	Action_MoveEdit   Action = 4
	Action_Rename     Action = 5
	Action_RenameEdit Action = 6
	Action_Edit       Action = 7
	Action_Read       Action = 8
	Action_Share      Action = 9
	Action_UnShare    Action = 10
	Action_UpdateMeta Action = 11
)

func (Action) Descriptor

func (Action) Descriptor() protoreflect.EnumDescriptor

func (Action) Enum

func (x Action) Enum() *Action

func (Action) EnumDescriptor deprecated

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

Deprecated: Use Action.Descriptor instead.

func (Action) Number

func (x Action) Number() protoreflect.EnumNumber

func (Action) String

func (x Action) String() string

func (Action) Type

func (Action) Type() protoreflect.EnumType

type ClusterNode

type ClusterNode struct {
	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Certificate    string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"`
	Capacity       uint64 `protobuf:"varint,3,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Usage          uint64 `protobuf:"varint,4,opt,name=usage,proto3" json:"usage,omitempty"`
	ServiceAddress string `protobuf:"bytes,5,opt,name=service_address,json=serviceAddress,proto3" json:"service_address,omitempty"`
	GatewayAddress string `protobuf:"bytes,6,opt,name=gateway_address,json=gatewayAddress,proto3" json:"gateway_address,omitempty"`
	Syncing        bool   `protobuf:"varint,7,opt,name=syncing,proto3" json:"syncing,omitempty"`
	AccessKey      string `protobuf:"bytes,8,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
	Secret         string `protobuf:"bytes,9,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterNode) Descriptor deprecated

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

Deprecated: Use ClusterNode.ProtoReflect.Descriptor instead.

func (*ClusterNode) GetAccessKey

func (x *ClusterNode) GetAccessKey() string

func (*ClusterNode) GetCapacity

func (x *ClusterNode) GetCapacity() uint64

func (*ClusterNode) GetCertificate

func (x *ClusterNode) GetCertificate() string

func (*ClusterNode) GetGatewayAddress

func (x *ClusterNode) GetGatewayAddress() string

func (*ClusterNode) GetId

func (x *ClusterNode) GetId() string

func (*ClusterNode) GetSecret

func (x *ClusterNode) GetSecret() string

func (*ClusterNode) GetServiceAddress

func (x *ClusterNode) GetServiceAddress() string

func (*ClusterNode) GetSyncing

func (x *ClusterNode) GetSyncing() bool

func (*ClusterNode) GetUsage

func (x *ClusterNode) GetUsage() uint64

func (*ClusterNode) ProtoMessage

func (*ClusterNode) ProtoMessage()

func (*ClusterNode) ProtoReflect

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

func (*ClusterNode) Reset

func (x *ClusterNode) Reset()

func (*ClusterNode) String

func (x *ClusterNode) String() string

type ContentPart

type ContentPart struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Number uint32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentPart) Descriptor deprecated

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

Deprecated: Use ContentPart.ProtoReflect.Descriptor instead.

func (*ContentPart) GetId

func (x *ContentPart) GetId() string

func (*ContentPart) GetNumber

func (x *ContentPart) GetNumber() uint32

func (*ContentPart) ProtoMessage

func (*ContentPart) ProtoMessage()

func (*ContentPart) ProtoReflect

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

func (*ContentPart) Reset

func (x *ContentPart) Reset()

func (*ContentPart) String

func (x *ContentPart) String() string

type CopyOptions

type CopyOptions struct {
	DuplicateAction DuplicateAction `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CopyOptions) Descriptor deprecated

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

Deprecated: Use CopyOptions.ProtoReflect.Descriptor instead.

func (*CopyOptions) GetDuplicateAction

func (x *CopyOptions) GetDuplicateAction() DuplicateAction

func (*CopyOptions) ProtoMessage

func (*CopyOptions) ProtoMessage()

func (*CopyOptions) ProtoReflect

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

func (*CopyOptions) Reset

func (x *CopyOptions) Reset()

func (*CopyOptions) String

func (x *CopyOptions) String() string

type CopyRequest

type CopyRequest struct {
	Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	Dir   string   `protobuf:"bytes,2,opt,name=dir,proto3" json:"dir,omitempty"`
	// contains filtered or unexported fields
}

func (*CopyRequest) Descriptor deprecated

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

Deprecated: Use CopyRequest.ProtoReflect.Descriptor instead.

func (*CopyRequest) GetDir

func (x *CopyRequest) GetDir() string

func (*CopyRequest) GetPaths

func (x *CopyRequest) GetPaths() []string

func (*CopyRequest) ProtoMessage

func (*CopyRequest) ProtoMessage()

func (*CopyRequest) ProtoReflect

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

func (*CopyRequest) Reset

func (x *CopyRequest) Reset()

func (*CopyRequest) String

func (x *CopyRequest) String() string

type CopyResponse

type CopyResponse struct {
	// contains filtered or unexported fields
}

func (*CopyResponse) Descriptor deprecated

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

Deprecated: Use CopyResponse.ProtoReflect.Descriptor instead.

func (*CopyResponse) ProtoMessage

func (*CopyResponse) ProtoMessage()

func (*CopyResponse) ProtoReflect

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

func (*CopyResponse) Reset

func (x *CopyResponse) Reset()

func (*CopyResponse) String

func (x *CopyResponse) String() string

type CreateOptions

type CreateOptions struct {
	Override bool `protobuf:"varint,1,opt,name=override,proto3" json:"override,omitempty"`
	Rename   bool `protobuf:"varint,2,opt,name=rename,proto3" json:"rename,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOptions) Descriptor deprecated

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

Deprecated: Use CreateOptions.ProtoReflect.Descriptor instead.

func (*CreateOptions) GetOverride

func (x *CreateOptions) GetOverride() bool

func (*CreateOptions) GetRename

func (x *CreateOptions) GetRename() bool

func (*CreateOptions) ProtoMessage

func (*CreateOptions) ProtoMessage()

func (*CreateOptions) ProtoReflect

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

func (*CreateOptions) Reset

func (x *CreateOptions) Reset()

func (*CreateOptions) String

func (x *CreateOptions) String() string

type CreateRequest

type CreateRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Type Type   `protobuf:"varint,2,opt,name=type,proto3,enum=Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetPath

func (x *CreateRequest) GetPath() string

func (*CreateRequest) GetType

func (x *CreateRequest) GetType() Type

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DeleteRequest

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

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetPath

func (x *DeleteRequest) GetPath() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type DownloadURLRequest

type DownloadURLRequest struct {
	NodePath string `protobuf:"bytes,1,opt,name=node_path,json=nodePath,proto3" json:"node_path,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadURLRequest) Descriptor deprecated

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

Deprecated: Use DownloadURLRequest.ProtoReflect.Descriptor instead.

func (*DownloadURLRequest) GetNodePath

func (x *DownloadURLRequest) GetNodePath() string

func (*DownloadURLRequest) ProtoMessage

func (*DownloadURLRequest) ProtoMessage()

func (*DownloadURLRequest) ProtoReflect

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

func (*DownloadURLRequest) Reset

func (x *DownloadURLRequest) Reset()

func (*DownloadURLRequest) String

func (x *DownloadURLRequest) String() string

type DownloadURLResponse

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

func (*DownloadURLResponse) Descriptor deprecated

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

Deprecated: Use DownloadURLResponse.ProtoReflect.Descriptor instead.

func (*DownloadURLResponse) GetUrl

func (x *DownloadURLResponse) GetUrl() string

func (*DownloadURLResponse) ProtoMessage

func (*DownloadURLResponse) ProtoMessage()

func (*DownloadURLResponse) ProtoReflect

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

func (*DownloadURLResponse) Reset

func (x *DownloadURLResponse) Reset()

func (*DownloadURLResponse) String

func (x *DownloadURLResponse) String() string

type DuplicateAction

type DuplicateAction int32
const (
	DuplicateAction_Fail       DuplicateAction = 0
	DuplicateAction_AutoRename DuplicateAction = 1
	DuplicateAction_Replace    DuplicateAction = 2
)

func (DuplicateAction) Descriptor

func (DuplicateAction) Enum

func (x DuplicateAction) Enum() *DuplicateAction

func (DuplicateAction) EnumDescriptor deprecated

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

Deprecated: Use DuplicateAction.Descriptor instead.

func (DuplicateAction) Number

func (DuplicateAction) String

func (x DuplicateAction) String() string

func (DuplicateAction) Type

type EncryptOption

type EncryptOption struct {
	Key     []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Alg     string `protobuf:"bytes,2,opt,name=alg,proto3" json:"alg,omitempty"`
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptOption) Descriptor deprecated

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

Deprecated: Use EncryptOption.ProtoReflect.Descriptor instead.

func (*EncryptOption) GetAlg

func (x *EncryptOption) GetAlg() string

func (*EncryptOption) GetKey

func (x *EncryptOption) GetKey() []byte

func (*EncryptOption) GetVersion

func (x *EncryptOption) GetVersion() string

func (*EncryptOption) ProtoMessage

func (*EncryptOption) ProtoMessage()

func (*EncryptOption) ProtoReflect

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

func (*EncryptOption) Reset

func (x *EncryptOption) Reset()

func (*EncryptOption) String

func (x *EncryptOption) String() string

type Event

type Event struct {
	Seq    int64  `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
	Action Action `protobuf:"varint,2,opt,name=action,proto3,enum=Action" json:"action,omitempty"`
	Path   string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Stats  *Stats `protobuf:"bytes,4,opt,name=stats,proto3" json:"stats,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAction

func (x *Event) GetAction() Action

func (*Event) GetPath

func (x *Event) GetPath() string

func (*Event) GetSeq

func (x *Event) GetSeq() int64

func (*Event) GetStats

func (x *Event) GetStats() *Stats

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventHandler

type EventHandler interface {
	OnEvent(event *Event)
}

func EventHandlerFunc

func EventHandlerFunc(f func(*Event)) EventHandler

type FilesClient

FilesClient is the client API for Files service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewFilesClient

func NewFilesClient(cc grpc.ClientConnInterface) FilesClient

type FilesServer

FilesServer is the server API for Files service. All implementations must embed UnimplementedFilesServer for forward compatibility

type Files_GetListStreamClient

type Files_GetListStreamClient interface {
	Recv() (*Stats, error)
	grpc.ClientStream
}

type Files_GetListStreamServer

type Files_GetListStreamServer interface {
	Send(*Stats) error
	grpc.ServerStream
}

type Files_StatsSessionClient

type Files_StatsSessionClient interface {
	Send(*StatsRequest) error
	Recv() (*Stats, error)
	grpc.ClientStream
}

type Files_StatsSessionServer

type Files_StatsSessionServer interface {
	Send(*Stats) error
	Recv() (*StatsRequest, error)
	grpc.ServerStream
}

type Files_SyncClient

type Files_SyncClient interface {
	Recv() (*Event, error)
	grpc.ClientStream
}

type Files_SyncServer

type Files_SyncServer interface {
	Send(*Event) error
	grpc.ServerStream
}

type GetListStreamRequest

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

func (*GetListStreamRequest) Descriptor deprecated

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

Deprecated: Use GetListStreamRequest.ProtoReflect.Descriptor instead.

func (*GetListStreamRequest) GetDir

func (x *GetListStreamRequest) GetDir() string

func (*GetListStreamRequest) ProtoMessage

func (*GetListStreamRequest) ProtoMessage()

func (*GetListStreamRequest) ProtoReflect

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

func (*GetListStreamRequest) Reset

func (x *GetListStreamRequest) Reset()

func (*GetListStreamRequest) String

func (x *GetListStreamRequest) String() string

type GetMetaRequest

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

func (*GetMetaRequest) Descriptor deprecated

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

Deprecated: Use GetMetaRequest.ProtoReflect.Descriptor instead.

func (*GetMetaRequest) GetPath

func (x *GetMetaRequest) GetPath() string

func (*GetMetaRequest) ProtoMessage

func (*GetMetaRequest) ProtoMessage()

func (*GetMetaRequest) ProtoReflect

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

func (*GetMetaRequest) Reset

func (x *GetMetaRequest) Reset()

func (*GetMetaRequest) String

func (x *GetMetaRequest) String() string

type GetMetaResponse

type GetMetaResponse struct {
	Meta []*Meta `protobuf:"bytes,1,rep,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetaResponse) Descriptor deprecated

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

Deprecated: Use GetMetaResponse.ProtoReflect.Descriptor instead.

func (*GetMetaResponse) GetMeta

func (x *GetMetaResponse) GetMeta() []*Meta

func (*GetMetaResponse) ProtoMessage

func (*GetMetaResponse) ProtoMessage()

func (*GetMetaResponse) ProtoReflect

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

func (*GetMetaResponse) Reset

func (x *GetMetaResponse) Reset()

func (*GetMetaResponse) String

func (x *GetMetaResponse) String() string

type ListOptions

type ListOptions struct {
	Offset int32  `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Count  uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOptions) Descriptor deprecated

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

Deprecated: Use ListOptions.ProtoReflect.Descriptor instead.

func (*ListOptions) GetCount

func (x *ListOptions) GetCount() uint32

func (*ListOptions) GetOffset

func (x *ListOptions) GetOffset() int32

func (*ListOptions) ProtoMessage

func (*ListOptions) ProtoMessage()

func (*ListOptions) ProtoReflect

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

func (*ListOptions) Reset

func (x *ListOptions) Reset()

func (*ListOptions) String

func (x *ListOptions) String() string

type ListRequest

type ListRequest struct {
	Dir    string `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"`
	Offset int32  `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Count  uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetCount

func (x *ListRequest) GetCount() uint32

func (*ListRequest) GetDir

func (x *ListRequest) GetDir() string

func (*ListRequest) GetOffset

func (x *ListRequest) GetOffset() int32

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {
	List      []*Stats `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Page      uint32   `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PageCount uint32   `protobuf:"varint,3,opt,name=page_count,json=pageCount,proto3" json:"page_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetList

func (x *ListResponse) GetList() []*Stats

func (*ListResponse) GetPage

func (x *ListResponse) GetPage() uint32

func (*ListResponse) GetPageCount

func (x *ListResponse) GetPageCount() uint32

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type ListResult

type ListResult struct {
	List       []*Stats `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	PageNumber uint32   `protobuf:"varint,2,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"`
	PageCount  uint32   `protobuf:"varint,3,opt,name=page_count,json=pageCount,proto3" json:"page_count,omitempty"`
	Total      uint32   `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResult) Descriptor deprecated

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

Deprecated: Use ListResult.ProtoReflect.Descriptor instead.

func (*ListResult) GetList

func (x *ListResult) GetList() []*Stats

func (*ListResult) GetPageCount

func (x *ListResult) GetPageCount() uint32

func (*ListResult) GetPageNumber

func (x *ListResult) GetPageNumber() uint32

func (*ListResult) GetTotal

func (x *ListResult) GetTotal() uint32

func (*ListResult) ProtoMessage

func (*ListResult) ProtoMessage()

func (*ListResult) ProtoReflect

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

func (*ListResult) Reset

func (x *ListResult) Reset()

func (*ListResult) String

func (x *ListResult) String() string

type Meta

type Meta struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Meta) Descriptor deprecated

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

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetName

func (x *Meta) GetName() string

func (*Meta) GetValue

func (x *Meta) GetValue() string

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

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

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

type MoveOptions

type MoveOptions struct {
	DuplicateAction DuplicateAction `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MoveOptions) Descriptor deprecated

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

Deprecated: Use MoveOptions.ProtoReflect.Descriptor instead.

func (*MoveOptions) GetDuplicateAction

func (x *MoveOptions) GetDuplicateAction() DuplicateAction

func (*MoveOptions) ProtoMessage

func (*MoveOptions) ProtoMessage()

func (*MoveOptions) ProtoReflect

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

func (*MoveOptions) Reset

func (x *MoveOptions) Reset()

func (*MoveOptions) String

func (x *MoveOptions) String() string

type MoveRequest

type MoveRequest struct {
	Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	Dir   string   `protobuf:"bytes,2,opt,name=dir,proto3" json:"dir,omitempty"`
	// contains filtered or unexported fields
}

func (*MoveRequest) Descriptor deprecated

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

Deprecated: Use MoveRequest.ProtoReflect.Descriptor instead.

func (*MoveRequest) GetDir

func (x *MoveRequest) GetDir() string

func (*MoveRequest) GetPaths

func (x *MoveRequest) GetPaths() []string

func (*MoveRequest) ProtoMessage

func (*MoveRequest) ProtoMessage()

func (*MoveRequest) ProtoReflect

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

func (*MoveRequest) Reset

func (x *MoveRequest) Reset()

func (*MoveRequest) String

func (x *MoveRequest) String() string

type MoveResponse

type MoveResponse struct {
	// contains filtered or unexported fields
}

func (*MoveResponse) Descriptor deprecated

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

Deprecated: Use MoveResponse.ProtoReflect.Descriptor instead.

func (*MoveResponse) ProtoMessage

func (*MoveResponse) ProtoMessage()

func (*MoveResponse) ProtoReflect

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

func (*MoveResponse) Reset

func (x *MoveResponse) Reset()

func (*MoveResponse) String

func (x *MoveResponse) String() string

type MultipartCreateOptions

type MultipartCreateOptions struct {
	Override bool `protobuf:"varint,1,opt,name=override,proto3" json:"override,omitempty"`
	Rename   bool `protobuf:"varint,2,opt,name=rename,proto3" json:"rename,omitempty"`
	// contains filtered or unexported fields
}

func (*MultipartCreateOptions) Descriptor deprecated

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

Deprecated: Use MultipartCreateOptions.ProtoReflect.Descriptor instead.

func (*MultipartCreateOptions) GetOverride

func (x *MultipartCreateOptions) GetOverride() bool

func (*MultipartCreateOptions) GetRename

func (x *MultipartCreateOptions) GetRename() bool

func (*MultipartCreateOptions) ProtoMessage

func (*MultipartCreateOptions) ProtoMessage()

func (*MultipartCreateOptions) ProtoReflect

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

func (*MultipartCreateOptions) Reset

func (x *MultipartCreateOptions) Reset()

func (*MultipartCreateOptions) String

func (x *MultipartCreateOptions) String() string

type MultipartCreateRequest

type MultipartCreateRequest struct {
	NodePath string                  `protobuf:"bytes,1,opt,name=node_path,json=nodePath,proto3" json:"node_path,omitempty"`
	Options  *MultipartCreateOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*MultipartCreateRequest) Descriptor deprecated

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

Deprecated: Use MultipartCreateRequest.ProtoReflect.Descriptor instead.

func (*MultipartCreateRequest) GetNodePath

func (x *MultipartCreateRequest) GetNodePath() string

func (*MultipartCreateRequest) GetOptions

func (*MultipartCreateRequest) ProtoMessage

func (*MultipartCreateRequest) ProtoMessage()

func (*MultipartCreateRequest) ProtoReflect

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

func (*MultipartCreateRequest) Reset

func (x *MultipartCreateRequest) Reset()

func (*MultipartCreateRequest) String

func (x *MultipartCreateRequest) String() string

type MultipartCreateResponse

type MultipartCreateResponse struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*MultipartCreateResponse) Descriptor deprecated

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

Deprecated: Use MultipartCreateResponse.ProtoReflect.Descriptor instead.

func (*MultipartCreateResponse) GetId

func (x *MultipartCreateResponse) GetId() string

func (*MultipartCreateResponse) GetName

func (x *MultipartCreateResponse) GetName() string

func (*MultipartCreateResponse) ProtoMessage

func (*MultipartCreateResponse) ProtoMessage()

func (*MultipartCreateResponse) ProtoReflect

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

func (*MultipartCreateResponse) Reset

func (x *MultipartCreateResponse) Reset()

func (*MultipartCreateResponse) String

func (x *MultipartCreateResponse) String() string

type MultipartFinishRequest

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

func (*MultipartFinishRequest) Descriptor deprecated

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

Deprecated: Use MultipartFinishRequest.ProtoReflect.Descriptor instead.

func (*MultipartFinishRequest) GetId

func (x *MultipartFinishRequest) GetId() string

func (*MultipartFinishRequest) ProtoMessage

func (*MultipartFinishRequest) ProtoMessage()

func (*MultipartFinishRequest) ProtoReflect

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

func (*MultipartFinishRequest) Reset

func (x *MultipartFinishRequest) Reset()

func (*MultipartFinishRequest) String

func (x *MultipartFinishRequest) String() string

type MultipartFinishResponse

type MultipartFinishResponse struct {
	// contains filtered or unexported fields
}

func (*MultipartFinishResponse) Descriptor deprecated

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

Deprecated: Use MultipartFinishResponse.ProtoReflect.Descriptor instead.

func (*MultipartFinishResponse) ProtoMessage

func (*MultipartFinishResponse) ProtoMessage()

func (*MultipartFinishResponse) ProtoReflect

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

func (*MultipartFinishResponse) Reset

func (x *MultipartFinishResponse) Reset()

func (*MultipartFinishResponse) String

func (x *MultipartFinishResponse) String() string

type MultipartPutOptions

type MultipartPutOptions struct {
	Size       uint64         `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Md5        string         `protobuf:"bytes,2,opt,name=md5,proto3" json:"md5,omitempty"`
	PartNumber uint32         `protobuf:"varint,3,opt,name=part_number,json=partNumber,proto3" json:"part_number,omitempty"`
	TotalParts uint32         `protobuf:"varint,4,opt,name=total_parts,json=totalParts,proto3" json:"total_parts,omitempty"`
	Encryption *EncryptOption `protobuf:"bytes,5,opt,name=encryption,proto3" json:"encryption,omitempty"`
	// contains filtered or unexported fields
}

func (*MultipartPutOptions) Descriptor deprecated

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

Deprecated: Use MultipartPutOptions.ProtoReflect.Descriptor instead.

func (*MultipartPutOptions) GetEncryption

func (x *MultipartPutOptions) GetEncryption() *EncryptOption

func (*MultipartPutOptions) GetMd5

func (x *MultipartPutOptions) GetMd5() string

func (*MultipartPutOptions) GetPartNumber

func (x *MultipartPutOptions) GetPartNumber() uint32

func (*MultipartPutOptions) GetSize

func (x *MultipartPutOptions) GetSize() uint64

func (*MultipartPutOptions) GetTotalParts

func (x *MultipartPutOptions) GetTotalParts() uint32

func (*MultipartPutOptions) ProtoMessage

func (*MultipartPutOptions) ProtoMessage()

func (*MultipartPutOptions) ProtoReflect

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

func (*MultipartPutOptions) Reset

func (x *MultipartPutOptions) Reset()

func (*MultipartPutOptions) String

func (x *MultipartPutOptions) String() string

type MultipartPutRequest

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

func (*MultipartPutRequest) Descriptor deprecated

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

Deprecated: Use MultipartPutRequest.ProtoReflect.Descriptor instead.

func (*MultipartPutRequest) GetId

func (x *MultipartPutRequest) GetId() string

func (*MultipartPutRequest) ProtoMessage

func (*MultipartPutRequest) ProtoMessage()

func (*MultipartPutRequest) ProtoReflect

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

func (*MultipartPutRequest) Reset

func (x *MultipartPutRequest) Reset()

func (*MultipartPutRequest) String

func (x *MultipartPutRequest) String() string

type MultipartPutResponse

type MultipartPutResponse struct {
	// contains filtered or unexported fields
}

func (*MultipartPutResponse) Descriptor deprecated

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

Deprecated: Use MultipartPutResponse.ProtoReflect.Descriptor instead.

func (*MultipartPutResponse) ProtoMessage

func (*MultipartPutResponse) ProtoMessage()

func (*MultipartPutResponse) ProtoReflect

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

func (*MultipartPutResponse) Reset

func (x *MultipartPutResponse) Reset()

func (*MultipartPutResponse) String

func (x *MultipartPutResponse) String() string

type PutOptions

type PutOptions struct {
	Create     bool           `protobuf:"varint,1,opt,name=create,proto3" json:"create,omitempty"`
	Size       uint64         `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Md5        string         `protobuf:"bytes,3,opt,name=md5,proto3" json:"md5,omitempty"`
	Encryption *EncryptOption `protobuf:"bytes,4,opt,name=encryption,proto3" json:"encryption,omitempty"`
	// contains filtered or unexported fields
}

func (*PutOptions) Descriptor deprecated

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

Deprecated: Use PutOptions.ProtoReflect.Descriptor instead.

func (*PutOptions) GetCreate

func (x *PutOptions) GetCreate() bool

func (*PutOptions) GetEncryption

func (x *PutOptions) GetEncryption() *EncryptOption

func (*PutOptions) GetMd5

func (x *PutOptions) GetMd5() string

func (*PutOptions) GetSize

func (x *PutOptions) GetSize() uint64

func (*PutOptions) ProtoMessage

func (*PutOptions) ProtoMessage()

func (*PutOptions) ProtoReflect

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

func (*PutOptions) Reset

func (x *PutOptions) Reset()

func (*PutOptions) String

func (x *PutOptions) String() string

type ReadOptions

type ReadOptions struct {
	Range      bool           `protobuf:"varint,1,opt,name=range,proto3" json:"range,omitempty"`
	Offset     uint64         `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Length     int64          `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"`
	Encryption *EncryptOption `protobuf:"bytes,4,opt,name=encryption,proto3" json:"encryption,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadOptions) Descriptor deprecated

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

Deprecated: Use ReadOptions.ProtoReflect.Descriptor instead.

func (*ReadOptions) GetEncryption

func (x *ReadOptions) GetEncryption() *EncryptOption

func (*ReadOptions) GetLength

func (x *ReadOptions) GetLength() int64

func (*ReadOptions) GetOffset

func (x *ReadOptions) GetOffset() uint64

func (*ReadOptions) GetRange

func (x *ReadOptions) GetRange() bool

func (*ReadOptions) ProtoMessage

func (*ReadOptions) ProtoMessage()

func (*ReadOptions) ProtoReflect

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

func (*ReadOptions) Reset

func (x *ReadOptions) Reset()

func (*ReadOptions) String

func (x *ReadOptions) String() string

type RenameRequest

type RenameRequest struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	NewName string `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
	// contains filtered or unexported fields
}

func (*RenameRequest) Descriptor deprecated

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

Deprecated: Use RenameRequest.ProtoReflect.Descriptor instead.

func (*RenameRequest) GetNewName

func (x *RenameRequest) GetNewName() string

func (*RenameRequest) GetPath

func (x *RenameRequest) GetPath() string

func (*RenameRequest) ProtoMessage

func (*RenameRequest) ProtoMessage()

func (*RenameRequest) ProtoReflect

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

func (*RenameRequest) Reset

func (x *RenameRequest) Reset()

func (*RenameRequest) String

func (x *RenameRequest) String() string

type RenameResponse

type RenameResponse struct {
	// contains filtered or unexported fields
}

func (*RenameResponse) Descriptor deprecated

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

Deprecated: Use RenameResponse.ProtoReflect.Descriptor instead.

func (*RenameResponse) ProtoMessage

func (*RenameResponse) ProtoMessage()

func (*RenameResponse) ProtoReflect

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

func (*RenameResponse) Reset

func (x *RenameResponse) Reset()

func (*RenameResponse) String

func (x *RenameResponse) String() string

type Rights

type Rights int32
const (
	Rights_AccessDenied Rights = 0
	Rights_AccessRead   Rights = 1
	Rights_AccessUpdate Rights = 2
	Rights_AccessDelete Rights = 4
	Rights_AccessShare  Rights = 8
	Rights_FullAccess   Rights = 15
)

func (Rights) Descriptor

func (Rights) Descriptor() protoreflect.EnumDescriptor

func (Rights) Enum

func (x Rights) Enum() *Rights

func (Rights) EnumDescriptor deprecated

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

Deprecated: Use Rights.Descriptor instead.

func (Rights) Number

func (x Rights) Number() protoreflect.EnumNumber

func (Rights) String

func (x Rights) String() string

func (Rights) Type

func (Rights) Type() protoreflect.EnumType

type SetMetaRequest

type SetMetaRequest struct {
	Path string  `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Meta []*Meta `protobuf:"bytes,2,rep,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMetaRequest) Descriptor deprecated

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

Deprecated: Use SetMetaRequest.ProtoReflect.Descriptor instead.

func (*SetMetaRequest) GetMeta

func (x *SetMetaRequest) GetMeta() []*Meta

func (*SetMetaRequest) GetPath

func (x *SetMetaRequest) GetPath() string

func (*SetMetaRequest) ProtoMessage

func (*SetMetaRequest) ProtoMessage()

func (*SetMetaRequest) ProtoReflect

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

func (*SetMetaRequest) Reset

func (x *SetMetaRequest) Reset()

func (*SetMetaRequest) String

func (x *SetMetaRequest) String() string

type SetMetaResponse

type SetMetaResponse struct {
	// contains filtered or unexported fields
}

func (*SetMetaResponse) Descriptor deprecated

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

Deprecated: Use SetMetaResponse.ProtoReflect.Descriptor instead.

func (*SetMetaResponse) ProtoMessage

func (*SetMetaResponse) ProtoMessage()

func (*SetMetaResponse) ProtoReflect

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

func (*SetMetaResponse) Reset

func (x *SetMetaResponse) Reset()

func (*SetMetaResponse) String

func (x *SetMetaResponse) String() string

type ShareOptions

type ShareOptions struct {
	MaxDownload int32  `protobuf:"varint,1,opt,name=max_download,json=maxDownload,proto3" json:"max_download,omitempty"`
	Expire      int64  `protobuf:"varint,2,opt,name=expire,proto3" json:"expire,omitempty"`
	Password    string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*ShareOptions) Descriptor deprecated

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

Deprecated: Use ShareOptions.ProtoReflect.Descriptor instead.

func (*ShareOptions) GetExpire

func (x *ShareOptions) GetExpire() int64

func (*ShareOptions) GetMaxDownload

func (x *ShareOptions) GetMaxDownload() int32

func (*ShareOptions) GetPassword

func (x *ShareOptions) GetPassword() string

func (*ShareOptions) ProtoMessage

func (*ShareOptions) ProtoMessage()

func (*ShareOptions) ProtoReflect

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

func (*ShareOptions) Reset

func (x *ShareOptions) Reset()

func (*ShareOptions) String

func (x *ShareOptions) String() string

type ShareType

type ShareType int32
const (
	ShareType_Restricted ShareType = 0
	ShareType_PublicLink ShareType = 1
	ShareType_Internal   ShareType = 2
)

func (ShareType) Descriptor

func (ShareType) Descriptor() protoreflect.EnumDescriptor

func (ShareType) Enum

func (x ShareType) Enum() *ShareType

func (ShareType) EnumDescriptor deprecated

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

Deprecated: Use ShareType.Descriptor instead.

func (ShareType) Number

func (x ShareType) Number() protoreflect.EnumNumber

func (ShareType) String

func (x ShareType) String() string

func (ShareType) Type

type Stats

type Stats struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type       Type   `protobuf:"varint,2,opt,name=type,proto3,enum=Type" json:"type,omitempty"`
	Name       string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Parent     string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
	Size       int64  `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	CreateTime int64  `protobuf:"varint,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	EditTime   int64  `protobuf:"varint,7,opt,name=edit_time,json=editTime,proto3" json:"edit_time,omitempty"`
	AccessTime int64  `protobuf:"varint,8,opt,name=access_time,json=accessTime,proto3" json:"access_time,omitempty"`
	Hash       string `protobuf:"bytes,9,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*Stats) Descriptor deprecated

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

Deprecated: Use Stats.ProtoReflect.Descriptor instead.

func (*Stats) GetAccessTime

func (x *Stats) GetAccessTime() int64

func (*Stats) GetCreateTime

func (x *Stats) GetCreateTime() int64

func (*Stats) GetEditTime

func (x *Stats) GetEditTime() int64

func (*Stats) GetHash

func (x *Stats) GetHash() string

func (*Stats) GetId

func (x *Stats) GetId() string

func (*Stats) GetName

func (x *Stats) GetName() string

func (*Stats) GetParent

func (x *Stats) GetParent() string

func (*Stats) GetSize

func (x *Stats) GetSize() int64

func (*Stats) GetType

func (x *Stats) GetType() Type

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) ProtoReflect

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

func (*Stats) Reset

func (x *Stats) Reset()

func (*Stats) String

func (x *Stats) String() string

type StatsRequest

type StatsRequest struct {
	Path     string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	WithHash bool   `protobuf:"varint,2,opt,name=with_hash,json=withHash,proto3" json:"with_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*StatsRequest) Descriptor deprecated

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

Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead.

func (*StatsRequest) GetPath

func (x *StatsRequest) GetPath() string

func (*StatsRequest) GetWithHash

func (x *StatsRequest) GetWithHash() bool

func (*StatsRequest) ProtoMessage

func (*StatsRequest) ProtoMessage()

func (*StatsRequest) ProtoReflect

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

func (*StatsRequest) Reset

func (x *StatsRequest) Reset()

func (*StatsRequest) String

func (x *StatsRequest) String() string

type StatsResponse

type StatsResponse struct {
	Stats *Stats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"`
	// contains filtered or unexported fields
}

func (*StatsResponse) Descriptor deprecated

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

Deprecated: Use StatsResponse.ProtoReflect.Descriptor instead.

func (*StatsResponse) GetStats

func (x *StatsResponse) GetStats() *Stats

func (*StatsResponse) ProtoMessage

func (*StatsResponse) ProtoMessage()

func (*StatsResponse) ProtoReflect

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

func (*StatsResponse) Reset

func (x *StatsResponse) Reset()

func (*StatsResponse) String

func (x *StatsResponse) String() string

type SyncEvent

type SyncEvent struct {
	Seq   int64  `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
	From  string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To    string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Event *Event `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncEvent) Descriptor deprecated

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

Deprecated: Use SyncEvent.ProtoReflect.Descriptor instead.

func (*SyncEvent) GetEvent

func (x *SyncEvent) GetEvent() *Event

func (*SyncEvent) GetFrom

func (x *SyncEvent) GetFrom() string

func (*SyncEvent) GetSeq

func (x *SyncEvent) GetSeq() int64

func (*SyncEvent) GetTo

func (x *SyncEvent) GetTo() string

func (*SyncEvent) ProtoMessage

func (*SyncEvent) ProtoMessage()

func (*SyncEvent) ProtoReflect

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

func (*SyncEvent) Reset

func (x *SyncEvent) Reset()

func (*SyncEvent) String

func (x *SyncEvent) String() string

type SyncMessage

type SyncMessage struct {
	From int64  `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"`
	Dir  string `protobuf:"bytes,2,opt,name=dir,proto3" json:"dir,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncMessage) Descriptor deprecated

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

Deprecated: Use SyncMessage.ProtoReflect.Descriptor instead.

func (*SyncMessage) GetDir

func (x *SyncMessage) GetDir() string

func (*SyncMessage) GetFrom

func (x *SyncMessage) GetFrom() int64

func (*SyncMessage) ProtoMessage

func (*SyncMessage) ProtoMessage()

func (*SyncMessage) ProtoReflect

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

func (*SyncMessage) Reset

func (x *SyncMessage) Reset()

func (*SyncMessage) String

func (x *SyncMessage) String() string

type Type

type Type int32
const (
	Type_Unknown   Type = 0
	Type_File      Type = 1
	Type_Directory Type = 2
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

type UnimplementedFilesServer

type UnimplementedFilesServer struct {
}

UnimplementedFilesServer must be embedded to have forward compatible implementations.

func (UnimplementedFilesServer) Copy

func (UnimplementedFilesServer) Create

func (UnimplementedFilesServer) Delete

func (UnimplementedFilesServer) DownloadURL

func (UnimplementedFilesServer) GetListStream

func (UnimplementedFilesServer) GetMeta

func (UnimplementedFilesServer) GetStats

func (UnimplementedFilesServer) List

func (UnimplementedFilesServer) Move

func (UnimplementedFilesServer) SetMeta

func (UnimplementedFilesServer) StatsSession

func (UnimplementedFilesServer) Sync

func (UnimplementedFilesServer) UploadURL

type UnsafeFilesServer

type UnsafeFilesServer interface {
	// contains filtered or unexported methods
}

UnsafeFilesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FilesServer will result in compilation errors.

type UploadURLRequest

type UploadURLRequest struct {
	NodePath    string `protobuf:"bytes,1,opt,name=node_path,json=nodePath,proto3" json:"node_path,omitempty"`
	ContentSize int64  `protobuf:"varint,2,opt,name=content_size,json=contentSize,proto3" json:"content_size,omitempty"`
	Append      bool   `protobuf:"varint,3,opt,name=append,proto3" json:"append,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadURLRequest) Descriptor deprecated

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

Deprecated: Use UploadURLRequest.ProtoReflect.Descriptor instead.

func (*UploadURLRequest) GetAppend

func (x *UploadURLRequest) GetAppend() bool

func (*UploadURLRequest) GetContentSize

func (x *UploadURLRequest) GetContentSize() int64

func (*UploadURLRequest) GetNodePath

func (x *UploadURLRequest) GetNodePath() string

func (*UploadURLRequest) ProtoMessage

func (*UploadURLRequest) ProtoMessage()

func (*UploadURLRequest) ProtoReflect

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

func (*UploadURLRequest) Reset

func (x *UploadURLRequest) Reset()

func (*UploadURLRequest) String

func (x *UploadURLRequest) String() string

type UploadURLResponse

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

func (*UploadURLResponse) Descriptor deprecated

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

Deprecated: Use UploadURLResponse.ProtoReflect.Descriptor instead.

func (*UploadURLResponse) GetUrl

func (x *UploadURLResponse) GetUrl() string

func (*UploadURLResponse) ProtoMessage

func (*UploadURLResponse) ProtoMessage()

func (*UploadURLResponse) ProtoReflect

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

func (*UploadURLResponse) Reset

func (x *UploadURLResponse) Reset()

func (*UploadURLResponse) String

func (x *UploadURLResponse) String() string

type Watcher

type Watcher interface {
	Watch(EventHandler) error
	Stop() error
}

Jump to

Keyboard shortcuts

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