storagev1

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_storage_v1_file_meta_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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.

Jump to

Keyboard shortcuts

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