manager

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 5 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 {
	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) (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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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