storagev1

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageService_List_FullMethodName           = "/runtime.storage.v1.StorageService/List"
	StorageService_Stat_FullMethodName           = "/runtime.storage.v1.StorageService/Stat"
	StorageService_Mkdir_FullMethodName          = "/runtime.storage.v1.StorageService/Mkdir"
	StorageService_Delete_FullMethodName         = "/runtime.storage.v1.StorageService/Delete"
	StorageService_Rename_FullMethodName         = "/runtime.storage.v1.StorageService/Rename"
	StorageService_Read_FullMethodName           = "/runtime.storage.v1.StorageService/Read"
	StorageService_Write_FullMethodName          = "/runtime.storage.v1.StorageService/Write"
	StorageService_InitiateUpload_FullMethodName = "/runtime.storage.v1.StorageService/InitiateUpload"
	StorageService_UploadChunk_FullMethodName    = "/runtime.storage.v1.StorageService/UploadChunk"
	StorageService_FinalizeUpload_FullMethodName = "/runtime.storage.v1.StorageService/FinalizeUpload"
)
View Source
const OperationStorageServiceDelete = "/runtime.storage.v1.StorageService/Delete"
View Source
const OperationStorageServiceFinalizeUpload = "/runtime.storage.v1.StorageService/FinalizeUpload"
View Source
const OperationStorageServiceInitiateUpload = "/runtime.storage.v1.StorageService/InitiateUpload"
View Source
const OperationStorageServiceList = "/runtime.storage.v1.StorageService/List"
View Source
const OperationStorageServiceMkdir = "/runtime.storage.v1.StorageService/Mkdir"
View Source
const OperationStorageServiceRename = "/runtime.storage.v1.StorageService/Rename"
View Source
const OperationStorageServiceStat = "/runtime.storage.v1.StorageService/Stat"

Variables

View Source
var File_runtime_storage_v1_file_meta_proto protoreflect.FileDescriptor
View Source
var File_runtime_storage_v1_fs_proto protoreflect.FileDescriptor
View Source
var File_runtime_storage_v1_storage_proto protoreflect.FileDescriptor
View Source
var StorageService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "runtime.storage.v1.StorageService",
	HandlerType: (*StorageServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _StorageService_List_Handler,
		},
		{
			MethodName: "Stat",
			Handler:    _StorageService_Stat_Handler,
		},
		{
			MethodName: "Mkdir",
			Handler:    _StorageService_Mkdir_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _StorageService_Delete_Handler,
		},
		{
			MethodName: "Rename",
			Handler:    _StorageService_Rename_Handler,
		},
		{
			MethodName: "InitiateUpload",
			Handler:    _StorageService_InitiateUpload_Handler,
		},
		{
			MethodName: "FinalizeUpload",
			Handler:    _StorageService_FinalizeUpload_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Read",
			Handler:       _StorageService_Read_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Write",
			Handler:       _StorageService_Write_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "UploadChunk",
			Handler:       _StorageService_UploadChunk_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "runtime/storage/v1/fs.proto",
}

StorageService_ServiceDesc is the grpc.ServiceDesc for StorageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStorageServiceHTTPServer

func RegisterStorageServiceHTTPServer(s *http.Server, srv StorageServiceHTTPServer)

func RegisterStorageServiceServer

func RegisterStorageServiceServer(s grpc.ServiceRegistrar, srv StorageServiceServer)

Types

type Cache

type Cache struct {

	// Driver name: redis, memcached, etc.
	Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Memcached
	Memcached *Memcached `protobuf:"bytes,10,opt,name=memcached,proto3" json:"memcached,omitempty"`
	// Memory cache
	Memory *Memory `protobuf:"bytes,11,opt,name=memory,proto3" json:"memory,omitempty"`
	// Redis
	Redis *Redis `protobuf:"bytes,12,opt,name=redis,proto3" json:"redis,omitempty"`
	// Cleanup interval for memory cache in seconds.
	// If 0 or not set, a default (e.g., 5 minutes) will be used by the implementation.
	CleanupInterval int64 `protobuf:"varint,13,opt,name=cleanup_interval,proto3" json:"cleanup_interval,omitempty"`
	// contains filtered or unexported fields
}

Cache

func (*Cache) Descriptor deprecated

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

Deprecated: Use Cache.ProtoReflect.Descriptor instead.

func (*Cache) GetCleanupInterval

func (x *Cache) GetCleanupInterval() int64

func (*Cache) GetDriver

func (x *Cache) GetDriver() string

func (*Cache) GetMemcached

func (x *Cache) GetMemcached() *Memcached

func (*Cache) GetMemory

func (x *Cache) GetMemory() *Memory

func (*Cache) GetName

func (x *Cache) GetName() string

func (*Cache) GetRedis

func (x *Cache) GetRedis() *Redis

func (*Cache) ProtoMessage

func (*Cache) ProtoMessage()

func (*Cache) ProtoReflect

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

func (*Cache) Reset

func (x *Cache) Reset()

func (*Cache) String

func (x *Cache) String() string

func (*Cache) Validate

func (m *Cache) Validate() error

Validate checks the field values on Cache with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Cache) ValidateAll

func (m *Cache) ValidateAll() error

ValidateAll checks the field values on Cache with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CacheMultiError, or nil if none found.

type CacheMultiError

type CacheMultiError []error

CacheMultiError is an error wrapping multiple validation errors returned by Cache.ValidateAll() if the designated constraints aren't met.

func (CacheMultiError) AllErrors

func (m CacheMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CacheMultiError) Error

func (m CacheMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CacheValidationError

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

CacheValidationError is the validation error returned by Cache.Validate if the designated constraints aren't met.

func (CacheValidationError) Cause

func (e CacheValidationError) Cause() error

Cause function returns cause value.

func (CacheValidationError) Error

func (e CacheValidationError) Error() string

Error satisfies the builtin error interface

func (CacheValidationError) ErrorName

func (e CacheValidationError) ErrorName() string

ErrorName returns error name.

func (CacheValidationError) Field

func (e CacheValidationError) Field() string

Field function returns field value.

func (CacheValidationError) Key

func (e CacheValidationError) Key() bool

Key function returns key value.

func (CacheValidationError) Reason

func (e CacheValidationError) Reason() string

Reason function returns reason value.

type Database

type Database struct {

	// Debugging
	Debug bool `protobuf:"varint,1,opt,name=debug,proto3" json:"debug,omitempty"`
	// Dialect name: mysql, postgresql, mongodb, sqlite......
	Dialect string `protobuf:"bytes,2,opt,name=dialect,proto3" json:"dialect,omitempty"`
	// Data source (DSN string)
	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// Data migration
	Migration *Migration `protobuf:"bytes,10,opt,name=migration,proto3" json:"migration,omitempty"`
	// Link tracking switch
	EnableTrace bool `protobuf:"varint,12,opt,name=enable_trace,proto3" json:"enable_trace,omitempty"`
	// Performance analysis switch
	EnableMetrics bool `protobuf:"varint,13,opt,name=enable_metrics,proto3" json:"enable_metrics,omitempty"`
	// Maximum number of free connections in the connection pool
	MaxIdleConnections int32 `protobuf:"varint,20,opt,name=max_idle_connections,proto3" json:"max_idle_connections,omitempty"`
	// Maximum number of open connections in the connection pool
	MaxOpenConnections int32 `protobuf:"varint,21,opt,name=max_open_connections,proto3" json:"max_open_connections,omitempty"`
	// Maximum length of time that the connection can be reused
	ConnectionMaxLifetime int64 `protobuf:"varint,22,opt,name=connection_max_lifetime,proto3" json:"connection_max_lifetime,omitempty"`
	// Maximum number of connections in the connection pool for reading
	ConnectionMaxIdleTime int64 `protobuf:"varint,23,opt,name=connection_max_idle_time,proto3" json:"connection_max_idle_time,omitempty"`
	// contains filtered or unexported fields
}

Database

func (*Database) Descriptor deprecated

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

Deprecated: Use Database.ProtoReflect.Descriptor instead.

func (*Database) GetConnectionMaxIdleTime

func (x *Database) GetConnectionMaxIdleTime() int64

func (*Database) GetConnectionMaxLifetime

func (x *Database) GetConnectionMaxLifetime() int64

func (*Database) GetDebug

func (x *Database) GetDebug() bool

func (*Database) GetDialect

func (x *Database) GetDialect() string

func (*Database) GetEnableMetrics

func (x *Database) GetEnableMetrics() bool

func (*Database) GetEnableTrace

func (x *Database) GetEnableTrace() bool

func (*Database) GetMaxIdleConnections

func (x *Database) GetMaxIdleConnections() int32

func (*Database) GetMaxOpenConnections

func (x *Database) GetMaxOpenConnections() int32

func (*Database) GetMigration

func (x *Database) GetMigration() *Migration

func (*Database) GetSource

func (x *Database) GetSource() string

func (*Database) ProtoMessage

func (*Database) ProtoMessage()

func (*Database) ProtoReflect

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

func (*Database) Reset

func (x *Database) Reset()

func (*Database) String

func (x *Database) String() string

func (*Database) Validate

func (m *Database) Validate() error

Validate checks the field values on Database with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Database) ValidateAll

func (m *Database) ValidateAll() error

ValidateAll checks the field values on Database with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DatabaseMultiError, or nil if none found.

type DatabaseMultiError

type DatabaseMultiError []error

DatabaseMultiError is an error wrapping multiple validation errors returned by Database.ValidateAll() if the designated constraints aren't met.

func (DatabaseMultiError) AllErrors

func (m DatabaseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DatabaseMultiError) Error

func (m DatabaseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DatabaseValidationError

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

DatabaseValidationError is the validation error returned by Database.Validate if the designated constraints aren't met.

func (DatabaseValidationError) Cause

func (e DatabaseValidationError) Cause() error

Cause function returns cause value.

func (DatabaseValidationError) Error

func (e DatabaseValidationError) Error() string

Error satisfies the builtin error interface

func (DatabaseValidationError) ErrorName

func (e DatabaseValidationError) ErrorName() string

ErrorName returns error name.

func (DatabaseValidationError) Field

func (e DatabaseValidationError) Field() string

Field function returns field value.

func (DatabaseValidationError) Key

func (e DatabaseValidationError) Key() bool

Key function returns key value.

func (DatabaseValidationError) Reason

func (e DatabaseValidationError) Reason() string

Reason function returns reason value.

type DeleteRequest

type DeleteRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// Optional: If true and path is a directory, delete it recursively.
	Recursive bool `protobuf:"varint,2,opt,name=recursive,proto3" json:"recursive,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) GetRecursive

func (x *DeleteRequest) GetRecursive() bool

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

func (*DeleteRequest) Validate

func (m *DeleteRequest) Validate() error

Validate checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteRequest) ValidateAll

func (m *DeleteRequest) ValidateAll() error

ValidateAll checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRequestMultiError, or nil if none found.

type DeleteRequestMultiError

type DeleteRequestMultiError []error

DeleteRequestMultiError is an error wrapping multiple validation errors returned by DeleteRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteRequestMultiError) AllErrors

func (m DeleteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRequestMultiError) Error

func (m DeleteRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteRequestValidationError

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

DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.

func (DeleteRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRequestValidationError) ErrorName

func (e DeleteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRequestValidationError) Field

Field function returns field value.

func (DeleteRequestValidationError) Key

Key function returns key value.

func (DeleteRequestValidationError) Reason

Reason function returns reason value.

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

func (*DeleteResponse) Validate

func (m *DeleteResponse) Validate() error

Validate checks the field values on DeleteResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteResponse) ValidateAll

func (m *DeleteResponse) ValidateAll() error

ValidateAll checks the field values on DeleteResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteResponseMultiError, or nil if none found.

type DeleteResponseMultiError

type DeleteResponseMultiError []error

DeleteResponseMultiError is an error wrapping multiple validation errors returned by DeleteResponse.ValidateAll() if the designated constraints aren't met.

func (DeleteResponseMultiError) AllErrors

func (m DeleteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteResponseMultiError) Error

func (m DeleteResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteResponseValidationError

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

DeleteResponseValidationError is the validation error returned by DeleteResponse.Validate if the designated constraints aren't met.

func (DeleteResponseValidationError) Cause

Cause function returns cause value.

func (DeleteResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteResponseValidationError) ErrorName

func (e DeleteResponseValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteResponseValidationError) Field

Field function returns field value.

func (DeleteResponseValidationError) Key

Key function returns key value.

func (DeleteResponseValidationError) Reason

Reason function returns reason value.

type FileInfo

type FileInfo struct {
	Name    string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Path    string                 `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	IsDir   bool                   `protobuf:"varint,3,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"`
	Size    int64                  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	ModTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=mod_time,json=modTime,proto3" json:"mod_time,omitempty"`
	// contains filtered or unexported fields
}

FileInfo describes a file or directory.

func (*FileInfo) Descriptor deprecated

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

Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.

func (*FileInfo) GetIsDir

func (x *FileInfo) GetIsDir() bool

func (*FileInfo) GetModTime

func (x *FileInfo) GetModTime() *timestamppb.Timestamp

func (*FileInfo) GetName

func (x *FileInfo) GetName() string

func (*FileInfo) GetPath

func (x *FileInfo) GetPath() string

func (*FileInfo) GetSize

func (x *FileInfo) GetSize() int64

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) ProtoReflect

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

func (*FileInfo) Reset

func (x *FileInfo) Reset()

func (*FileInfo) String

func (x *FileInfo) String() string

func (*FileInfo) Validate

func (m *FileInfo) Validate() error

Validate checks the field values on FileInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FileInfo) ValidateAll

func (m *FileInfo) ValidateAll() error

ValidateAll checks the field values on FileInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FileInfoMultiError, or nil if none found.

type FileInfoMultiError

type FileInfoMultiError []error

FileInfoMultiError is an error wrapping multiple validation errors returned by FileInfo.ValidateAll() if the designated constraints aren't met.

func (FileInfoMultiError) AllErrors

func (m FileInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileInfoMultiError) Error

func (m FileInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FileInfoValidationError

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

FileInfoValidationError is the validation error returned by FileInfo.Validate if the designated constraints aren't met.

func (FileInfoValidationError) Cause

func (e FileInfoValidationError) Cause() error

Cause function returns cause value.

func (FileInfoValidationError) Error

func (e FileInfoValidationError) Error() string

Error satisfies the builtin error interface

func (FileInfoValidationError) ErrorName

func (e FileInfoValidationError) ErrorName() string

ErrorName returns error name.

func (FileInfoValidationError) Field

func (e FileInfoValidationError) Field() string

Field function returns field value.

func (FileInfoValidationError) Key

func (e FileInfoValidationError) Key() bool

Key function returns key value.

func (FileInfoValidationError) Reason

func (e FileInfoValidationError) Reason() string

Reason function returns reason value.

type FileLocal

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

FileLocal defines the configuration for local file system storage. Renamed from 'File' to avoid ambiguity.

func (*FileLocal) Descriptor deprecated

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

Deprecated: Use FileLocal.ProtoReflect.Descriptor instead.

func (*FileLocal) GetRoot

func (x *FileLocal) GetRoot() string

func (*FileLocal) ProtoMessage

func (*FileLocal) ProtoMessage()

func (*FileLocal) ProtoReflect

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

func (*FileLocal) Reset

func (x *FileLocal) Reset()

func (*FileLocal) String

func (x *FileLocal) String() string

func (*FileLocal) Validate

func (m *FileLocal) Validate() error

Validate checks the field values on FileLocal with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FileLocal) ValidateAll

func (m *FileLocal) ValidateAll() error

ValidateAll checks the field values on FileLocal with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FileLocalMultiError, or nil if none found.

type FileLocalMultiError

type FileLocalMultiError []error

FileLocalMultiError is an error wrapping multiple validation errors returned by FileLocal.ValidateAll() if the designated constraints aren't met.

func (FileLocalMultiError) AllErrors

func (m FileLocalMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileLocalMultiError) Error

func (m FileLocalMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FileLocalValidationError

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

FileLocalValidationError is the validation error returned by FileLocal.Validate if the designated constraints aren't met.

func (FileLocalValidationError) Cause

func (e FileLocalValidationError) Cause() error

Cause function returns cause value.

func (FileLocalValidationError) Error

func (e FileLocalValidationError) Error() string

Error satisfies the builtin error interface

func (FileLocalValidationError) ErrorName

func (e FileLocalValidationError) ErrorName() string

ErrorName returns error name.

func (FileLocalValidationError) Field

func (e FileLocalValidationError) Field() string

Field function returns field value.

func (FileLocalValidationError) Key

Key function returns key value.

func (FileLocalValidationError) Reason

func (e FileLocalValidationError) Reason() string

Reason function returns reason value.

type FileMeta

type FileMeta 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"`
	Hash     string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	Size     int64  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	MimeType string `protobuf:"bytes,5,opt,name=mime_type,proto3" json:"mime_type,omitempty"`
	ModTime  int64  `protobuf:"varint,6,opt,name=mod_time,proto3" json:"mod_time,omitempty"`
	// contains filtered or unexported fields
}

func (*FileMeta) Descriptor deprecated

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

Deprecated: Use FileMeta.ProtoReflect.Descriptor instead.

func (*FileMeta) GetHash

func (x *FileMeta) GetHash() string

func (*FileMeta) GetId

func (x *FileMeta) GetId() string

func (*FileMeta) GetMimeType

func (x *FileMeta) GetMimeType() string

func (*FileMeta) GetModTime

func (x *FileMeta) GetModTime() int64

func (*FileMeta) GetName

func (x *FileMeta) GetName() string

func (*FileMeta) GetSize

func (x *FileMeta) GetSize() int64

func (*FileMeta) ProtoMessage

func (*FileMeta) ProtoMessage()

func (*FileMeta) ProtoReflect

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

func (*FileMeta) Reset

func (x *FileMeta) Reset()

func (*FileMeta) String

func (x *FileMeta) String() string

func (*FileMeta) Validate

func (m *FileMeta) Validate() error

Validate checks the field values on FileMeta with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FileMeta) ValidateAll

func (m *FileMeta) ValidateAll() error

ValidateAll checks the field values on FileMeta with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FileMetaMultiError, or nil if none found.

type FileMetaMultiError

type FileMetaMultiError []error

FileMetaMultiError is an error wrapping multiple validation errors returned by FileMeta.ValidateAll() if the designated constraints aren't met.

func (FileMetaMultiError) AllErrors

func (m FileMetaMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileMetaMultiError) Error

func (m FileMetaMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FileMetaValidationError

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

FileMetaValidationError is the validation error returned by FileMeta.Validate if the designated constraints aren't met.

func (FileMetaValidationError) Cause

func (e FileMetaValidationError) Cause() error

Cause function returns cause value.

func (FileMetaValidationError) Error

func (e FileMetaValidationError) Error() string

Error satisfies the builtin error interface

func (FileMetaValidationError) ErrorName

func (e FileMetaValidationError) ErrorName() string

ErrorName returns error name.

func (FileMetaValidationError) Field

func (e FileMetaValidationError) Field() string

Field function returns field value.

func (FileMetaValidationError) Key

func (e FileMetaValidationError) Key() bool

Key function returns key value.

func (FileMetaValidationError) Reason

func (e FileMetaValidationError) Reason() string

Reason function returns reason value.

type FileStore

type FileStore struct {

	// The 'driver' field determines which configuration block (local or oss) to use.
	// This field is crucial for ensuring JSON/YAML compatibility.
	Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	// Local file system configuration. Only effective when driver is "local".
	// The optional keyword clearly indicates that this field may not be present.
	Local *FileLocal `protobuf:"bytes,2,opt,name=local,proto3,oneof" json:"local,omitempty"`
	// Cloud object storage configuration. Only effective when driver is "oss".
	Oss *Oss `protobuf:"bytes,3,opt,name=oss,proto3,oneof" json:"oss,omitempty"`
	// Chunk size in bytes for splitting large files.
	// For OSS, this corresponds to the multipart upload part size.
	// For local storage, it defines the size of individual blob files.
	// If 0 or not set, a reasonable default (e.g., 4MB) will be used by the implementation.
	ChunkSize int64 `protobuf:"varint,4,opt,name=chunk_size,proto3" json:"chunk_size,omitempty"`
	// contains filtered or unexported fields
}

FileStore groups all "file/object storage" type backends into one category. It uses the 'driver' field to determine which specific implementation to use.

func (*FileStore) Descriptor deprecated

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

Deprecated: Use FileStore.ProtoReflect.Descriptor instead.

func (*FileStore) GetChunkSize

func (x *FileStore) GetChunkSize() int64

func (*FileStore) GetDriver

func (x *FileStore) GetDriver() string

func (*FileStore) GetLocal

func (x *FileStore) GetLocal() *FileLocal

func (*FileStore) GetOss

func (x *FileStore) GetOss() *Oss

func (*FileStore) ProtoMessage

func (*FileStore) ProtoMessage()

func (*FileStore) ProtoReflect

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

func (*FileStore) Reset

func (x *FileStore) Reset()

func (*FileStore) String

func (x *FileStore) String() string

func (*FileStore) Validate

func (m *FileStore) Validate() error

Validate checks the field values on FileStore with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FileStore) ValidateAll

func (m *FileStore) ValidateAll() error

ValidateAll checks the field values on FileStore with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FileStoreMultiError, or nil if none found.

type FileStoreMultiError

type FileStoreMultiError []error

FileStoreMultiError is an error wrapping multiple validation errors returned by FileStore.ValidateAll() if the designated constraints aren't met.

func (FileStoreMultiError) AllErrors

func (m FileStoreMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileStoreMultiError) Error

func (m FileStoreMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FileStoreValidationError

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

FileStoreValidationError is the validation error returned by FileStore.Validate if the designated constraints aren't met.

func (FileStoreValidationError) Cause

func (e FileStoreValidationError) Cause() error

Cause function returns cause value.

func (FileStoreValidationError) Error

func (e FileStoreValidationError) Error() string

Error satisfies the builtin error interface

func (FileStoreValidationError) ErrorName

func (e FileStoreValidationError) ErrorName() string

ErrorName returns error name.

func (FileStoreValidationError) Field

func (e FileStoreValidationError) Field() string

Field function returns field value.

func (FileStoreValidationError) Key

Key function returns key value.

func (FileStoreValidationError) Reason

func (e FileStoreValidationError) Reason() string

Reason function returns reason value.

type FinalizeUploadRequest

type FinalizeUploadRequest struct {
	UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
	// Optional: The SHA256 checksum of the entire file for validation.
	ContentSha256 string `protobuf:"bytes,2,opt,name=content_sha256,json=contentSha256,proto3" json:"content_sha256,omitempty"`
	// contains filtered or unexported fields
}

func (*FinalizeUploadRequest) Descriptor deprecated

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

Deprecated: Use FinalizeUploadRequest.ProtoReflect.Descriptor instead.

func (*FinalizeUploadRequest) GetContentSha256

func (x *FinalizeUploadRequest) GetContentSha256() string

func (*FinalizeUploadRequest) GetUploadId

func (x *FinalizeUploadRequest) GetUploadId() string

func (*FinalizeUploadRequest) ProtoMessage

func (*FinalizeUploadRequest) ProtoMessage()

func (*FinalizeUploadRequest) ProtoReflect

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

func (*FinalizeUploadRequest) Reset

func (x *FinalizeUploadRequest) Reset()

func (*FinalizeUploadRequest) String

func (x *FinalizeUploadRequest) String() string

func (*FinalizeUploadRequest) Validate

func (m *FinalizeUploadRequest) Validate() error

Validate checks the field values on FinalizeUploadRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FinalizeUploadRequest) ValidateAll

func (m *FinalizeUploadRequest) ValidateAll() error

ValidateAll checks the field values on FinalizeUploadRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FinalizeUploadRequestMultiError, or nil if none found.

type FinalizeUploadRequestMultiError

type FinalizeUploadRequestMultiError []error

FinalizeUploadRequestMultiError is an error wrapping multiple validation errors returned by FinalizeUploadRequest.ValidateAll() if the designated constraints aren't met.

func (FinalizeUploadRequestMultiError) AllErrors

func (m FinalizeUploadRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FinalizeUploadRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FinalizeUploadRequestValidationError

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

FinalizeUploadRequestValidationError is the validation error returned by FinalizeUploadRequest.Validate if the designated constraints aren't met.

func (FinalizeUploadRequestValidationError) Cause

Cause function returns cause value.

func (FinalizeUploadRequestValidationError) Error

Error satisfies the builtin error interface

func (FinalizeUploadRequestValidationError) ErrorName

ErrorName returns error name.

func (FinalizeUploadRequestValidationError) Field

Field function returns field value.

func (FinalizeUploadRequestValidationError) Key

Key function returns key value.

func (FinalizeUploadRequestValidationError) Reason

Reason function returns reason value.

type FinalizeUploadResponse

type FinalizeUploadResponse struct {
	File *FileInfo `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*FinalizeUploadResponse) Descriptor deprecated

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

Deprecated: Use FinalizeUploadResponse.ProtoReflect.Descriptor instead.

func (*FinalizeUploadResponse) GetFile

func (x *FinalizeUploadResponse) GetFile() *FileInfo

func (*FinalizeUploadResponse) ProtoMessage

func (*FinalizeUploadResponse) ProtoMessage()

func (*FinalizeUploadResponse) ProtoReflect

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

func (*FinalizeUploadResponse) Reset

func (x *FinalizeUploadResponse) Reset()

func (*FinalizeUploadResponse) String

func (x *FinalizeUploadResponse) String() string

func (*FinalizeUploadResponse) Validate

func (m *FinalizeUploadResponse) Validate() error

Validate checks the field values on FinalizeUploadResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FinalizeUploadResponse) ValidateAll

func (m *FinalizeUploadResponse) ValidateAll() error

ValidateAll checks the field values on FinalizeUploadResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FinalizeUploadResponseMultiError, or nil if none found.

type FinalizeUploadResponseMultiError

type FinalizeUploadResponseMultiError []error

FinalizeUploadResponseMultiError is an error wrapping multiple validation errors returned by FinalizeUploadResponse.ValidateAll() if the designated constraints aren't met.

func (FinalizeUploadResponseMultiError) AllErrors

func (m FinalizeUploadResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FinalizeUploadResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FinalizeUploadResponseValidationError

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

FinalizeUploadResponseValidationError is the validation error returned by FinalizeUploadResponse.Validate if the designated constraints aren't met.

func (FinalizeUploadResponseValidationError) Cause

Cause function returns cause value.

func (FinalizeUploadResponseValidationError) Error

Error satisfies the builtin error interface

func (FinalizeUploadResponseValidationError) ErrorName

ErrorName returns error name.

func (FinalizeUploadResponseValidationError) Field

Field function returns field value.

func (FinalizeUploadResponseValidationError) Key

Key function returns key value.

func (FinalizeUploadResponseValidationError) Reason

Reason function returns reason value.

type InitiateUploadRequest

type InitiateUploadRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // The final path for the file.
	// contains filtered or unexported fields
}

func (*InitiateUploadRequest) Descriptor deprecated

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

Deprecated: Use InitiateUploadRequest.ProtoReflect.Descriptor instead.

func (*InitiateUploadRequest) GetPath

func (x *InitiateUploadRequest) GetPath() string

func (*InitiateUploadRequest) ProtoMessage

func (*InitiateUploadRequest) ProtoMessage()

func (*InitiateUploadRequest) ProtoReflect

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

func (*InitiateUploadRequest) Reset

func (x *InitiateUploadRequest) Reset()

func (*InitiateUploadRequest) String

func (x *InitiateUploadRequest) String() string

func (*InitiateUploadRequest) Validate

func (m *InitiateUploadRequest) Validate() error

Validate checks the field values on InitiateUploadRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*InitiateUploadRequest) ValidateAll

func (m *InitiateUploadRequest) ValidateAll() error

ValidateAll checks the field values on InitiateUploadRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InitiateUploadRequestMultiError, or nil if none found.

type InitiateUploadRequestMultiError

type InitiateUploadRequestMultiError []error

InitiateUploadRequestMultiError is an error wrapping multiple validation errors returned by InitiateUploadRequest.ValidateAll() if the designated constraints aren't met.

func (InitiateUploadRequestMultiError) AllErrors

func (m InitiateUploadRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InitiateUploadRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type InitiateUploadRequestValidationError

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

InitiateUploadRequestValidationError is the validation error returned by InitiateUploadRequest.Validate if the designated constraints aren't met.

func (InitiateUploadRequestValidationError) Cause

Cause function returns cause value.

func (InitiateUploadRequestValidationError) Error

Error satisfies the builtin error interface

func (InitiateUploadRequestValidationError) ErrorName

ErrorName returns error name.

func (InitiateUploadRequestValidationError) Field

Field function returns field value.

func (InitiateUploadRequestValidationError) Key

Key function returns key value.

func (InitiateUploadRequestValidationError) Reason

Reason function returns reason value.

type InitiateUploadResponse

type InitiateUploadResponse struct {
	UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InitiateUploadResponse) Descriptor deprecated

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

Deprecated: Use InitiateUploadResponse.ProtoReflect.Descriptor instead.

func (*InitiateUploadResponse) GetUploadId

func (x *InitiateUploadResponse) GetUploadId() string

func (*InitiateUploadResponse) ProtoMessage

func (*InitiateUploadResponse) ProtoMessage()

func (*InitiateUploadResponse) ProtoReflect

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

func (*InitiateUploadResponse) Reset

func (x *InitiateUploadResponse) Reset()

func (*InitiateUploadResponse) String

func (x *InitiateUploadResponse) String() string

func (*InitiateUploadResponse) Validate

func (m *InitiateUploadResponse) Validate() error

Validate checks the field values on InitiateUploadResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*InitiateUploadResponse) ValidateAll

func (m *InitiateUploadResponse) ValidateAll() error

ValidateAll checks the field values on InitiateUploadResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InitiateUploadResponseMultiError, or nil if none found.

type InitiateUploadResponseMultiError

type InitiateUploadResponseMultiError []error

InitiateUploadResponseMultiError is an error wrapping multiple validation errors returned by InitiateUploadResponse.ValidateAll() if the designated constraints aren't met.

func (InitiateUploadResponseMultiError) AllErrors

func (m InitiateUploadResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InitiateUploadResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type InitiateUploadResponseValidationError

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

InitiateUploadResponseValidationError is the validation error returned by InitiateUploadResponse.Validate if the designated constraints aren't met.

func (InitiateUploadResponseValidationError) Cause

Cause function returns cause value.

func (InitiateUploadResponseValidationError) Error

Error satisfies the builtin error interface

func (InitiateUploadResponseValidationError) ErrorName

ErrorName returns error name.

func (InitiateUploadResponseValidationError) Field

Field function returns field value.

func (InitiateUploadResponseValidationError) Key

Key function returns key value.

func (InitiateUploadResponseValidationError) Reason

Reason function returns reason value.

type ListRequest

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

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetPath

func (x *ListRequest) GetPath() string

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

func (*ListRequest) Validate

func (m *ListRequest) Validate() error

Validate checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListRequest) ValidateAll

func (m *ListRequest) ValidateAll() error

ValidateAll checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRequestMultiError, or nil if none found.

type ListRequestMultiError

type ListRequestMultiError []error

ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.

func (ListRequestMultiError) AllErrors

func (m ListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRequestMultiError) Error

func (m ListRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListRequestValidationError

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

ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.

func (ListRequestValidationError) Cause

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

Reason function returns reason value.

type ListResponse

type ListResponse struct {
	Files []*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetFiles

func (x *ListResponse) GetFiles() []*FileInfo

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

func (*ListResponse) Validate

func (m *ListResponse) Validate() error

Validate checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListResponse) ValidateAll

func (m *ListResponse) ValidateAll() error

ValidateAll checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListResponseMultiError, or nil if none found.

type ListResponseMultiError

type ListResponseMultiError []error

ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.

func (ListResponseMultiError) AllErrors

func (m ListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListResponseMultiError) Error

func (m ListResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListResponseValidationError

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

ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.

func (ListResponseValidationError) Cause

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

Reason function returns reason value.

type Memcached

type Memcached struct {
	Addr     string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	MaxIdle  int32  `protobuf:"varint,4,opt,name=max_idle,proto3" json:"max_idle,omitempty"`
	Timeout  int64  `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

Memcached

func (*Memcached) Descriptor deprecated

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

Deprecated: Use Memcached.ProtoReflect.Descriptor instead.

func (*Memcached) GetAddr

func (x *Memcached) GetAddr() string

func (*Memcached) GetMaxIdle

func (x *Memcached) GetMaxIdle() int32

func (*Memcached) GetPassword

func (x *Memcached) GetPassword() string

func (*Memcached) GetTimeout

func (x *Memcached) GetTimeout() int64

func (*Memcached) GetUsername

func (x *Memcached) GetUsername() string

func (*Memcached) ProtoMessage

func (*Memcached) ProtoMessage()

func (*Memcached) ProtoReflect

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

func (*Memcached) Reset

func (x *Memcached) Reset()

func (*Memcached) String

func (x *Memcached) String() string

func (*Memcached) Validate

func (m *Memcached) Validate() error

Validate checks the field values on Memcached with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Memcached) ValidateAll

func (m *Memcached) ValidateAll() error

ValidateAll checks the field values on Memcached with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MemcachedMultiError, or nil if none found.

type MemcachedMultiError

type MemcachedMultiError []error

MemcachedMultiError is an error wrapping multiple validation errors returned by Memcached.ValidateAll() if the designated constraints aren't met.

func (MemcachedMultiError) AllErrors

func (m MemcachedMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MemcachedMultiError) Error

func (m MemcachedMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MemcachedValidationError

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

MemcachedValidationError is the validation error returned by Memcached.Validate if the designated constraints aren't met.

func (MemcachedValidationError) Cause

func (e MemcachedValidationError) Cause() error

Cause function returns cause value.

func (MemcachedValidationError) Error

func (e MemcachedValidationError) Error() string

Error satisfies the builtin error interface

func (MemcachedValidationError) ErrorName

func (e MemcachedValidationError) ErrorName() string

ErrorName returns error name.

func (MemcachedValidationError) Field

func (e MemcachedValidationError) Field() string

Field function returns field value.

func (MemcachedValidationError) Key

Key function returns key value.

func (MemcachedValidationError) Reason

func (e MemcachedValidationError) Reason() string

Reason function returns reason value.

type Memory

type Memory struct {
	Size            int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Capacity        int32 `protobuf:"varint,2,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Expiration      int64 `protobuf:"varint,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	CleanupInterval int64 `protobuf:"varint,4,opt,name=cleanup_interval,proto3" json:"cleanup_interval,omitempty"`
	// contains filtered or unexported fields
}

Memory

func (*Memory) Descriptor deprecated

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

Deprecated: Use Memory.ProtoReflect.Descriptor instead.

func (*Memory) GetCapacity

func (x *Memory) GetCapacity() int32

func (*Memory) GetCleanupInterval

func (x *Memory) GetCleanupInterval() int64

func (*Memory) GetExpiration

func (x *Memory) GetExpiration() int64

func (*Memory) GetSize

func (x *Memory) GetSize() int32

func (*Memory) ProtoMessage

func (*Memory) ProtoMessage()

func (*Memory) ProtoReflect

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

func (*Memory) Reset

func (x *Memory) Reset()

func (*Memory) String

func (x *Memory) String() string

func (*Memory) Validate

func (m *Memory) Validate() error

Validate checks the field values on Memory with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Memory) ValidateAll

func (m *Memory) ValidateAll() error

ValidateAll checks the field values on Memory with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MemoryMultiError, or nil if none found.

type MemoryMultiError

type MemoryMultiError []error

MemoryMultiError is an error wrapping multiple validation errors returned by Memory.ValidateAll() if the designated constraints aren't met.

func (MemoryMultiError) AllErrors

func (m MemoryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MemoryMultiError) Error

func (m MemoryMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MemoryValidationError

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

MemoryValidationError is the validation error returned by Memory.Validate if the designated constraints aren't met.

func (MemoryValidationError) Cause

func (e MemoryValidationError) Cause() error

Cause function returns cause value.

func (MemoryValidationError) Error

func (e MemoryValidationError) Error() string

Error satisfies the builtin error interface

func (MemoryValidationError) ErrorName

func (e MemoryValidationError) ErrorName() string

ErrorName returns error name.

func (MemoryValidationError) Field

func (e MemoryValidationError) Field() string

Field function returns field value.

func (MemoryValidationError) Key

func (e MemoryValidationError) Key() bool

Key function returns key value.

func (MemoryValidationError) Reason

func (e MemoryValidationError) Reason() string

Reason function returns reason value.

type Migration

type Migration struct {
	Enabled bool     `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Path    string   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Names   []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"`
	Version string   `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	Mode    string   `protobuf:"bytes,5,opt,name=mode,proto3" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*Migration) Descriptor deprecated

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

Deprecated: Use Migration.ProtoReflect.Descriptor instead.

func (*Migration) GetEnabled

func (x *Migration) GetEnabled() bool

func (*Migration) GetMode

func (x *Migration) GetMode() string

func (*Migration) GetNames

func (x *Migration) GetNames() []string

func (*Migration) GetPath

func (x *Migration) GetPath() string

func (*Migration) GetVersion

func (x *Migration) GetVersion() string

func (*Migration) ProtoMessage

func (*Migration) ProtoMessage()

func (*Migration) ProtoReflect

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

func (*Migration) Reset

func (x *Migration) Reset()

func (*Migration) String

func (x *Migration) String() string

func (*Migration) Validate

func (m *Migration) Validate() error

Validate checks the field values on Migration with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Migration) ValidateAll

func (m *Migration) ValidateAll() error

ValidateAll checks the field values on Migration with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MigrationMultiError, or nil if none found.

type MigrationMultiError

type MigrationMultiError []error

MigrationMultiError is an error wrapping multiple validation errors returned by Migration.ValidateAll() if the designated constraints aren't met.

func (MigrationMultiError) AllErrors

func (m MigrationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MigrationMultiError) Error

func (m MigrationMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MigrationValidationError

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

MigrationValidationError is the validation error returned by Migration.Validate if the designated constraints aren't met.

func (MigrationValidationError) Cause

func (e MigrationValidationError) Cause() error

Cause function returns cause value.

func (MigrationValidationError) Error

func (e MigrationValidationError) Error() string

Error satisfies the builtin error interface

func (MigrationValidationError) ErrorName

func (e MigrationValidationError) ErrorName() string

ErrorName returns error name.

func (MigrationValidationError) Field

func (e MigrationValidationError) Field() string

Field function returns field value.

func (MigrationValidationError) Key

Key function returns key value.

func (MigrationValidationError) Reason

func (e MigrationValidationError) Reason() string

Reason function returns reason value.

type MkdirRequest

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

func (*MkdirRequest) Descriptor deprecated

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

Deprecated: Use MkdirRequest.ProtoReflect.Descriptor instead.

func (*MkdirRequest) GetPath

func (x *MkdirRequest) GetPath() string

func (*MkdirRequest) ProtoMessage

func (*MkdirRequest) ProtoMessage()

func (*MkdirRequest) ProtoReflect

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

func (*MkdirRequest) Reset

func (x *MkdirRequest) Reset()

func (*MkdirRequest) String

func (x *MkdirRequest) String() string

func (*MkdirRequest) Validate

func (m *MkdirRequest) Validate() error

Validate checks the field values on MkdirRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MkdirRequest) ValidateAll

func (m *MkdirRequest) ValidateAll() error

ValidateAll checks the field values on MkdirRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MkdirRequestMultiError, or nil if none found.

type MkdirRequestMultiError

type MkdirRequestMultiError []error

MkdirRequestMultiError is an error wrapping multiple validation errors returned by MkdirRequest.ValidateAll() if the designated constraints aren't met.

func (MkdirRequestMultiError) AllErrors

func (m MkdirRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MkdirRequestMultiError) Error

func (m MkdirRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MkdirRequestValidationError

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

MkdirRequestValidationError is the validation error returned by MkdirRequest.Validate if the designated constraints aren't met.

func (MkdirRequestValidationError) Cause

Cause function returns cause value.

func (MkdirRequestValidationError) Error

Error satisfies the builtin error interface

func (MkdirRequestValidationError) ErrorName

func (e MkdirRequestValidationError) ErrorName() string

ErrorName returns error name.

func (MkdirRequestValidationError) Field

Field function returns field value.

func (MkdirRequestValidationError) Key

Key function returns key value.

func (MkdirRequestValidationError) Reason

Reason function returns reason value.

type MkdirResponse

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

func (*MkdirResponse) Descriptor deprecated

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

Deprecated: Use MkdirResponse.ProtoReflect.Descriptor instead.

func (*MkdirResponse) ProtoMessage

func (*MkdirResponse) ProtoMessage()

func (*MkdirResponse) ProtoReflect

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

func (*MkdirResponse) Reset

func (x *MkdirResponse) Reset()

func (*MkdirResponse) String

func (x *MkdirResponse) String() string

func (*MkdirResponse) Validate

func (m *MkdirResponse) Validate() error

Validate checks the field values on MkdirResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MkdirResponse) ValidateAll

func (m *MkdirResponse) ValidateAll() error

ValidateAll checks the field values on MkdirResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MkdirResponseMultiError, or nil if none found.

type MkdirResponseMultiError

type MkdirResponseMultiError []error

MkdirResponseMultiError is an error wrapping multiple validation errors returned by MkdirResponse.ValidateAll() if the designated constraints aren't met.

func (MkdirResponseMultiError) AllErrors

func (m MkdirResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MkdirResponseMultiError) Error

func (m MkdirResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MkdirResponseValidationError

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

MkdirResponseValidationError is the validation error returned by MkdirResponse.Validate if the designated constraints aren't met.

func (MkdirResponseValidationError) Cause

Cause function returns cause value.

func (MkdirResponseValidationError) Error

Error satisfies the builtin error interface

func (MkdirResponseValidationError) ErrorName

func (e MkdirResponseValidationError) ErrorName() string

ErrorName returns error name.

func (MkdirResponseValidationError) Field

Field function returns field value.

func (MkdirResponseValidationError) Key

Key function returns key value.

func (MkdirResponseValidationError) Reason

Reason function returns reason value.

type Mongo

type Mongo struct {
	Uri            string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	Database       string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`
	Username       string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Password       string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	AuthSource     bool   `protobuf:"varint,5,opt,name=auth_source,proto3" json:"auth_source,omitempty"`
	MaxPoolSize    int32  `protobuf:"varint,6,opt,name=max_pool_size,proto3" json:"max_pool_size,omitempty"`
	MinPoolSize    int32  `protobuf:"varint,7,opt,name=min_pool_size,proto3" json:"min_pool_size,omitempty"`
	ConnectTimeout int64  `protobuf:"varint,8,opt,name=connect_timeout,proto3" json:"connect_timeout,omitempty"`
	// contains filtered or unexported fields
}

Mongo

func (*Mongo) Descriptor deprecated

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

Deprecated: Use Mongo.ProtoReflect.Descriptor instead.

func (*Mongo) GetAuthSource

func (x *Mongo) GetAuthSource() bool

func (*Mongo) GetConnectTimeout

func (x *Mongo) GetConnectTimeout() int64

func (*Mongo) GetDatabase

func (x *Mongo) GetDatabase() string

func (*Mongo) GetMaxPoolSize

func (x *Mongo) GetMaxPoolSize() int32

func (*Mongo) GetMinPoolSize

func (x *Mongo) GetMinPoolSize() int32

func (*Mongo) GetPassword

func (x *Mongo) GetPassword() string

func (*Mongo) GetUri

func (x *Mongo) GetUri() string

func (*Mongo) GetUsername

func (x *Mongo) GetUsername() string

func (*Mongo) ProtoMessage

func (*Mongo) ProtoMessage()

func (*Mongo) ProtoReflect

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

func (*Mongo) Reset

func (x *Mongo) Reset()

func (*Mongo) String

func (x *Mongo) String() string

func (*Mongo) Validate

func (m *Mongo) Validate() error

Validate checks the field values on Mongo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Mongo) ValidateAll

func (m *Mongo) ValidateAll() error

ValidateAll checks the field values on Mongo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MongoMultiError, or nil if none found.

type MongoMultiError

type MongoMultiError []error

MongoMultiError is an error wrapping multiple validation errors returned by Mongo.ValidateAll() if the designated constraints aren't met.

func (MongoMultiError) AllErrors

func (m MongoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MongoMultiError) Error

func (m MongoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MongoValidationError

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

MongoValidationError is the validation error returned by Mongo.Validate if the designated constraints aren't met.

func (MongoValidationError) Cause

func (e MongoValidationError) Cause() error

Cause function returns cause value.

func (MongoValidationError) Error

func (e MongoValidationError) Error() string

Error satisfies the builtin error interface

func (MongoValidationError) ErrorName

func (e MongoValidationError) ErrorName() string

ErrorName returns error name.

func (MongoValidationError) Field

func (e MongoValidationError) Field() string

Field function returns field value.

func (MongoValidationError) Key

func (e MongoValidationError) Key() bool

Key function returns key value.

func (MongoValidationError) Reason

func (e MongoValidationError) Reason() string

Reason function returns reason value.

type Oss

type Oss struct {
	Endpoint        string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	AccessKeyId     string `protobuf:"bytes,2,opt,name=access_key_id,proto3" json:"access_key_id,omitempty"`
	AccessKeySecret string `protobuf:"bytes,3,opt,name=access_key_secret,proto3" json:"access_key_secret,omitempty"`
	Bucket          string `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Region          string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
	Ssl             bool   `protobuf:"varint,6,opt,name=ssl,proto3" json:"ssl,omitempty"`
	ConnectTimeout  int64  `protobuf:"varint,7,opt,name=connect_timeout,proto3" json:"connect_timeout,omitempty"`
	ReadTimeout     int64  `protobuf:"varint,8,opt,name=read_timeout,proto3" json:"read_timeout,omitempty"`
	// contains filtered or unexported fields
}

OSS defines the configuration for cloud object storage.

func (*Oss) Descriptor deprecated

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

Deprecated: Use Oss.ProtoReflect.Descriptor instead.

func (*Oss) GetAccessKeyId

func (x *Oss) GetAccessKeyId() string

func (*Oss) GetAccessKeySecret

func (x *Oss) GetAccessKeySecret() string

func (*Oss) GetBucket

func (x *Oss) GetBucket() string

func (*Oss) GetConnectTimeout

func (x *Oss) GetConnectTimeout() int64

func (*Oss) GetEndpoint

func (x *Oss) GetEndpoint() string

func (*Oss) GetReadTimeout

func (x *Oss) GetReadTimeout() int64

func (*Oss) GetRegion

func (x *Oss) GetRegion() string

func (*Oss) GetSsl

func (x *Oss) GetSsl() bool

func (*Oss) ProtoMessage

func (*Oss) ProtoMessage()

func (*Oss) ProtoReflect

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

func (*Oss) Reset

func (x *Oss) Reset()

func (*Oss) String

func (x *Oss) String() string

func (*Oss) Validate

func (m *Oss) Validate() error

Validate checks the field values on Oss with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Oss) ValidateAll

func (m *Oss) ValidateAll() error

ValidateAll checks the field values on Oss with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OssMultiError, or nil if none found.

type OssMultiError

type OssMultiError []error

OssMultiError is an error wrapping multiple validation errors returned by Oss.ValidateAll() if the designated constraints aren't met.

func (OssMultiError) AllErrors

func (m OssMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OssMultiError) Error

func (m OssMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OssValidationError

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

OssValidationError is the validation error returned by Oss.Validate if the designated constraints aren't met.

func (OssValidationError) Cause

func (e OssValidationError) Cause() error

Cause function returns cause value.

func (OssValidationError) Error

func (e OssValidationError) Error() string

Error satisfies the builtin error interface

func (OssValidationError) ErrorName

func (e OssValidationError) ErrorName() string

ErrorName returns error name.

func (OssValidationError) Field

func (e OssValidationError) Field() string

Field function returns field value.

func (OssValidationError) Key

func (e OssValidationError) Key() bool

Key function returns key value.

func (OssValidationError) Reason

func (e OssValidationError) Reason() string

Reason function returns reason value.

type ReadRequest

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

func (*ReadRequest) Descriptor deprecated

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

Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.

func (*ReadRequest) GetPath

func (x *ReadRequest) GetPath() string

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) ProtoReflect

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

func (*ReadRequest) Reset

func (x *ReadRequest) Reset()

func (*ReadRequest) String

func (x *ReadRequest) String() string

func (*ReadRequest) Validate

func (m *ReadRequest) Validate() error

Validate checks the field values on ReadRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ReadRequest) ValidateAll

func (m *ReadRequest) ValidateAll() error

ValidateAll checks the field values on ReadRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadRequestMultiError, or nil if none found.

type ReadRequestMultiError

type ReadRequestMultiError []error

ReadRequestMultiError is an error wrapping multiple validation errors returned by ReadRequest.ValidateAll() if the designated constraints aren't met.

func (ReadRequestMultiError) AllErrors

func (m ReadRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReadRequestMultiError) Error

func (m ReadRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ReadRequestValidationError

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

ReadRequestValidationError is the validation error returned by ReadRequest.Validate if the designated constraints aren't met.

func (ReadRequestValidationError) Cause

Cause function returns cause value.

func (ReadRequestValidationError) Error

Error satisfies the builtin error interface

func (ReadRequestValidationError) ErrorName

func (e ReadRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ReadRequestValidationError) Field

Field function returns field value.

func (ReadRequestValidationError) Key

Key function returns key value.

func (ReadRequestValidationError) Reason

Reason function returns reason value.

type ReadResponse

type ReadResponse struct {
	Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadResponse) Descriptor deprecated

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

Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.

func (*ReadResponse) GetChunk

func (x *ReadResponse) GetChunk() []byte

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) ProtoReflect

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

func (*ReadResponse) Reset

func (x *ReadResponse) Reset()

func (*ReadResponse) String

func (x *ReadResponse) String() string

func (*ReadResponse) Validate

func (m *ReadResponse) Validate() error

Validate checks the field values on ReadResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ReadResponse) ValidateAll

func (m *ReadResponse) ValidateAll() error

ValidateAll checks the field values on ReadResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadResponseMultiError, or nil if none found.

type ReadResponseMultiError

type ReadResponseMultiError []error

ReadResponseMultiError is an error wrapping multiple validation errors returned by ReadResponse.ValidateAll() if the designated constraints aren't met.

func (ReadResponseMultiError) AllErrors

func (m ReadResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReadResponseMultiError) Error

func (m ReadResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ReadResponseValidationError

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

ReadResponseValidationError is the validation error returned by ReadResponse.Validate if the designated constraints aren't met.

func (ReadResponseValidationError) Cause

Cause function returns cause value.

func (ReadResponseValidationError) Error

Error satisfies the builtin error interface

func (ReadResponseValidationError) ErrorName

func (e ReadResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ReadResponseValidationError) Field

Field function returns field value.

func (ReadResponseValidationError) Key

Key function returns key value.

func (ReadResponseValidationError) Reason

Reason function returns reason value.

type Redis

type Redis struct {
	Network      string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr         string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Password     string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Db           int32  `protobuf:"varint,4,opt,name=db,proto3" json:"db,omitempty"`
	DialTimeout  int64  `protobuf:"varint,5,opt,name=dial_timeout,proto3" json:"dial_timeout,omitempty"`
	ReadTimeout  int64  `protobuf:"varint,6,opt,name=read_timeout,proto3" json:"read_timeout,omitempty"`
	WriteTimeout int64  `protobuf:"varint,7,opt,name=write_timeout,proto3" json:"write_timeout,omitempty"`
	// contains filtered or unexported fields
}

Redis

func (*Redis) Descriptor deprecated

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

Deprecated: Use Redis.ProtoReflect.Descriptor instead.

func (*Redis) GetAddr

func (x *Redis) GetAddr() string

func (*Redis) GetDb

func (x *Redis) GetDb() int32

func (*Redis) GetDialTimeout

func (x *Redis) GetDialTimeout() int64

func (*Redis) GetNetwork

func (x *Redis) GetNetwork() string

func (*Redis) GetPassword

func (x *Redis) GetPassword() string

func (*Redis) GetReadTimeout

func (x *Redis) GetReadTimeout() int64

func (*Redis) GetWriteTimeout

func (x *Redis) GetWriteTimeout() int64

func (*Redis) ProtoMessage

func (*Redis) ProtoMessage()

func (*Redis) ProtoReflect

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

func (*Redis) Reset

func (x *Redis) Reset()

func (*Redis) String

func (x *Redis) String() string

func (*Redis) Validate

func (m *Redis) Validate() error

Validate checks the field values on Redis with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Redis) ValidateAll

func (m *Redis) ValidateAll() error

ValidateAll checks the field values on Redis with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RedisMultiError, or nil if none found.

type RedisMultiError

type RedisMultiError []error

RedisMultiError is an error wrapping multiple validation errors returned by Redis.ValidateAll() if the designated constraints aren't met.

func (RedisMultiError) AllErrors

func (m RedisMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RedisMultiError) Error

func (m RedisMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RedisValidationError

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

RedisValidationError is the validation error returned by Redis.Validate if the designated constraints aren't met.

func (RedisValidationError) Cause

func (e RedisValidationError) Cause() error

Cause function returns cause value.

func (RedisValidationError) Error

func (e RedisValidationError) Error() string

Error satisfies the builtin error interface

func (RedisValidationError) ErrorName

func (e RedisValidationError) ErrorName() string

ErrorName returns error name.

func (RedisValidationError) Field

func (e RedisValidationError) Field() string

Field function returns field value.

func (RedisValidationError) Key

func (e RedisValidationError) Key() bool

Key function returns key value.

func (RedisValidationError) Reason

func (e RedisValidationError) Reason() string

Reason function returns reason value.

type RenameRequest

type RenameRequest struct {
	FromPath string `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"`
	ToPath   string `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"`
	// contains filtered or unexported fields
}

func (*RenameRequest) Descriptor deprecated

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

Deprecated: Use RenameRequest.ProtoReflect.Descriptor instead.

func (*RenameRequest) GetFromPath

func (x *RenameRequest) GetFromPath() string

func (*RenameRequest) GetToPath

func (x *RenameRequest) GetToPath() 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

func (*RenameRequest) Validate

func (m *RenameRequest) Validate() error

Validate checks the field values on RenameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RenameRequest) ValidateAll

func (m *RenameRequest) ValidateAll() error

ValidateAll checks the field values on RenameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RenameRequestMultiError, or nil if none found.

type RenameRequestMultiError

type RenameRequestMultiError []error

RenameRequestMultiError is an error wrapping multiple validation errors returned by RenameRequest.ValidateAll() if the designated constraints aren't met.

func (RenameRequestMultiError) AllErrors

func (m RenameRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RenameRequestMultiError) Error

func (m RenameRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RenameRequestValidationError

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

RenameRequestValidationError is the validation error returned by RenameRequest.Validate if the designated constraints aren't met.

func (RenameRequestValidationError) Cause

Cause function returns cause value.

func (RenameRequestValidationError) Error

Error satisfies the builtin error interface

func (RenameRequestValidationError) ErrorName

func (e RenameRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RenameRequestValidationError) Field

Field function returns field value.

func (RenameRequestValidationError) Key

Key function returns key value.

func (RenameRequestValidationError) Reason

Reason function returns reason value.

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

func (*RenameResponse) Validate

func (m *RenameResponse) Validate() error

Validate checks the field values on RenameResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RenameResponse) ValidateAll

func (m *RenameResponse) ValidateAll() error

ValidateAll checks the field values on RenameResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RenameResponseMultiError, or nil if none found.

type RenameResponseMultiError

type RenameResponseMultiError []error

RenameResponseMultiError is an error wrapping multiple validation errors returned by RenameResponse.ValidateAll() if the designated constraints aren't met.

func (RenameResponseMultiError) AllErrors

func (m RenameResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RenameResponseMultiError) Error

func (m RenameResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RenameResponseValidationError

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

RenameResponseValidationError is the validation error returned by RenameResponse.Validate if the designated constraints aren't met.

func (RenameResponseValidationError) Cause

Cause function returns cause value.

func (RenameResponseValidationError) Error

Error satisfies the builtin error interface

func (RenameResponseValidationError) ErrorName

func (e RenameResponseValidationError) ErrorName() string

ErrorName returns error name.

func (RenameResponseValidationError) Field

Field function returns field value.

func (RenameResponseValidationError) Key

Key function returns key value.

func (RenameResponseValidationError) Reason

Reason function returns reason value.

type StatRequest

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

func (*StatRequest) Descriptor deprecated

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

Deprecated: Use StatRequest.ProtoReflect.Descriptor instead.

func (*StatRequest) GetPath

func (x *StatRequest) GetPath() string

func (*StatRequest) ProtoMessage

func (*StatRequest) ProtoMessage()

func (*StatRequest) ProtoReflect

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

func (*StatRequest) Reset

func (x *StatRequest) Reset()

func (*StatRequest) String

func (x *StatRequest) String() string

func (*StatRequest) Validate

func (m *StatRequest) Validate() error

Validate checks the field values on StatRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StatRequest) ValidateAll

func (m *StatRequest) ValidateAll() error

ValidateAll checks the field values on StatRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatRequestMultiError, or nil if none found.

type StatRequestMultiError

type StatRequestMultiError []error

StatRequestMultiError is an error wrapping multiple validation errors returned by StatRequest.ValidateAll() if the designated constraints aren't met.

func (StatRequestMultiError) AllErrors

func (m StatRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatRequestMultiError) Error

func (m StatRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StatRequestValidationError

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

StatRequestValidationError is the validation error returned by StatRequest.Validate if the designated constraints aren't met.

func (StatRequestValidationError) Cause

Cause function returns cause value.

func (StatRequestValidationError) Error

Error satisfies the builtin error interface

func (StatRequestValidationError) ErrorName

func (e StatRequestValidationError) ErrorName() string

ErrorName returns error name.

func (StatRequestValidationError) Field

Field function returns field value.

func (StatRequestValidationError) Key

Key function returns key value.

func (StatRequestValidationError) Reason

Reason function returns reason value.

type StatResponse

type StatResponse struct {
	File *FileInfo `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*StatResponse) Descriptor deprecated

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

Deprecated: Use StatResponse.ProtoReflect.Descriptor instead.

func (*StatResponse) GetFile

func (x *StatResponse) GetFile() *FileInfo

func (*StatResponse) ProtoMessage

func (*StatResponse) ProtoMessage()

func (*StatResponse) ProtoReflect

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

func (*StatResponse) Reset

func (x *StatResponse) Reset()

func (*StatResponse) String

func (x *StatResponse) String() string

func (*StatResponse) Validate

func (m *StatResponse) Validate() error

Validate checks the field values on StatResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StatResponse) ValidateAll

func (m *StatResponse) ValidateAll() error

ValidateAll checks the field values on StatResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatResponseMultiError, or nil if none found.

type StatResponseMultiError

type StatResponseMultiError []error

StatResponseMultiError is an error wrapping multiple validation errors returned by StatResponse.ValidateAll() if the designated constraints aren't met.

func (StatResponseMultiError) AllErrors

func (m StatResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatResponseMultiError) Error

func (m StatResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StatResponseValidationError

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

StatResponseValidationError is the validation error returned by StatResponse.Validate if the designated constraints aren't met.

func (StatResponseValidationError) Cause

Cause function returns cause value.

func (StatResponseValidationError) Error

Error satisfies the builtin error interface

func (StatResponseValidationError) ErrorName

func (e StatResponseValidationError) ErrorName() string

ErrorName returns error name.

func (StatResponseValidationError) Field

Field function returns field value.

func (StatResponseValidationError) Key

Key function returns key value.

func (StatResponseValidationError) Reason

Reason function returns reason value.

type Storage

type Storage struct {

	// Map of named FileStore configurations.
	Filestores map[string]*FileStore `` /* 147-byte string literal not displayed */
	// Map of named Cache configurations.
	Caches map[string]*Cache `` /* 139-byte string literal not displayed */
	// Map of named Database configurations.
	Databases map[string]*Database `` /* 145-byte string literal not displayed */
	// Optional: Default instance names for each type.
	DefaultFilestore *string `protobuf:"bytes,4,opt,name=default_filestore,proto3,oneof" json:"default_filestore,omitempty"`
	DefaultCache     *string `protobuf:"bytes,5,opt,name=default_cache,proto3,oneof" json:"default_cache,omitempty"`
	DefaultDatabase  *string `protobuf:"bytes,6,opt,name=default_database,proto3,oneof" json:"default_database,omitempty"`
	// contains filtered or unexported fields
}

Storage is the top-level configuration, and its structure is now compatible with all parsers.

func (*Storage) Descriptor deprecated

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

Deprecated: Use Storage.ProtoReflect.Descriptor instead.

func (*Storage) GetCaches

func (x *Storage) GetCaches() map[string]*Cache

func (*Storage) GetDatabases

func (x *Storage) GetDatabases() map[string]*Database

func (*Storage) GetDefaultCache

func (x *Storage) GetDefaultCache() string

func (*Storage) GetDefaultDatabase

func (x *Storage) GetDefaultDatabase() string

func (*Storage) GetDefaultFilestore

func (x *Storage) GetDefaultFilestore() string

func (*Storage) GetFilestores

func (x *Storage) GetFilestores() map[string]*FileStore

func (*Storage) ProtoMessage

func (*Storage) ProtoMessage()

func (*Storage) ProtoReflect

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

func (*Storage) Reset

func (x *Storage) Reset()

func (*Storage) String

func (x *Storage) String() string

func (*Storage) Validate

func (m *Storage) Validate() error

Validate checks the field values on Storage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Storage) ValidateAll

func (m *Storage) ValidateAll() error

ValidateAll checks the field values on Storage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StorageMultiError, or nil if none found.

type StorageMultiError

type StorageMultiError []error

StorageMultiError is an error wrapping multiple validation errors returned by Storage.ValidateAll() if the designated constraints aren't met.

func (StorageMultiError) AllErrors

func (m StorageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StorageMultiError) Error

func (m StorageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StorageServiceClient

type StorageServiceClient interface {
	// List files and directories at a given path.
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	// Get information about a single file or directory.
	Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error)
	// Create a new directory.
	Mkdir(ctx context.Context, in *MkdirRequest, opts ...grpc.CallOption) (*MkdirResponse, error)
	// Delete a file or directory.
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	// Rename or move a file or directory.
	Rename(ctx context.Context, in *RenameRequest, opts ...grpc.CallOption) (*RenameResponse, error)
	// Read a file's content as a stream.
	Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ReadResponse], error)
	// Write a file's content via a stream.
	// NOTE: This is suitable for reliable networks. For client-side uploads,
	// use the chunked upload methods.
	Write(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[WriteRequest, WriteResponse], error)
	// Initiates a new chunked upload and returns an upload_id.
	InitiateUpload(ctx context.Context, in *InitiateUploadRequest, opts ...grpc.CallOption) (*InitiateUploadResponse, error)
	// Uploads a chunk of data for a given upload_id.
	// NOTE: gRPC-Gateway does not support client-streaming RPCs well for file uploads.
	// This RPC should be called directly via gRPC or a custom HTTP handler.
	UploadChunk(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[UploadChunkRequest, UploadChunkResponse], error)
	// Finalizes a chunked upload, assembling the chunks into the final file.
	FinalizeUpload(ctx context.Context, in *FinalizeUploadRequest, opts ...grpc.CallOption) (*FinalizeUploadResponse, error)
}

StorageServiceClient is the client API for StorageService 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.

StorageService defines the operations for file and directory manipulation.

type StorageServiceHTTPClient

type StorageServiceHTTPClient interface {
	Delete(ctx context.Context, req *DeleteRequest, opts ...http.CallOption) (rsp *DeleteResponse, err error)
	FinalizeUpload(ctx context.Context, req *FinalizeUploadRequest, opts ...http.CallOption) (rsp *FinalizeUploadResponse, err error)
	InitiateUpload(ctx context.Context, req *InitiateUploadRequest, opts ...http.CallOption) (rsp *InitiateUploadResponse, err error)
	List(ctx context.Context, req *ListRequest, opts ...http.CallOption) (rsp *ListResponse, err error)
	Mkdir(ctx context.Context, req *MkdirRequest, opts ...http.CallOption) (rsp *MkdirResponse, err error)
	Rename(ctx context.Context, req *RenameRequest, opts ...http.CallOption) (rsp *RenameResponse, err error)
	Stat(ctx context.Context, req *StatRequest, opts ...http.CallOption) (rsp *StatResponse, err error)
}

func NewStorageServiceHTTPClient

func NewStorageServiceHTTPClient(client *http.Client) StorageServiceHTTPClient

type StorageServiceHTTPClientImpl

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

func (*StorageServiceHTTPClientImpl) Delete

func (*StorageServiceHTTPClientImpl) FinalizeUpload

func (*StorageServiceHTTPClientImpl) InitiateUpload

func (*StorageServiceHTTPClientImpl) List

func (*StorageServiceHTTPClientImpl) Mkdir

func (*StorageServiceHTTPClientImpl) Rename

func (*StorageServiceHTTPClientImpl) Stat

type StorageServiceHTTPServer

type StorageServiceHTTPServer interface {
	// Delete Delete a file or directory.
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	// FinalizeUpload Finalizes a chunked upload, assembling the chunks into the final file.
	FinalizeUpload(context.Context, *FinalizeUploadRequest) (*FinalizeUploadResponse, error)
	// InitiateUpload Initiates a new chunked upload and returns an upload_id.
	InitiateUpload(context.Context, *InitiateUploadRequest) (*InitiateUploadResponse, error)
	// List List files and directories at a given path.
	List(context.Context, *ListRequest) (*ListResponse, error)
	// Mkdir Create a new directory.
	Mkdir(context.Context, *MkdirRequest) (*MkdirResponse, error)
	// Rename Rename or move a file or directory.
	Rename(context.Context, *RenameRequest) (*RenameResponse, error)
	// Stat Get information about a single file or directory.
	Stat(context.Context, *StatRequest) (*StatResponse, error)
}

type StorageServiceServer

type StorageServiceServer interface {
	// List files and directories at a given path.
	List(context.Context, *ListRequest) (*ListResponse, error)
	// Get information about a single file or directory.
	Stat(context.Context, *StatRequest) (*StatResponse, error)
	// Create a new directory.
	Mkdir(context.Context, *MkdirRequest) (*MkdirResponse, error)
	// Delete a file or directory.
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	// Rename or move a file or directory.
	Rename(context.Context, *RenameRequest) (*RenameResponse, error)
	// Read a file's content as a stream.
	Read(*ReadRequest, grpc.ServerStreamingServer[ReadResponse]) error
	// Write a file's content via a stream.
	// NOTE: This is suitable for reliable networks. For client-side uploads,
	// use the chunked upload methods.
	Write(grpc.ClientStreamingServer[WriteRequest, WriteResponse]) error
	// Initiates a new chunked upload and returns an upload_id.
	InitiateUpload(context.Context, *InitiateUploadRequest) (*InitiateUploadResponse, error)
	// Uploads a chunk of data for a given upload_id.
	// NOTE: gRPC-Gateway does not support client-streaming RPCs well for file uploads.
	// This RPC should be called directly via gRPC or a custom HTTP handler.
	UploadChunk(grpc.ClientStreamingServer[UploadChunkRequest, UploadChunkResponse]) error
	// Finalizes a chunked upload, assembling the chunks into the final file.
	FinalizeUpload(context.Context, *FinalizeUploadRequest) (*FinalizeUploadResponse, error)
	// contains filtered or unexported methods
}

StorageServiceServer is the server API for StorageService service. All implementations must embed UnimplementedStorageServiceServer for forward compatibility.

StorageService defines the operations for file and directory manipulation.

type StorageService_ReadClient

type StorageService_ReadClient = grpc.ServerStreamingClient[ReadResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StorageService_ReadServer

type StorageService_ReadServer = grpc.ServerStreamingServer[ReadResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StorageService_UploadChunkClient

type StorageService_UploadChunkClient = grpc.ClientStreamingClient[UploadChunkRequest, UploadChunkResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StorageService_UploadChunkServer

type StorageService_UploadChunkServer = grpc.ClientStreamingServer[UploadChunkRequest, UploadChunkResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StorageService_WriteClient

type StorageService_WriteClient = grpc.ClientStreamingClient[WriteRequest, WriteResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StorageService_WriteServer

type StorageService_WriteServer = grpc.ClientStreamingServer[WriteRequest, WriteResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StorageValidationError

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

StorageValidationError is the validation error returned by Storage.Validate if the designated constraints aren't met.

func (StorageValidationError) Cause

func (e StorageValidationError) Cause() error

Cause function returns cause value.

func (StorageValidationError) Error

func (e StorageValidationError) Error() string

Error satisfies the builtin error interface

func (StorageValidationError) ErrorName

func (e StorageValidationError) ErrorName() string

ErrorName returns error name.

func (StorageValidationError) Field

func (e StorageValidationError) Field() string

Field function returns field value.

func (StorageValidationError) Key

func (e StorageValidationError) Key() bool

Key function returns key value.

func (StorageValidationError) Reason

func (e StorageValidationError) Reason() string

Reason function returns reason value.

type UnimplementedStorageServiceServer

type UnimplementedStorageServiceServer struct{}

UnimplementedStorageServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedStorageServiceServer) Delete

func (UnimplementedStorageServiceServer) FinalizeUpload

func (UnimplementedStorageServiceServer) InitiateUpload

func (UnimplementedStorageServiceServer) List

func (UnimplementedStorageServiceServer) Mkdir

func (UnimplementedStorageServiceServer) Read

func (UnimplementedStorageServiceServer) Rename

func (UnimplementedStorageServiceServer) Stat

func (UnimplementedStorageServiceServer) Write

type UnsafeStorageServiceServer

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

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

type UploadChunkMetadata

type UploadChunkMetadata struct {
	UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
	// The position in the file to write this chunk.
	Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadChunkMetadata) Descriptor deprecated

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

Deprecated: Use UploadChunkMetadata.ProtoReflect.Descriptor instead.

func (*UploadChunkMetadata) GetOffset

func (x *UploadChunkMetadata) GetOffset() int64

func (*UploadChunkMetadata) GetUploadId

func (x *UploadChunkMetadata) GetUploadId() string

func (*UploadChunkMetadata) ProtoMessage

func (*UploadChunkMetadata) ProtoMessage()

func (*UploadChunkMetadata) ProtoReflect

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

func (*UploadChunkMetadata) Reset

func (x *UploadChunkMetadata) Reset()

func (*UploadChunkMetadata) String

func (x *UploadChunkMetadata) String() string

func (*UploadChunkMetadata) Validate

func (m *UploadChunkMetadata) Validate() error

Validate checks the field values on UploadChunkMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UploadChunkMetadata) ValidateAll

func (m *UploadChunkMetadata) ValidateAll() error

ValidateAll checks the field values on UploadChunkMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UploadChunkMetadataMultiError, or nil if none found.

type UploadChunkMetadataMultiError

type UploadChunkMetadataMultiError []error

UploadChunkMetadataMultiError is an error wrapping multiple validation errors returned by UploadChunkMetadata.ValidateAll() if the designated constraints aren't met.

func (UploadChunkMetadataMultiError) AllErrors

func (m UploadChunkMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UploadChunkMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UploadChunkMetadataValidationError

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

UploadChunkMetadataValidationError is the validation error returned by UploadChunkMetadata.Validate if the designated constraints aren't met.

func (UploadChunkMetadataValidationError) Cause

Cause function returns cause value.

func (UploadChunkMetadataValidationError) Error

Error satisfies the builtin error interface

func (UploadChunkMetadataValidationError) ErrorName

ErrorName returns error name.

func (UploadChunkMetadataValidationError) Field

Field function returns field value.

func (UploadChunkMetadataValidationError) Key

Key function returns key value.

func (UploadChunkMetadataValidationError) Reason

Reason function returns reason value.

type UploadChunkRequest

type UploadChunkRequest struct {

	// Types that are valid to be assigned to Data:
	//
	//	*UploadChunkRequest_Metadata
	//	*UploadChunkRequest_Chunk
	Data isUploadChunkRequest_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*UploadChunkRequest) Descriptor deprecated

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

Deprecated: Use UploadChunkRequest.ProtoReflect.Descriptor instead.

func (*UploadChunkRequest) GetChunk

func (x *UploadChunkRequest) GetChunk() []byte

func (*UploadChunkRequest) GetData

func (x *UploadChunkRequest) GetData() isUploadChunkRequest_Data

func (*UploadChunkRequest) GetMetadata

func (x *UploadChunkRequest) GetMetadata() *UploadChunkMetadata

func (*UploadChunkRequest) ProtoMessage

func (*UploadChunkRequest) ProtoMessage()

func (*UploadChunkRequest) ProtoReflect

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

func (*UploadChunkRequest) Reset

func (x *UploadChunkRequest) Reset()

func (*UploadChunkRequest) String

func (x *UploadChunkRequest) String() string

func (*UploadChunkRequest) Validate

func (m *UploadChunkRequest) Validate() error

Validate checks the field values on UploadChunkRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UploadChunkRequest) ValidateAll

func (m *UploadChunkRequest) ValidateAll() error

ValidateAll checks the field values on UploadChunkRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UploadChunkRequestMultiError, or nil if none found.

type UploadChunkRequestMultiError

type UploadChunkRequestMultiError []error

UploadChunkRequestMultiError is an error wrapping multiple validation errors returned by UploadChunkRequest.ValidateAll() if the designated constraints aren't met.

func (UploadChunkRequestMultiError) AllErrors

func (m UploadChunkRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UploadChunkRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UploadChunkRequestValidationError

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

UploadChunkRequestValidationError is the validation error returned by UploadChunkRequest.Validate if the designated constraints aren't met.

func (UploadChunkRequestValidationError) Cause

Cause function returns cause value.

func (UploadChunkRequestValidationError) Error

Error satisfies the builtin error interface

func (UploadChunkRequestValidationError) ErrorName

ErrorName returns error name.

func (UploadChunkRequestValidationError) Field

Field function returns field value.

func (UploadChunkRequestValidationError) Key

Key function returns key value.

func (UploadChunkRequestValidationError) Reason

Reason function returns reason value.

type UploadChunkRequest_Chunk

type UploadChunkRequest_Chunk struct {
	// Subsequent messages contain the file's binary chunks.
	Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}

type UploadChunkRequest_Metadata

type UploadChunkRequest_Metadata struct {
	// The first message of a new chunk stream can contain metadata.
	Metadata *UploadChunkMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}

type UploadChunkResponse

type UploadChunkResponse struct {
	UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
	// The number of bytes successfully written.
	WrittenSize int64 `protobuf:"varint,2,opt,name=written_size,json=writtenSize,proto3" json:"written_size,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadChunkResponse) Descriptor deprecated

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

Deprecated: Use UploadChunkResponse.ProtoReflect.Descriptor instead.

func (*UploadChunkResponse) GetUploadId

func (x *UploadChunkResponse) GetUploadId() string

func (*UploadChunkResponse) GetWrittenSize

func (x *UploadChunkResponse) GetWrittenSize() int64

func (*UploadChunkResponse) ProtoMessage

func (*UploadChunkResponse) ProtoMessage()

func (*UploadChunkResponse) ProtoReflect

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

func (*UploadChunkResponse) Reset

func (x *UploadChunkResponse) Reset()

func (*UploadChunkResponse) String

func (x *UploadChunkResponse) String() string

func (*UploadChunkResponse) Validate

func (m *UploadChunkResponse) Validate() error

Validate checks the field values on UploadChunkResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UploadChunkResponse) ValidateAll

func (m *UploadChunkResponse) ValidateAll() error

ValidateAll checks the field values on UploadChunkResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UploadChunkResponseMultiError, or nil if none found.

type UploadChunkResponseMultiError

type UploadChunkResponseMultiError []error

UploadChunkResponseMultiError is an error wrapping multiple validation errors returned by UploadChunkResponse.ValidateAll() if the designated constraints aren't met.

func (UploadChunkResponseMultiError) AllErrors

func (m UploadChunkResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UploadChunkResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UploadChunkResponseValidationError

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

UploadChunkResponseValidationError is the validation error returned by UploadChunkResponse.Validate if the designated constraints aren't met.

func (UploadChunkResponseValidationError) Cause

Cause function returns cause value.

func (UploadChunkResponseValidationError) Error

Error satisfies the builtin error interface

func (UploadChunkResponseValidationError) ErrorName

ErrorName returns error name.

func (UploadChunkResponseValidationError) Field

Field function returns field value.

func (UploadChunkResponseValidationError) Key

Key function returns key value.

func (UploadChunkResponseValidationError) Reason

Reason function returns reason value.

type WriteRequest

type WriteRequest struct {

	// Types that are valid to be assigned to Data:
	//
	//	*WriteRequest_Metadata
	//	*WriteRequest_Chunk
	Data isWriteRequest_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*WriteRequest) Descriptor deprecated

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

Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.

func (*WriteRequest) GetChunk

func (x *WriteRequest) GetChunk() []byte

func (*WriteRequest) GetData

func (x *WriteRequest) GetData() isWriteRequest_Data

func (*WriteRequest) GetMetadata

func (x *WriteRequest) GetMetadata() *WriteRequestMetadata

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) ProtoReflect

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

func (*WriteRequest) Reset

func (x *WriteRequest) Reset()

func (*WriteRequest) String

func (x *WriteRequest) String() string

func (*WriteRequest) Validate

func (m *WriteRequest) Validate() error

Validate checks the field values on WriteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*WriteRequest) ValidateAll

func (m *WriteRequest) ValidateAll() error

ValidateAll checks the field values on WriteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WriteRequestMultiError, or nil if none found.

type WriteRequestMetadata

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

func (*WriteRequestMetadata) Descriptor deprecated

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

Deprecated: Use WriteRequestMetadata.ProtoReflect.Descriptor instead.

func (*WriteRequestMetadata) GetPath

func (x *WriteRequestMetadata) GetPath() string

func (*WriteRequestMetadata) ProtoMessage

func (*WriteRequestMetadata) ProtoMessage()

func (*WriteRequestMetadata) ProtoReflect

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

func (*WriteRequestMetadata) Reset

func (x *WriteRequestMetadata) Reset()

func (*WriteRequestMetadata) String

func (x *WriteRequestMetadata) String() string

func (*WriteRequestMetadata) Validate

func (m *WriteRequestMetadata) Validate() error

Validate checks the field values on WriteRequestMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*WriteRequestMetadata) ValidateAll

func (m *WriteRequestMetadata) ValidateAll() error

ValidateAll checks the field values on WriteRequestMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WriteRequestMetadataMultiError, or nil if none found.

type WriteRequestMetadataMultiError

type WriteRequestMetadataMultiError []error

WriteRequestMetadataMultiError is an error wrapping multiple validation errors returned by WriteRequestMetadata.ValidateAll() if the designated constraints aren't met.

func (WriteRequestMetadataMultiError) AllErrors

func (m WriteRequestMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WriteRequestMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type WriteRequestMetadataValidationError

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

WriteRequestMetadataValidationError is the validation error returned by WriteRequestMetadata.Validate if the designated constraints aren't met.

func (WriteRequestMetadataValidationError) Cause

Cause function returns cause value.

func (WriteRequestMetadataValidationError) Error

Error satisfies the builtin error interface

func (WriteRequestMetadataValidationError) ErrorName

ErrorName returns error name.

func (WriteRequestMetadataValidationError) Field

Field function returns field value.

func (WriteRequestMetadataValidationError) Key

Key function returns key value.

func (WriteRequestMetadataValidationError) Reason

Reason function returns reason value.

type WriteRequestMultiError

type WriteRequestMultiError []error

WriteRequestMultiError is an error wrapping multiple validation errors returned by WriteRequest.ValidateAll() if the designated constraints aren't met.

func (WriteRequestMultiError) AllErrors

func (m WriteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WriteRequestMultiError) Error

func (m WriteRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type WriteRequestValidationError

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

WriteRequestValidationError is the validation error returned by WriteRequest.Validate if the designated constraints aren't met.

func (WriteRequestValidationError) Cause

Cause function returns cause value.

func (WriteRequestValidationError) Error

Error satisfies the builtin error interface

func (WriteRequestValidationError) ErrorName

func (e WriteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (WriteRequestValidationError) Field

Field function returns field value.

func (WriteRequestValidationError) Key

Key function returns key value.

func (WriteRequestValidationError) Reason

Reason function returns reason value.

type WriteRequest_Chunk

type WriteRequest_Chunk struct {
	// Subsequent messages contain the file's binary chunks.
	Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}

type WriteRequest_Metadata

type WriteRequest_Metadata struct {
	// The first message must contain the metadata.
	Metadata *WriteRequestMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}

type WriteResponse

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

func (*WriteResponse) Descriptor deprecated

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

Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.

func (*WriteResponse) GetPath

func (x *WriteResponse) GetPath() string

func (*WriteResponse) GetSize

func (x *WriteResponse) GetSize() int64

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) ProtoReflect

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

func (*WriteResponse) Reset

func (x *WriteResponse) Reset()

func (*WriteResponse) String

func (x *WriteResponse) String() string

func (*WriteResponse) Validate

func (m *WriteResponse) Validate() error

Validate checks the field values on WriteResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*WriteResponse) ValidateAll

func (m *WriteResponse) ValidateAll() error

ValidateAll checks the field values on WriteResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WriteResponseMultiError, or nil if none found.

type WriteResponseMultiError

type WriteResponseMultiError []error

WriteResponseMultiError is an error wrapping multiple validation errors returned by WriteResponse.ValidateAll() if the designated constraints aren't met.

func (WriteResponseMultiError) AllErrors

func (m WriteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WriteResponseMultiError) Error

func (m WriteResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type WriteResponseValidationError

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

WriteResponseValidationError is the validation error returned by WriteResponse.Validate if the designated constraints aren't met.

func (WriteResponseValidationError) Cause

Cause function returns cause value.

func (WriteResponseValidationError) Error

Error satisfies the builtin error interface

func (WriteResponseValidationError) ErrorName

func (e WriteResponseValidationError) ErrorName() string

ErrorName returns error name.

func (WriteResponseValidationError) Field

Field function returns field value.

func (WriteResponseValidationError) Key

Key function returns key value.

func (WriteResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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