file_repository

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff struct {
	//
	//操作类型
	Op string `protobuf:"bytes,1,opt,name=op,proto3" json:"op" form:"op"`
	//
	//文件路径
	File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file" form:"file"`
	//
	//文件类型
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type" form:"type"`
	//
	//文件权限
	Perm string `protobuf:"bytes,4,opt,name=perm,proto3" json:"perm" form:"perm"`
	//
	//新的检验值
	NewMd5 string `protobuf:"bytes,5,opt,name=newMd5,proto3" json:"newMd5" form:"newMd5"`
	//
	//旧的检验值
	OldMd5 string `protobuf:"bytes,6,opt,name=oldMd5,proto3" json:"oldMd5" form:"oldMd5"`
	//
	//文件原本大小
	OldSize int64 `protobuf:"varint,7,opt,name=oldSize,proto3" json:"oldSize" form:"oldSize"`
	//
	//文件新的大小
	NewSize int64 `protobuf:"varint,8,opt,name=newSize,proto3" json:"newSize" form:"newSize"`
	//
	//参数path的编码格式
	Encoding             string   `protobuf:"bytes,9,opt,name=encoding,proto3" json:"encoding" form:"encoding"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

变更信息

func (*Diff) Descriptor

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

func (*Diff) GetEncoding

func (m *Diff) GetEncoding() string

func (*Diff) GetFile

func (m *Diff) GetFile() string

func (*Diff) GetNewMd5

func (m *Diff) GetNewMd5() string

func (*Diff) GetNewSize

func (m *Diff) GetNewSize() int64

func (*Diff) GetOldMd5

func (m *Diff) GetOldMd5() string

func (*Diff) GetOldSize

func (m *Diff) GetOldSize() int64

func (*Diff) GetOp

func (m *Diff) GetOp() string

func (*Diff) GetPerm

func (m *Diff) GetPerm() string

func (*Diff) GetType

func (m *Diff) GetType() string

func (*Diff) ProtoMessage

func (*Diff) ProtoMessage()

func (*Diff) Reset

func (m *Diff) Reset()

func (*Diff) String

func (m *Diff) String() string

func (*Diff) Validate

func (this *Diff) Validate() error

func (*Diff) XXX_DiscardUnknown

func (m *Diff) XXX_DiscardUnknown()

func (*Diff) XXX_Marshal

func (m *Diff) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Diff) XXX_Merge

func (m *Diff) XXX_Merge(src proto.Message)

func (*Diff) XXX_Size

func (m *Diff) XXX_Size() int

func (*Diff) XXX_Unmarshal

func (m *Diff) XXX_Unmarshal(b []byte) error

type FileInfo

type FileInfo struct {
	//
	//文件名
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//文件类型
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type" form:"type"`
	//
	//文件大小
	Size_ int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size" form:"size"`
	//
	//文件权限
	Perm string `protobuf:"bytes,4,opt,name=perm,proto3" json:"perm" form:"perm"`
	//
	//文件修改时间
	Mtime string `protobuf:"bytes,5,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	//
	//文件创建时间
	Ctime string `protobuf:"bytes,6,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//如果type=link,link为链接地址
	Link string `protobuf:"bytes,7,opt,name=link,proto3" json:"link" form:"link"`
	//
	//参数path的编码格式
	Encoding string `protobuf:"bytes,8,opt,name=encoding,proto3" json:"encoding" form:"encoding"`
	//
	//文件hash
	Md5                  string   `protobuf:"bytes,9,opt,name=md5,proto3" json:"md5" form:"md5"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

归档文件信息

func (*FileInfo) Descriptor

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

func (*FileInfo) GetCtime

func (m *FileInfo) GetCtime() string

func (*FileInfo) GetEncoding

func (m *FileInfo) GetEncoding() string
func (m *FileInfo) GetLink() string

func (*FileInfo) GetMd5

func (m *FileInfo) GetMd5() string

func (*FileInfo) GetMtime

func (m *FileInfo) GetMtime() string

func (*FileInfo) GetName

func (m *FileInfo) GetName() string

func (*FileInfo) GetPerm

func (m *FileInfo) GetPerm() string

func (*FileInfo) GetSize_

func (m *FileInfo) GetSize_() int64

func (*FileInfo) GetType

func (m *FileInfo) GetType() string

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) Reset

func (m *FileInfo) Reset()

func (*FileInfo) String

func (m *FileInfo) String() string

func (*FileInfo) Validate

func (this *FileInfo) Validate() error

func (*FileInfo) XXX_DiscardUnknown

func (m *FileInfo) XXX_DiscardUnknown()

func (*FileInfo) XXX_Marshal

func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileInfo) XXX_Merge

func (m *FileInfo) XXX_Merge(src proto.Message)

func (*FileInfo) XXX_Size

func (m *FileInfo) XXX_Size() int

func (*FileInfo) XXX_Unmarshal

func (m *FileInfo) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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