backend

package
v0.0.0-...-8c72eba Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileBackend

type FileBackend struct {
	Path string `json:"path"`
}

func (*FileBackend) IsAccessible

func (fb *FileBackend) IsAccessible() (bool, error)

func (*FileBackend) Name

func (fb *FileBackend) Name() string

func (*FileBackend) NewFS

func (fb *FileBackend) NewFS() (ocfl.WriteFS, error)

type S3Backend

type S3Backend struct {
	Bucket  string `json:"bucket"`
	Logger  *slog.Logger
	Options url.Values `json:"options"`
}

supports "s3" and "azure" backend types

func (S3Backend) IsAccessible

func (cb S3Backend) IsAccessible() (bool, error)

func (S3Backend) Name

func (cb S3Backend) Name() string

func (S3Backend) NewFS

func (cb S3Backend) NewFS() (ocfl.WriteFS, error)

Jump to

Keyboard shortcuts

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