Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance interface {
Store(catalog string, fsys fs.FS) error
Delete(catalog string) error
StorageServerHandler() http.Handler
}
Instance is a storage instance that stores FBC content of catalogs added to a cluster. It can be used to Store or Delete FBC in the host's filesystem. It also a manager runnable object, that starts a server to serve the content stored.
type LocalDir ¶
type LocalDir struct {
RootDir string
}
LocalDir is a storage Instance. When Storing a new FBC contained in fs.FS, the content is first written to a temporary file, after which it is copied to it's final destination in RootDir/catalogName/. This is done so that clients accessing the content stored in RootDir/catalogName have atomic view of the content for a catalog.
func (LocalDir) StorageServerHandler ¶
Click to show internal directories.
Click to hide internal directories.