file

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(url *url.URL) (string, error)

Types

type FileBackend

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

func New

func New(url *url.URL) (*FileBackend, error)

func (FileBackend) Close

func (FileBackend) Close() error

func (FileBackend) CreateObject

Create object in the backend

func (FileBackend) DeleteObjects

Delete objects in the backend (single object or prefix)

func (*FileBackend) GetObject

func (self *FileBackend) GetObject(ctx context.Context, req schema.GetObjectRequest) (*schema.Object, error)

Get object metadata from the backend

func (FileBackend) ListObjects

func (self FileBackend) ListObjects(ctx context.Context, req schema.ObjectListRequest) (*schema.ObjectList, error)

List objects in the backend

func (*FileBackend) Name

func (self *FileBackend) Name() string

Name returns the name of the backend

func (*FileBackend) ReadObject

Read object content from the backend. Caller must close the returned reader.

func (*FileBackend) URL

func (self *FileBackend) URL() *url.URL

URL returns the backend destination URL. The scheme, host (bucket/name), and path (prefix/directory) identify the storage location. Query parameters carry useful non-credential details: region, endpoint, anonymous.

Jump to

Keyboard shortcuts

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