csx

package
v0.9.310 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const PATH_PREFIX = "csx://"

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(ctx context.Context) (cedana_io.Storage, error)

Types

type File

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

func NewFile

func NewFile(ctx context.Context, objectID, actionID, path string, conn *grpc.ClientConn, csxClient csxgrpc.CSXClient) *File

func (*File) Close

func (f *File) Close() error

func (*File) Read

func (f *File) Read(p []byte) (int, error)

func (*File) Write

func (f *File) Write(p []byte) (int, error)

type Storage

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

func (*Storage) Create

func (s *Storage) Create(ctx context.Context, path string) (io.WriteCloser, error)

func (*Storage) CreatePath

func (s *Storage) CreatePath(ctx context.Context, dir, name string) (path string, cleanup func(cancel bool) error, err error)

func (*Storage) Delete

func (s *Storage) Delete(ctx context.Context, path string) error

func (*Storage) IsDir

func (s *Storage) IsDir(ctx context.Context, path string) (bool, error)

func (*Storage) IsRemote

func (s *Storage) IsRemote() bool

func (*Storage) Open

func (s *Storage) Open(ctx context.Context, path string) (io.ReadCloser, error)

func (*Storage) ReadDir

func (s *Storage) ReadDir(ctx context.Context, path string) ([]string, error)

func (*Storage) ReadPath

func (s *Storage) ReadPath(ctx context.Context, path string) (string, func() error, error)

Jump to

Keyboard shortcuts

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