archivestore

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const CName = "node.archive.store"

Variables

View Source
var (
	ErrNotFound = errors.New("archive store: not found")
	ErrDisabled = errors.New("archive store is disabled")
)

Functions

This section is empty.

Types

type ArchiveStore

type ArchiveStore interface {
	app.Component
	Get(ctx context.Context, name string) (data io.ReadCloser, err error)
	Put(ctx context.Context, name string, data io.ReadSeeker) (err error)
	Delete(ctx context.Context, name string) (err error)
}

func New

func New() ArchiveStore

type Config

type Config struct {
	Enabled        bool        `yaml:"enabled"`
	Profile        string      `yaml:"profile"`
	Region         string      `yaml:"region"`
	Bucket         string      `yaml:"bucket"`
	Endpoint       string      `yaml:"endpoint"`
	Credentials    Credentials `yaml:"credentials"`
	ForcePathStyle bool        `yaml:"forcePathStyle"`
	KeyPrefix      string      `yaml:"keyPrefix"`
}

type Credentials

type Credentials struct {
	AccessKey string `yaml:"accessKey"`
	SecretKey string `yaml:"secretKey"`
}

Directories

Path Synopsis
Package mock_archivestore is a generated GoMock package.
Package mock_archivestore is a generated GoMock package.

Jump to

Keyboard shortcuts

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