propagator

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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PATH_PREFIX = "cedana://"

Variables

This section is empty.

Functions

func CheckConfig added in v0.9.265

func CheckConfig() types.Check

func NewStorage

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

Types

type File

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

Cedana managed file

func NewDownloadableFile added in v0.9.257

func NewDownloadableFile(ctx context.Context, downloadUrl string) *File

func NewUploadableFile added in v0.9.257

func NewUploadableFile(ctx context.Context, uploadUrl string) *File

func (*File) Close

func (c *File) Close() error

func (*File) Read

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

func (*File) Write

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

type Storage

type Storage struct {
	*v1.V1RequestBuilder
}

Cedana managed storage

func (*Storage) Create

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

func (*Storage) CreatePath added in v0.9.303

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(_ context.Context, path string) error

func (*Storage) IsDir added in v0.9.248

func (s *Storage) IsDir(_ 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 added in v0.9.303

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