manager

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	LoadRaw(ctx context.Context) (io.ReadCloser, error)
	LoadC1Z(ctx context.Context) (*dotc1z.C1File, error)
	SaveC1Z(ctx context.Context) error
	Close(ctx context.Context) error
}

func New

func New(ctx context.Context, filePath string, opts ...ManagerOption) (Manager, error)

Given a file path, return a Manager that can read and write files to that path.

The first thing we do is check if the file path starts with "s3://". If it does, we return a new S3Manager. If it doesn't, we return a new LocalManager.

type ManagerOption added in v0.1.8

type ManagerOption func(*managerOptions)

func WithTmpDir added in v0.1.8

func WithTmpDir(tmpDir string) ManagerOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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