entry

package
v0.0.0-...-331262d Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobEntry

type BlobEntry struct {
	BlobID string
	Meta   payload.BlobMeta
	// contains filtered or unexported fields
}

func (*BlobEntry) ModTime

func (e *BlobEntry) ModTime(context.Context) time.Time

func (*BlobEntry) Remote

func (e *BlobEntry) Remote() string

func (*BlobEntry) Size

func (e *BlobEntry) Size() int64

func (*BlobEntry) String

func (e *BlobEntry) String() string

type DirectoryBlobEntry

type DirectoryBlobEntry struct {
	BlobEntry
}

func NewDirectory

func NewDirectory(blobID string, blobMeta payload.BlobMeta, path string, client *menmos.Client, fs fs.Info) *DirectoryBlobEntry

func (*DirectoryBlobEntry) ID

func (b *DirectoryBlobEntry) ID() string

func (*DirectoryBlobEntry) Items

func (b *DirectoryBlobEntry) Items() int64

type FileBlobEntry

type FileBlobEntry struct {
	BlobEntry
}

func NewFile

func NewFile(blobID string, blobMeta payload.BlobMeta, path string, client *menmos.Client, fs fs.Info) *FileBlobEntry

func (*FileBlobEntry) Fs

func (b *FileBlobEntry) Fs() fs.Info

func (*FileBlobEntry) Hash

func (b *FileBlobEntry) Hash(ctx context.Context, ty hash.Type) (string, error)

func (*FileBlobEntry) Open

func (b *FileBlobEntry) Open(ctx context.Context, options ...fs.OpenOption) (io.ReadCloser, error)

func (*FileBlobEntry) Remove

func (b *FileBlobEntry) Remove(ctx context.Context) error

func (*FileBlobEntry) SetModTime

func (b *FileBlobEntry) SetModTime(ctx context.Context, t time.Time) error

func (*FileBlobEntry) Storable

func (b *FileBlobEntry) Storable() bool

func (*FileBlobEntry) Update

func (b *FileBlobEntry) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error

type VDirEntry

type VDirEntry struct {
	Name     string
	FullPath string
}

func (*VDirEntry) ID

func (e *VDirEntry) ID() string

func (*VDirEntry) Items

func (e *VDirEntry) Items() int64

func (*VDirEntry) ModTime

func (e *VDirEntry) ModTime(context.Context) time.Time

func (*VDirEntry) Remote

func (e *VDirEntry) Remote() string

func (*VDirEntry) Size

func (e *VDirEntry) Size() int64

func (*VDirEntry) String

func (e *VDirEntry) String() string

Jump to

Keyboard shortcuts

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