filesystem

package
v1.6.5-rc46 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidObjectKey  = errors.New("invalid object key")
	ErrNotExistObjectKey = errors.New("not exist object key")
)

Functions

This section is empty.

Types

type FileSystemOp

type FileSystemOp interface {
	Upload(key string, file []byte) error
	Read(key string) ([]byte, error)
	Delete(key string) error
	StatObject(key string) (*ObjectMeta, error)
}

type ObjectMeta added in v1.4.6

type ObjectMeta struct {
	ObjectID    uint64 `json:"objectID"`
	Group       string `json:"group"`
	Size        int64  `json:"size"`
	ContentType string `json:"contentType"`
	ETag        string `json:"etag"`
}

func ParseObjectMetaFromKey added in v1.4.6

func ParseObjectMetaFromKey(key string) (*ObjectMeta, error)

func (ObjectMeta) Key added in v1.4.6

func (meta ObjectMeta) Key() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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