package
0.7.0
Repository: https://github.com/digineo/texd.git
Documentation: pkg.go.dev

# Packages

Package dir implements an on-disk reference storage adapter.
package memcached implements a reference store adapter backed by a separate Memcached server.
Package nop implements a no-op reference store adapter.

# Functions

No description provided by the author
No description provided by the author
NewIdentifier calculates the reference ID from the given file contents.
NewStore creates a new reference store with the given DSN and retention policy.
ParseIdentifier takes an input in the form "sha256:...." and transforms it into an Identifier.
ReadIdentifier creates an identifier of the contents read from r.
RegisterAdapter will remember the given adapter with under the given name.
ToIdentifier converts b into the canonical Identifier representation.

# Variables

ErrInvalidAccessListConfig is returned from NewAccessList when the quota arguments (maxItems and totalSizeQuota) are both <= 0.
ErrUnknownReference can be returned from Adapter implementations, if a given Identifier is unknown to them.

# Structs

AccessList implements a size- and/or space-limited RetentionPolicy.
No description provided by the author
FileRef represents a reference file.
KeepForever is a no-op retention policy, i.e.
PurgeOnStart will delete all files when the reference store is instantiated.

# Interfaces

The Adapter interface describes the protocol to interact with different storage backends.
A RetentionPolicy describes how various reference store implementations should handle deletion of old references.

# Type aliases

AdapterConstructor constructs a new adapter implementation from the given config DSN and retention policy.
No description provided by the author
File references are identified by their checksum.