caf

package module
v0.0.0-...-98ef36f Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

ugent-library/caf

Caf is a simple content addressable filestore with FS and S3 backends.

Install

go get -u github.com/ugent-library/caf

Documentation

Overview

TODO make hash algorithm configurable

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Exists(context.Context, string) (bool, error)
	Get(context.Context, string, io.Writer) error
	Add(context.Context, string, io.Reader) (string, error)
	Delete(context.Context, string) error
	EachID(context.Context, func(string) bool) error
}

Directories

Path Synopsis
TODO use fs.FS
TODO use fs.FS

Jump to

Keyboard shortcuts

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