Versions in this module Expand all Collapse all v0 v0.7.1 Sep 14, 2022 v0.7.0 Jul 8, 2022 Changes in this version + const DefaultManifestType + const EntryMetadataContentTypeKey + const EntryMetadataFilenameKey + const ManifestMantarayContentType + const ManifestSimpleContentType + const RootPath + const WebsiteErrorDocumentPathKey + const WebsiteIndexDocumentSuffixKey + var ErrInvalidManifestType = errors.New("manifest: invalid type") + var ErrMissingReference = errors.New("manifest: missing reference") + var ErrNotFound = errors.New("manifest: not found") + type Entry interface + Metadata func() map[string]string + Reference func() swarm.Address + func NewEntry(reference swarm.Address, metadata map[string]string) Entry + type Interface interface + Add func(context.Context, string, Entry) error + HasPrefix func(context.Context, string) (bool, error) + IterateAddresses func(context.Context, swarm.AddressIterFunc) error + Lookup func(context.Context, string) (Entry, error) + Remove func(context.Context, string) error + Store func(context.Context, ...StoreSizeFunc) (swarm.Address, error) + Type func() string + func NewDefaultManifest(ls file.LoadSaver, encrypted bool) (Interface, error) + func NewDefaultManifestReference(reference swarm.Address, ls file.LoadSaver) (Interface, error) + func NewManifest(manifestType string, ls file.LoadSaver, encrypted bool) (Interface, error) + func NewManifestReference(manifestType string, reference swarm.Address, ls file.LoadSaver) (Interface, error) + func NewMantarayManifest(ls file.LoadSaver, encrypted bool) (Interface, error) + func NewMantarayManifestReference(reference swarm.Address, ls file.LoadSaver) (Interface, error) + func NewSimpleManifest(ls file.LoadSaver) (Interface, error) + func NewSimpleManifestReference(ref swarm.Address, l file.LoadSaver) (Interface, error) + type StoreSizeFunc func(int64) error