server

package
v0.0.0-...-f66ea8c Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(meta meta.Store, chunk engine.Engine) *Server

func (*Server) DeleteObject

func (svr *Server) DeleteObject(ctx context.Context, bkt bucket.Bucket, fp fullpath.FullPath) error

func (*Server) GetEntry

func (svr *Server) GetEntry(ctx context.Context, bucket bucket.Bucket, fp fullpath.FullPath) (*entry.Entry, error)

func (*Server) GetObject

func (svr *Server) GetObject(ctx context.Context, ent *entry.Entry, writer io.Writer) error

func (*Server) ListObjects

func (svr *Server) ListObjects(ctx context.Context, bkt bucket.Bucket, fp fullpath.FullPath) ([]*entry.Entry, error)

func (*Server) PutObject

func (svr *Server) PutObject(ctx context.Context, bucket bucket.Bucket, fp fullpath.FullPath, reader io.Reader) error

Jump to

Keyboard shortcuts

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