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 ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock_archivestore is a generated GoMock package.
|
Package mock_archivestore is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.