loaders

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const FileSystemLoader = "file-system"

FileSystemLoader ...

View Source
const S3Loader = "s3"

S3Loader ...

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem interface {
	Loader
}

FileSystem ...

func NewFileSystem

func NewFileSystem(cfg config.FileSystemLoader) (FileSystem, error)

NewFileSystem ...

type Loader

type Loader interface {
	Load(ctx context.Context, uuid string, version string) (string, error)
	// contains filtered or unexported methods
}

Loader ...

type Manager

type Manager interface {
	GetLoaders(ctx context.Context) (map[string]Loader, error)
	GetLoader(ctx context.Context, name string) (*Loader, error)
	Register(name string, loader Loader) error
}

Manager ...

func NewManager

func NewManager(cfg *config.Config) (Manager, error)

NewManager ...

type S3

type S3 interface {
	Loader
}

S3 ...

func NewS3

func NewS3(cfg config.S3Loader) (S3, error)

NewS3 ...

Jump to

Keyboard shortcuts

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