Documentation ¶
Index ¶
- Constants
- Variables
- func GetContentSubPathParams() []*ocfl.ExtensionExternalParam
- func GetIndexerParams() []*ocfl.ExtensionExternalParam
- func GetInitialParams() []*ocfl.ExtensionExternalParam
- func GetMetaFileParams() []*ocfl.ExtensionExternalParam
- func GetMetsParams() []*ocfl.ExtensionExternalParam
- func NewDirectClean(config *DirectCleanConfig) (ocfl.Extension, error)
- func NewDirectCleanFS(fsys fs.FS) (ocfl.Extension, error)
- func NewPathDirectFS(fsys fs.FS) (ocfl.Extension, error)
- type Config
- type ContentSubPath
- func (sl *ContentSubPath) BuildObjectExtractPath(object ocfl.Object, originalPath string, area string) (string, error)
- func (sl *ContentSubPath) BuildObjectManifestPath(object ocfl.Object, originalPath string, area string) (string, error)
- func (sl *ContentSubPath) BuildObjectStatePath(object ocfl.Object, originalPath string, area string) (string, error)
- func (sl *ContentSubPath) GetAreaPath(object ocfl.Object, area string) (string, error)
- func (sl *ContentSubPath) GetConfig() any
- func (sl *ContentSubPath) GetFS() fs.FS
- func (sl *ContentSubPath) GetMetadata(object ocfl.Object) (map[string]any, error)
- func (sl *ContentSubPath) GetName() string
- func (sl *ContentSubPath) IsRegistered() bool
- func (sl *ContentSubPath) SetFS(fsys fs.FS, create bool)
- func (sl *ContentSubPath) SetParams(params map[string]string) error
- func (sl *ContentSubPath) Terminate() error
- func (sl *ContentSubPath) UpdateObjectAfter(object ocfl.Object) error
- func (sl *ContentSubPath) UpdateObjectBefore(object ocfl.Object) error
- func (sl *ContentSubPath) WriteConfig() error
- type ContentSubPathConfig
- type ContentSubPathEntry
- type DigestAlgorithms
- func (sl *DigestAlgorithms) GetConfig() any
- func (sl *DigestAlgorithms) GetFS() fs.FS
- func (sl *DigestAlgorithms) GetFixityDigests() []checksum.DigestAlgorithm
- func (sl *DigestAlgorithms) GetName() string
- func (sl *DigestAlgorithms) IsRegistered() bool
- func (sl *DigestAlgorithms) SetFS(fsys fs.FS, create bool)
- func (sl *DigestAlgorithms) SetParams(params map[string]string) error
- func (sl *DigestAlgorithms) Terminate() error
- func (sl *DigestAlgorithms) WriteConfig() error
- type DigestAlgorithmsConfig
- type DirectClean
- func (sl *DirectClean) BuildObjectManifestPath(object ocfl.Object, originalPath string, area string) (string, error)
- func (sl *DirectClean) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
- func (sl *DirectClean) GetConfig() any
- func (sl *DirectClean) GetFS() fs.FS
- func (sl *DirectClean) GetName() string
- func (sl *DirectClean) IsRegistered() bool
- func (sl *DirectClean) SetFS(fsys fs.FS, create bool)
- func (sl *DirectClean) SetParams(params map[string]string) error
- func (sl *DirectClean) Terminate() error
- func (sl *DirectClean) WriteConfig() error
- func (sl *DirectClean) WriteLayout(fsys fs.FS) error
- type DirectCleanConfig
- type FileSystemLine
- type Filesystem
- func (extFS *Filesystem) AddFileAfter(object ocfl.Object, sourceFS fs.FS, source []string, ...) error
- func (extFS *Filesystem) AddFileBefore(object ocfl.Object, sourceFS fs.FS, source string, dest string, area string, ...) error
- func (extFS *Filesystem) DeleteFileAfter(object ocfl.Object, dest string, area string) error
- func (extFS *Filesystem) DeleteFileBefore(object ocfl.Object, dest string, area string) error
- func (extFS *Filesystem) DoNewVersion(object ocfl.Object) error
- func (extFS *Filesystem) GetConfig() any
- func (extFS *Filesystem) GetFS() fs.FS
- func (extFS *Filesystem) GetMetadata(object ocfl.Object) (map[string]any, error)
- func (extFS *Filesystem) GetName() string
- func (extFS *Filesystem) IsRegistered() bool
- func (extFS *Filesystem) NeedNewVersion(object ocfl.Object) (bool, error)
- func (extFS *Filesystem) SetFS(fsys fs.FS, create bool)
- func (extFS *Filesystem) SetParams(params map[string]string) error
- func (extFS *Filesystem) Terminate() error
- func (extFS *Filesystem) UpdateFileAfter(object ocfl.Object, sourceFS fs.FS, source, dest, area string, isDir bool) error
- func (extFS *Filesystem) UpdateFileBefore(object ocfl.Object, sourceFS fs.FS, source, dest, area string, isDir bool) error
- func (extFS *Filesystem) UpdateObjectAfter(object ocfl.Object) error
- func (extFS *Filesystem) UpdateObjectBefore(object ocfl.Object) error
- func (extFS *Filesystem) WriteConfig() error
- type FilesystemConfig
- type FilesystemMeta
- type FlatOmitPrefixStorageLayout
- func (sl *FlatOmitPrefixStorageLayout) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
- func (sl *FlatOmitPrefixStorageLayout) GetConfig() any
- func (sl *FlatOmitPrefixStorageLayout) GetFS() fs.FS
- func (sl *FlatOmitPrefixStorageLayout) GetName() string
- func (sl *FlatOmitPrefixStorageLayout) IsRegistered() bool
- func (sl *FlatOmitPrefixStorageLayout) SetFS(fsys fs.FS, create bool)
- func (sl *FlatOmitPrefixStorageLayout) SetParams(params map[string]string) error
- func (sl *FlatOmitPrefixStorageLayout) Stat(w io.Writer, statInfo []ocfl.StatInfo) error
- func (sl *FlatOmitPrefixStorageLayout) Terminate() error
- func (sl *FlatOmitPrefixStorageLayout) WriteConfig() error
- func (sl *FlatOmitPrefixStorageLayout) WriteLayout(fsys fs.FS) error
- type FlatOmitPrefixStorageLayoutConfig
- type GOCFLExtensionManager
- func (manager *GOCFLExtensionManager) Add(ext ocfl.Extension) error
- func (manager *GOCFLExtensionManager) AddFileAfter(object ocfl.Object, sourceFS fs.FS, source []string, ...) error
- func (manager *GOCFLExtensionManager) AddFileBefore(object ocfl.Object, sourceFS fs.FS, source string, dest string, area string, ...) error
- func (manager *GOCFLExtensionManager) BuildObjectExtractPath(object ocfl.Object, originalPath string, area string) (string, error)
- func (manager *GOCFLExtensionManager) BuildObjectManifestPath(object ocfl.Object, originalPath string, area string) (string, error)
- func (manager *GOCFLExtensionManager) BuildObjectStatePath(object ocfl.Object, originalPath string, area string) (string, error)
- func (manager *GOCFLExtensionManager) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
- func (manager *GOCFLExtensionManager) DeleteFileAfter(object ocfl.Object, dest string, area string) error
- func (manager *GOCFLExtensionManager) DeleteFileBefore(object ocfl.Object, dest string, area string) error
- func (manager *GOCFLExtensionManager) DoNewVersion(object ocfl.Object) error
- func (manager *GOCFLExtensionManager) Finalize()
- func (manager *GOCFLExtensionManager) GetAreaPath(object ocfl.Object, area string) (string, error)
- func (manager *GOCFLExtensionManager) GetConfig() any
- func (manager *GOCFLExtensionManager) GetConfigName(extName string) (any, error)
- func (manager *GOCFLExtensionManager) GetExtensions() []ocfl.Extension
- func (manager *GOCFLExtensionManager) GetFS() fs.FS
- func (manager *GOCFLExtensionManager) GetFSName(extName string) (fs.FS, error)
- func (manager *GOCFLExtensionManager) GetFixityDigests() []checksum.DigestAlgorithm
- func (manager *GOCFLExtensionManager) GetMetadata(object ocfl.Object) (map[string]any, error)
- func (manager *GOCFLExtensionManager) GetName() string
- func (manager *GOCFLExtensionManager) IsRegistered() bool
- func (manager *GOCFLExtensionManager) NeedNewVersion(object ocfl.Object) (bool, error)
- func (manager *GOCFLExtensionManager) SetFS(fsys fs.FS, create bool)
- func (manager *GOCFLExtensionManager) SetInitial(initial ocfl.ExtensionInitial)
- func (manager *GOCFLExtensionManager) SetParams(params map[string]string) error
- func (manager *GOCFLExtensionManager) StoreRootLayout(fsys fs.FS) error
- func (manager *GOCFLExtensionManager) StreamObject(object ocfl.Object, reader io.Reader, stateFiles []string, dest string) error
- func (manager *GOCFLExtensionManager) Terminate() error
- func (manager *GOCFLExtensionManager) UpdateFileAfter(object ocfl.Object, sourceFS fs.FS, source, dest, area string, isDir bool) error
- func (manager *GOCFLExtensionManager) UpdateFileBefore(object ocfl.Object, sourceFS fs.FS, source, dest, area string, isDir bool) error
- func (manager *GOCFLExtensionManager) UpdateObjectAfter(object ocfl.Object) error
- func (manager *GOCFLExtensionManager) UpdateObjectBefore(object ocfl.Object) error
- func (manager *GOCFLExtensionManager) WriteConfig() error
- func (manager *GOCFLExtensionManager) WriteLayout(fsys fs.FS) error
- type Indexer
- func (sl *Indexer) GetConfig() any
- func (sl *Indexer) GetFS() fs.FS
- func (sl *Indexer) GetMetadata(object ocfl.Object) (map[string]any, error)
- func (sl *Indexer) GetName() string
- func (sl *Indexer) IsRegistered() bool
- func (sl *Indexer) SetFS(fsys fs.FS, create bool)
- func (sl *Indexer) SetParams(params map[string]string) error
- func (sl *Indexer) StreamObject(object ocfl.Object, reader io.Reader, stateFiles []string, dest string) error
- func (sl *Indexer) Terminate() error
- func (sl *Indexer) UpdateObjectAfter(object ocfl.Object) error
- func (sl *Indexer) UpdateObjectBefore(object ocfl.Object) error
- func (sl *Indexer) WriteConfig() error
- type IndexerConfig
- type Initial
- func (sl *Initial) GetConfig() any
- func (sl *Initial) GetExtension() string
- func (sl *Initial) GetFS() fs.FS
- func (sl *Initial) GetName() string
- func (sl *Initial) IsRegistered() bool
- func (sl *Initial) SetExtension(ext string)
- func (sl *Initial) SetFS(fsys fs.FS, create bool)
- func (sl *Initial) SetParams(params map[string]string) error
- func (sl *Initial) Terminate() error
- func (sl *Initial) WriteConfig() error
- type InitialConfig
- type InitialEntry
- type LoggingIndexer
- func (li *LoggingIndexer) AddFile(fullpath url.URL) error
- func (li *LoggingIndexer) DeleteFile(fullpath url.URL) error
- func (sl *LoggingIndexer) GetConfig() any
- func (sl *LoggingIndexer) GetFS() fs.FS
- func (li *LoggingIndexer) GetName() string
- func (sl *LoggingIndexer) IsRegistered() bool
- func (li *LoggingIndexer) MoveFile(fullpath url.URL) error
- func (li *LoggingIndexer) SetFS(fsys fs.FS, create bool)
- func (li *LoggingIndexer) SetParams(params map[string]string) error
- func (li *LoggingIndexer) Start() error
- func (sl *LoggingIndexer) Terminate() error
- func (li *LoggingIndexer) WriteConfig() error
- func (li *LoggingIndexer) WriteLog(logfile io.Writer) error
- type LoggingIndexerConfig
- type MetaFile
- func (sl *MetaFile) GetConfig() any
- func (sl *MetaFile) GetFS() fs.FS
- func (sl *MetaFile) GetMetadata(object ocfl.Object) (map[string]any, error)
- func (sl *MetaFile) GetName() string
- func (sl *MetaFile) IsRegistered() bool
- func (sl *MetaFile) SetFS(fsys fs.FS, create bool)
- func (sl *MetaFile) SetParams(params map[string]string) error
- func (sl *MetaFile) Terminate() error
- func (sl *MetaFile) UpdateObjectAfter(object ocfl.Object) error
- func (sl *MetaFile) UpdateObjectBefore(object ocfl.Object) error
- func (sl *MetaFile) WriteConfig() error
- type MetaFileConfig
- type Mets
- func (me *Mets) GetConfig() any
- func (me *Mets) GetFS() fs.FS
- func (me *Mets) GetName() string
- func (me *Mets) IsRegistered() bool
- func (me *Mets) SetFS(fsys fs.FS, create bool)
- func (me *Mets) SetParams(params map[string]string) error
- func (me *Mets) Terminate() error
- func (me *Mets) UpdateObjectAfter(object ocfl.Object) error
- func (me *Mets) UpdateObjectBefore(object ocfl.Object) error
- func (me *Mets) WriteConfig() error
- type MetsConfig
- type Migration
- func (mi *Migration) DoNewVersion(object ocfl.Object) error
- func (mi *Migration) GetConfig() any
- func (mi *Migration) GetFS() fs.FS
- func (mi *Migration) GetMetadata(object ocfl.Object) (map[string]any, error)
- func (mi *Migration) GetName() string
- func (mi *Migration) IsRegistered() bool
- func (mi *Migration) NeedNewVersion(ocfl.Object) (bool, error)
- func (mi *Migration) SetFS(fsys fs.FS, create bool)
- func (mi *Migration) SetParams(map[string]string) error
- func (mi *Migration) Terminate() error
- func (mi *Migration) UpdateObjectAfter(object ocfl.Object) error
- func (mi *Migration) UpdateObjectBefore(ocfl.Object) error
- func (mi *Migration) WriteConfig() error
- type MigrationConfig
- type MigrationFiles
- type MigrationMap
- type MigrationResult
- type MigrationTarget
- type NTupleOmitPrefixStorageLayout
- func (sl *NTupleOmitPrefixStorageLayout) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
- func (sl *NTupleOmitPrefixStorageLayout) GetConfig() any
- func (sl *NTupleOmitPrefixStorageLayout) GetFS() fs.FS
- func (sl *NTupleOmitPrefixStorageLayout) GetName() string
- func (sl *NTupleOmitPrefixStorageLayout) IsRegistered() bool
- func (sl *NTupleOmitPrefixStorageLayout) SetFS(fsys fs.FS, create bool)
- func (sl *NTupleOmitPrefixStorageLayout) SetParams(params map[string]string) error
- func (sl *NTupleOmitPrefixStorageLayout) Stat(w io.Writer, statInfo []ocfl.StatInfo) error
- func (sl *NTupleOmitPrefixStorageLayout) Terminate() error
- func (sl *NTupleOmitPrefixStorageLayout) WriteConfig() error
- func (sl *NTupleOmitPrefixStorageLayout) WriteLayout(fsys fs.FS) error
- type NTupleOmitPrefixStorageLayoutConfig
- type PathDirect
- func (sl *PathDirect) BuildObjectManifestPath(object ocfl.Object, originalPath string, area string) (string, error)
- func (sl *PathDirect) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
- func (sl *PathDirect) GetConfig() any
- func (sl *PathDirect) GetFS() fs.FS
- func (sl *PathDirect) GetName() string
- func (sl *PathDirect) IsRegistered() bool
- func (sl *PathDirect) SetParams(params map[string]string) error
- func (sl *PathDirect) Terminate() error
- func (sl *PathDirect) WriteConfig() error
- func (sl *PathDirect) WriteLayout(fsys fs.FS) error
- type PathDirectConfig
- type StorageLayoutFlatDirect
- func (sl *StorageLayoutFlatDirect) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
- func (sl *StorageLayoutFlatDirect) GetConfig() any
- func (sl *StorageLayoutFlatDirect) GetFS() fs.FS
- func (sl *StorageLayoutFlatDirect) GetName() string
- func (sl *StorageLayoutFlatDirect) IsRegistered() bool
- func (sl *StorageLayoutFlatDirect) SetFS(fsys fs.FS, create bool)
- func (sl *StorageLayoutFlatDirect) SetParams(params map[string]string) error
- func (sl *StorageLayoutFlatDirect) Stat(w io.Writer, statInfo []ocfl.StatInfo) error
- func (sl *StorageLayoutFlatDirect) Terminate() error
- func (sl *StorageLayoutFlatDirect) WriteConfig() error
- func (sl *StorageLayoutFlatDirect) WriteLayout(fsys fs.FS) error
- type StorageLayoutFlatDirectConfig
- type StorageLayoutHashAndIdNTuple
- func (sl *StorageLayoutHashAndIdNTuple) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
- func (sl *StorageLayoutHashAndIdNTuple) GetConfig() any
- func (sl *StorageLayoutHashAndIdNTuple) GetFS() fs.FS
- func (sl *StorageLayoutHashAndIdNTuple) GetName() string
- func (sl *StorageLayoutHashAndIdNTuple) IsRegistered() bool
- func (sl *StorageLayoutHashAndIdNTuple) SetFS(fsys fs.FS, create bool)
- func (sl *StorageLayoutHashAndIdNTuple) SetParams(params map[string]string) error
- func (sl *StorageLayoutHashAndIdNTuple) Terminate() error
- func (sl *StorageLayoutHashAndIdNTuple) WriteConfig() error
- func (sl *StorageLayoutHashAndIdNTuple) WriteLayout(fsys fs.FS) error
- type StorageLayoutHashAndIdNTupleConfig
- type StorageLayoutHashedNTuple
- func (sl *StorageLayoutHashedNTuple) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
- func (sl *StorageLayoutHashedNTuple) GetConfig() any
- func (sl *StorageLayoutHashedNTuple) GetFS() fs.FS
- func (sl *StorageLayoutHashedNTuple) GetName() string
- func (sl *StorageLayoutHashedNTuple) IsRegistered() bool
- func (sl *StorageLayoutHashedNTuple) SetFS(fsys fs.FS, create bool)
- func (sl *StorageLayoutHashedNTuple) SetParams(params map[string]string) error
- func (sl *StorageLayoutHashedNTuple) Terminate() error
- func (sl *StorageLayoutHashedNTuple) WriteConfig() error
- func (sl *StorageLayoutHashedNTuple) WriteLayout(fsys fs.FS) error
- type StorageLayoutHashedNTupleConfig
- type StorageLayoutPairTree
- func (sl *StorageLayoutPairTree) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
- func (sl *StorageLayoutPairTree) GetConfig() any
- func (sl *StorageLayoutPairTree) GetFS() fs.FS
- func (sl *StorageLayoutPairTree) GetName() string
- func (sl *StorageLayoutPairTree) IsObjectExtension() bool
- func (sl *StorageLayoutPairTree) IsRegistered() bool
- func (sl *StorageLayoutPairTree) IsStorageRootExtension() bool
- func (sl *StorageLayoutPairTree) SetFS(fsys fs.FS, create bool)
- func (sl *StorageLayoutPairTree) SetParams(params map[string]string) error
- func (sl *StorageLayoutPairTree) Terminate() error
- func (sl *StorageLayoutPairTree) WriteConfig() error
- func (sl *StorageLayoutPairTree) WriteLayout(fsys fs.FS) error
- type StorageLayoutPairTreeConfig
- type Thumbnail
- func (thumb *Thumbnail) DoThumbnail(object ocfl.Object, head string, thumbFunc *thumbnail.Function, ext string, ...) (string, string, error)
- func (thumb *Thumbnail) GetConfig() any
- func (thumb *Thumbnail) GetFS() fs.FS
- func (thumb *Thumbnail) GetMetadata(object ocfl.Object) (map[string]any, error)
- func (thumb *Thumbnail) GetName() string
- func (thumb *Thumbnail) IsRegistered() bool
- func (thumb *Thumbnail) SetFS(fsys fs.FS, create bool)
- func (thumb *Thumbnail) SetParams(map[string]string) error
- func (thumb *Thumbnail) StreamObject(object ocfl.Object, reader io.Reader, stateFiles []string, dest string) error
- func (thumb *Thumbnail) Terminate() error
- func (thumb *Thumbnail) UpdateObjectAfter(object ocfl.Object) error
- func (thumb *Thumbnail) UpdateObjectBefore(ocfl.Object) error
- func (thumb *Thumbnail) WriteConfig() error
- type ThumbnailConfig
- type ThumbnailFiles
- type ThumbnailMap
- type ThumbnailResult
- type ThumbnailTarget
Constants ¶
View Source
const ContentSubPathDescription = "prepend a path inside the version content"
View Source
const ContentSubPathName = "NNNN-content-subpath"
View Source
const DigestAlgorithmsDescription = "" /* 129-byte string literal not displayed */
View Source
const DigestAlgorithmsName = "0001-digest-algorithms"
View Source
const DirectCleanDescription = "" /* 187-byte string literal not displayed */
View Source
const DirectCleanName = "NNNN-direct-clean-path-layout"
View Source
const FilesystemDescription = "preserves filesytem metadata"
View Source
const FilesystemName = "NNNN-filesystem"
View Source
const FlatOmitPrefixStorageLayoutDescription = "removes prefix after last occurrence of delimiter"
View Source
const FlatOmitPrefixStorageLayoutName = "0006-flat-omit-prefix-storage-layout"
View Source
const GOCFLExtensionManagerDescription = "initial extension for sorted exclusion and sorted execution"
View Source
const GOCFLExtensionManagerName = "NNNN-gocfl-extension-manager"
View Source
const IndexerDescription = "technical metadata for all files"
View Source
const IndexerName = "NNNN-indexer"
View Source
const InitialDescription = "initial extension defines the name of the extension manager"
View Source
const InitialName = "initial"
View Source
const LoggingIndexerName = "NNNN-indexer-logging-object"
View Source
const METSDescription = "METS/EAD3/PREMIS metadata"
View Source
const METSName = "NNNN-mets"
View Source
const MetaFileDescription = "adds a file in extension folder"
View Source
const MetaFileName = "NNNN-metafile"
View Source
const MigrationDescription = "preservation management - file migration"
View Source
const MigrationName = "NNNN-migration"
View Source
const NTupleOmitPrefixStorageLayoutDescription = "pairtree-like root directory structure derived from prefix-omitted object identifiers"
View Source
const NTupleOmitPrefixStorageLayoutName = "0007-n-tuple-omit-prefix-storage-layout"
View Source
const PathDirectName = "NNNN-direct-path-layout"
View Source
const StorageLayoutFlatDirectDescription = "one to one mapping without changes"
View Source
const StorageLayoutFlatDirectName = "0002-flat-direct-storage-layout"
View Source
const StorageLayoutHashAndIdNTupleDescription = "Hashed Truncated N-tuple Trees with Object ID Encapsulating Directory for OCFL Storage Hierarchies"
View Source
const StorageLayoutHashAndIdNTupleName = "0003-hash-and-id-n-tuple-storage-layout"
View Source
const StorageLayoutHashedNTupleDescription = "Hashed N-tuple Storage Layout"
View Source
const StorageLayoutHashedNTupleName = "0004-hashed-n-tuple-storage-layout"
View Source
const StorageLayoutPairTreeName = "NNNN-pairtree-storage-layout"
View Source
const ThumbnailDescription = "preservation management - file thumbnail"
View Source
const ThumbnailName = "NNNN-thumbnail"
Variables ¶
View Source
var ErrNotSupported = errors.New("extension not supported")
Functions ¶
func GetContentSubPathParams ¶
func GetContentSubPathParams() []*ocfl.ExtensionExternalParam
func GetIndexerParams ¶
func GetIndexerParams() []*ocfl.ExtensionExternalParam
func GetInitialParams ¶
func GetInitialParams() []*ocfl.ExtensionExternalParam
func GetMetaFileParams ¶
func GetMetaFileParams() []*ocfl.ExtensionExternalParam
func GetMetsParams ¶
func GetMetsParams() []*ocfl.ExtensionExternalParam
func NewDirectClean ¶
func NewDirectClean(config *DirectCleanConfig) (ocfl.Extension, error)
Types ¶
type ContentSubPath ¶
type ContentSubPath struct { *ContentSubPathConfig // contains filtered or unexported fields }
func NewContentSubPath ¶
func NewContentSubPath(config *ContentSubPathConfig) (*ContentSubPath, error)
func NewContentSubPathFS ¶
func NewContentSubPathFS(fsys fs.FS) (*ContentSubPath, error)
func (*ContentSubPath) BuildObjectExtractPath ¶
func (*ContentSubPath) BuildObjectManifestPath ¶
func (*ContentSubPath) BuildObjectStatePath ¶
func (*ContentSubPath) GetAreaPath ¶
func (*ContentSubPath) GetConfig ¶
func (sl *ContentSubPath) GetConfig() any
func (*ContentSubPath) GetFS ¶
func (sl *ContentSubPath) GetFS() fs.FS
func (*ContentSubPath) GetMetadata ¶
func (*ContentSubPath) GetName ¶
func (sl *ContentSubPath) GetName() string
func (*ContentSubPath) IsRegistered ¶
func (sl *ContentSubPath) IsRegistered() bool
func (*ContentSubPath) SetParams ¶
func (sl *ContentSubPath) SetParams(params map[string]string) error
func (*ContentSubPath) Terminate ¶
func (sl *ContentSubPath) Terminate() error
func (*ContentSubPath) UpdateObjectAfter ¶
func (sl *ContentSubPath) UpdateObjectAfter(object ocfl.Object) error
func (*ContentSubPath) UpdateObjectBefore ¶
func (sl *ContentSubPath) UpdateObjectBefore(object ocfl.Object) error
func (*ContentSubPath) WriteConfig ¶
func (sl *ContentSubPath) WriteConfig() error
type ContentSubPathConfig ¶
type ContentSubPathConfig struct { *ocfl.ExtensionConfig Paths map[string]ContentSubPathEntry `json:"subPath"` }
type ContentSubPathEntry ¶
type DigestAlgorithms ¶
type DigestAlgorithms struct { *DigestAlgorithmsConfig // contains filtered or unexported fields }
func NewDigestAlgorithms ¶
func NewDigestAlgorithms(config *DigestAlgorithmsConfig) (*DigestAlgorithms, error)
func NewDigestAlgorithmsFS ¶
func NewDigestAlgorithmsFS(fsys fs.FS) (*DigestAlgorithms, error)
func (*DigestAlgorithms) GetConfig ¶
func (sl *DigestAlgorithms) GetConfig() any
func (*DigestAlgorithms) GetFS ¶
func (sl *DigestAlgorithms) GetFS() fs.FS
func (*DigestAlgorithms) GetFixityDigests ¶
func (sl *DigestAlgorithms) GetFixityDigests() []checksum.DigestAlgorithm
func (*DigestAlgorithms) GetName ¶
func (sl *DigestAlgorithms) GetName() string
func (*DigestAlgorithms) IsRegistered ¶
func (sl *DigestAlgorithms) IsRegistered() bool
func (*DigestAlgorithms) SetParams ¶
func (sl *DigestAlgorithms) SetParams(params map[string]string) error
func (*DigestAlgorithms) Terminate ¶
func (sl *DigestAlgorithms) Terminate() error
func (*DigestAlgorithms) WriteConfig ¶
func (sl *DigestAlgorithms) WriteConfig() error
type DigestAlgorithmsConfig ¶
type DigestAlgorithmsConfig struct {
*ocfl.ExtensionConfig
}
type DirectClean ¶
type DirectClean struct { *DirectCleanConfig // contains filtered or unexported fields }
func (*DirectClean) BuildObjectManifestPath ¶
func (*DirectClean) BuildStorageRootPath ¶
func (sl *DirectClean) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
interface
func (*DirectClean) GetConfig ¶
func (sl *DirectClean) GetConfig() any
func (*DirectClean) GetFS ¶
func (sl *DirectClean) GetFS() fs.FS
func (*DirectClean) GetName ¶
func (sl *DirectClean) GetName() string
func (*DirectClean) IsRegistered ¶
func (sl *DirectClean) IsRegistered() bool
func (*DirectClean) Terminate ¶
func (sl *DirectClean) Terminate() error
func (*DirectClean) WriteConfig ¶
func (sl *DirectClean) WriteConfig() error
func (*DirectClean) WriteLayout ¶
func (sl *DirectClean) WriteLayout(fsys fs.FS) error
type DirectCleanConfig ¶
type DirectCleanConfig struct { *ocfl.ExtensionConfig MaxPathnameLen int `json:"maxPathnameLen"` MaxPathSegmentLen int `json:"maxPathSegmentLen"` ReplacementString string `json:"replacementString"` WhitespaceReplacementString string `json:"whitespaceReplacementString"` UTFEncode bool `json:"utfEncode"` FallbackDigestAlgorithm checksum.DigestAlgorithm `json:"fallbackDigestAlgorithm"` FallbackFolder string `json:"fallbackFolder"` NumberOfFallbackTuples int `json:"numberOfFallbackTuples"` FallbackTupleSize int `json:"fallbackTupleSize"` // compatibility with old config MaxFilenameLen int `json:"maxFilenameLen,omitempty"` FallbackSubFolders int `json:"fallbackSubdirs,omitempty"` }
type FileSystemLine ¶
type FileSystemLine struct { Path string `json:"path"` Meta *FilesystemMeta `json:"meta"` }
type Filesystem ¶
type Filesystem struct { *FilesystemConfig // contains filtered or unexported fields }
func NewFilesystem ¶
func NewFilesystem(config *FilesystemConfig) (*Filesystem, error)
func NewFilesystemFS ¶
func (*Filesystem) AddFileAfter ¶
func (*Filesystem) AddFileBefore ¶
func (*Filesystem) DeleteFileAfter ¶
func (*Filesystem) DeleteFileBefore ¶
func (*Filesystem) DoNewVersion ¶
func (extFS *Filesystem) DoNewVersion(object ocfl.Object) error
func (*Filesystem) GetConfig ¶
func (extFS *Filesystem) GetConfig() any
func (*Filesystem) GetFS ¶
func (extFS *Filesystem) GetFS() fs.FS
func (*Filesystem) GetMetadata ¶
func (*Filesystem) GetName ¶
func (extFS *Filesystem) GetName() string
func (*Filesystem) IsRegistered ¶
func (extFS *Filesystem) IsRegistered() bool
func (*Filesystem) NeedNewVersion ¶
func (extFS *Filesystem) NeedNewVersion(object ocfl.Object) (bool, error)
func (*Filesystem) Terminate ¶
func (extFS *Filesystem) Terminate() error
func (*Filesystem) UpdateFileAfter ¶
func (*Filesystem) UpdateFileBefore ¶
func (*Filesystem) UpdateObjectAfter ¶
func (extFS *Filesystem) UpdateObjectAfter(object ocfl.Object) error
func (*Filesystem) UpdateObjectBefore ¶
func (extFS *Filesystem) UpdateObjectBefore(object ocfl.Object) error
func (*Filesystem) WriteConfig ¶
func (extFS *Filesystem) WriteConfig() error
type FilesystemConfig ¶
type FilesystemMeta ¶
type FilesystemMeta struct { ATime time.Time `json:"aTime"` MTime time.Time `json:"mTime"` CTime time.Time `json:"cTime"` Attr string `json:"attr,omitempty"` Symlink string `json:"symlink,omitempty"` OS string `json:"os"` SystemStat any `json:"sysStat,omitempty"` StateVersion string `json:"stateVersion"` Size uint64 `json:"size"` }
type FlatOmitPrefixStorageLayout ¶
type FlatOmitPrefixStorageLayout struct { *FlatOmitPrefixStorageLayoutConfig // contains filtered or unexported fields }
func NewFlatOmitPrefixStorageLayout ¶
func NewFlatOmitPrefixStorageLayout(config *FlatOmitPrefixStorageLayoutConfig) (*FlatOmitPrefixStorageLayout, error)
func NewFlatOmitPrefixStorageLayoutFS ¶
func NewFlatOmitPrefixStorageLayoutFS(fsys fs.FS) (*FlatOmitPrefixStorageLayout, error)
func (*FlatOmitPrefixStorageLayout) BuildStorageRootPath ¶
func (sl *FlatOmitPrefixStorageLayout) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
func (*FlatOmitPrefixStorageLayout) GetConfig ¶
func (sl *FlatOmitPrefixStorageLayout) GetConfig() any
func (*FlatOmitPrefixStorageLayout) GetFS ¶
func (sl *FlatOmitPrefixStorageLayout) GetFS() fs.FS
func (*FlatOmitPrefixStorageLayout) GetName ¶
func (sl *FlatOmitPrefixStorageLayout) GetName() string
func (*FlatOmitPrefixStorageLayout) IsRegistered ¶
func (sl *FlatOmitPrefixStorageLayout) IsRegistered() bool
func (*FlatOmitPrefixStorageLayout) SetFS ¶
func (sl *FlatOmitPrefixStorageLayout) SetFS(fsys fs.FS, create bool)
func (*FlatOmitPrefixStorageLayout) SetParams ¶
func (sl *FlatOmitPrefixStorageLayout) SetParams(params map[string]string) error
func (*FlatOmitPrefixStorageLayout) Terminate ¶
func (sl *FlatOmitPrefixStorageLayout) Terminate() error
func (*FlatOmitPrefixStorageLayout) WriteConfig ¶
func (sl *FlatOmitPrefixStorageLayout) WriteConfig() error
func (*FlatOmitPrefixStorageLayout) WriteLayout ¶
func (sl *FlatOmitPrefixStorageLayout) WriteLayout(fsys fs.FS) error
type FlatOmitPrefixStorageLayoutConfig ¶
type FlatOmitPrefixStorageLayoutConfig struct { *ocfl.ExtensionConfig Delimiter string `json:"delimiter"` }
type GOCFLExtensionManager ¶
type GOCFLExtensionManager struct { *ocfl.ExtensionManagerConfig // contains filtered or unexported fields }
func NewGOCFLExtensionManager ¶
func NewGOCFLExtensionManager(config *ocfl.ExtensionManagerConfig) (*GOCFLExtensionManager, error)
func NewGOCFLExtensionManagerFS ¶
func NewGOCFLExtensionManagerFS(fsys fs.FS) (*GOCFLExtensionManager, error)
func (*GOCFLExtensionManager) Add ¶
func (manager *GOCFLExtensionManager) Add(ext ocfl.Extension) error
func (*GOCFLExtensionManager) AddFileAfter ¶
func (*GOCFLExtensionManager) AddFileBefore ¶
func (manager *GOCFLExtensionManager) AddFileBefore(object ocfl.Object, sourceFS fs.FS, source string, dest string, area string, isDir bool) error
ContentChange
func (*GOCFLExtensionManager) BuildObjectExtractPath ¶
func (*GOCFLExtensionManager) BuildObjectManifestPath ¶
func (manager *GOCFLExtensionManager) BuildObjectManifestPath(object ocfl.Object, originalPath string, area string) (string, error)
ObjectContentPath
func (*GOCFLExtensionManager) BuildObjectStatePath ¶
func (manager *GOCFLExtensionManager) BuildObjectStatePath(object ocfl.Object, originalPath string, area string) (string, error)
ObjectExternalPath
func (*GOCFLExtensionManager) BuildStorageRootPath ¶
func (manager *GOCFLExtensionManager) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
func (*GOCFLExtensionManager) DeleteFileAfter ¶
func (*GOCFLExtensionManager) DeleteFileBefore ¶
func (*GOCFLExtensionManager) DoNewVersion ¶
func (manager *GOCFLExtensionManager) DoNewVersion(object ocfl.Object) error
func (*GOCFLExtensionManager) Finalize ¶
func (manager *GOCFLExtensionManager) Finalize()
func (*GOCFLExtensionManager) GetAreaPath ¶
func (*GOCFLExtensionManager) GetConfig ¶
func (manager *GOCFLExtensionManager) GetConfig() any
func (*GOCFLExtensionManager) GetConfigName ¶
func (manager *GOCFLExtensionManager) GetConfigName(extName string) (any, error)
func (*GOCFLExtensionManager) GetExtensions ¶
func (manager *GOCFLExtensionManager) GetExtensions() []ocfl.Extension
func (*GOCFLExtensionManager) GetFS ¶
func (manager *GOCFLExtensionManager) GetFS() fs.FS
func (*GOCFLExtensionManager) GetFSName ¶
func (manager *GOCFLExtensionManager) GetFSName(extName string) (fs.FS, error)
func (*GOCFLExtensionManager) GetFixityDigests ¶
func (manager *GOCFLExtensionManager) GetFixityDigests() []checksum.DigestAlgorithm
FixityDigests
func (*GOCFLExtensionManager) GetMetadata ¶
func (*GOCFLExtensionManager) GetName ¶
func (manager *GOCFLExtensionManager) GetName() string
func (*GOCFLExtensionManager) IsRegistered ¶
func (manager *GOCFLExtensionManager) IsRegistered() bool
Extension
func (*GOCFLExtensionManager) NeedNewVersion ¶
func (manager *GOCFLExtensionManager) NeedNewVersion(object ocfl.Object) (bool, error)
NewVersion
func (*GOCFLExtensionManager) SetFS ¶
func (manager *GOCFLExtensionManager) SetFS(fsys fs.FS, create bool)
func (*GOCFLExtensionManager) SetInitial ¶
func (manager *GOCFLExtensionManager) SetInitial(initial ocfl.ExtensionInitial)
func (*GOCFLExtensionManager) SetParams ¶
func (manager *GOCFLExtensionManager) SetParams(params map[string]string) error
func (*GOCFLExtensionManager) StoreRootLayout ¶
func (manager *GOCFLExtensionManager) StoreRootLayout(fsys fs.FS) error
StorageRootPath
func (*GOCFLExtensionManager) StreamObject ¶
func (manager *GOCFLExtensionManager) StreamObject(object ocfl.Object, reader io.Reader, stateFiles []string, dest string) error
Stream
func (*GOCFLExtensionManager) Terminate ¶
func (manager *GOCFLExtensionManager) Terminate() error
func (*GOCFLExtensionManager) UpdateFileAfter ¶
func (*GOCFLExtensionManager) UpdateFileBefore ¶
func (*GOCFLExtensionManager) UpdateObjectAfter ¶
func (manager *GOCFLExtensionManager) UpdateObjectAfter(object ocfl.Object) error
func (*GOCFLExtensionManager) UpdateObjectBefore ¶
func (manager *GOCFLExtensionManager) UpdateObjectBefore(object ocfl.Object) error
ObjectChange
func (*GOCFLExtensionManager) WriteConfig ¶
func (manager *GOCFLExtensionManager) WriteConfig() error
func (*GOCFLExtensionManager) WriteLayout ¶
func (manager *GOCFLExtensionManager) WriteLayout(fsys fs.FS) error
type Indexer ¶
type Indexer struct { *IndexerConfig // contains filtered or unexported fields }
func NewIndexer ¶
func NewIndexer(config *IndexerConfig, urlString string, indexerActions *ironmaiden.ActionDispatcher, localCache bool, logger zLogger.ZLogger) (*Indexer, error)
func NewIndexerFS ¶
func NewIndexerFS(fsys fs.FS, urlString string, indexerActions *ironmaiden.ActionDispatcher, localCache bool, logger zLogger.ZLogger) (*Indexer, error)
func (*Indexer) GetMetadata ¶
func (*Indexer) IsRegistered ¶
func (*Indexer) StreamObject ¶
func (*Indexer) UpdateObjectBefore ¶
func (*Indexer) WriteConfig ¶
type IndexerConfig ¶
type Initial ¶
type Initial struct { *InitialConfig // contains filtered or unexported fields }
func NewInitial ¶
func NewInitial(config *InitialConfig) (*Initial, error)
func (*Initial) GetExtension ¶
func (*Initial) IsRegistered ¶
func (*Initial) SetExtension ¶
func (*Initial) WriteConfig ¶
type InitialConfig ¶
type InitialConfig struct { *ocfl.ExtensionConfig Extension string `json:"extension"` }
type InitialEntry ¶
type LoggingIndexer ¶
type LoggingIndexer struct { *LoggingIndexerConfig // contains filtered or unexported fields }
func NewLoggingIndexer ¶
func NewLoggingIndexer(config *LoggingIndexerConfig) (*LoggingIndexer, error)
func (*LoggingIndexer) DeleteFile ¶
func (li *LoggingIndexer) DeleteFile(fullpath url.URL) error
func (*LoggingIndexer) GetConfig ¶
func (sl *LoggingIndexer) GetConfig() any
func (*LoggingIndexer) GetFS ¶
func (sl *LoggingIndexer) GetFS() fs.FS
func (*LoggingIndexer) GetName ¶
func (li *LoggingIndexer) GetName() string
func (*LoggingIndexer) IsRegistered ¶
func (sl *LoggingIndexer) IsRegistered() bool
func (*LoggingIndexer) SetParams ¶
func (li *LoggingIndexer) SetParams(params map[string]string) error
func (*LoggingIndexer) Start ¶
func (li *LoggingIndexer) Start() error
func (*LoggingIndexer) Terminate ¶
func (sl *LoggingIndexer) Terminate() error
func (*LoggingIndexer) WriteConfig ¶
func (li *LoggingIndexer) WriteConfig() error
type LoggingIndexerConfig ¶
type LoggingIndexerConfig struct {
*Config
}
type MetaFile ¶
type MetaFile struct { *MetaFileConfig // contains filtered or unexported fields }
func NewMetaFile ¶
func NewMetaFile(config *MetaFileConfig, schema []byte) (*MetaFile, error)
func (*MetaFile) GetMetadata ¶
func (*MetaFile) IsRegistered ¶
func (*MetaFile) UpdateObjectAfter ¶
func (*MetaFile) UpdateObjectBefore ¶
func (*MetaFile) WriteConfig ¶
type MetaFileConfig ¶
type Mets ¶
type Mets struct { *MetsConfig // contains filtered or unexported fields }
func (*Mets) IsRegistered ¶
func (*Mets) WriteConfig ¶
type MetsConfig ¶
type MetsConfig struct { *ocfl.ExtensionConfig StorageType string `json:"storageType"` StorageName string `json:"storageName"` PrimaryDescriptiveMetadata string `json:"primaryDescriptiveMetadata,omitempty"` MetsFile string `json:"metsFile,omitempty"` PremisFile string `json:"premisFile,omitempty"` }
type Migration ¶
type Migration struct { *MigrationConfig // contains filtered or unexported fields }
func NewMigration ¶
func NewMigration(config *MigrationConfig, mig *migration.Migration) (*Migration, error)
func NewMigrationFS ¶
func (*Migration) DoNewVersion ¶
DoNewVersion todo: check for second migration step and do different naming
func (*Migration) GetMetadata ¶
func (*Migration) IsRegistered ¶
func (*Migration) UpdateObjectAfter ¶
func (*Migration) WriteConfig ¶
type MigrationConfig ¶
type MigrationConfig struct { *ocfl.ExtensionConfig StorageType string StorageName string Compress string }
type MigrationResult ¶
type MigrationTarget ¶
type NTupleOmitPrefixStorageLayout ¶
type NTupleOmitPrefixStorageLayout struct { *NTupleOmitPrefixStorageLayoutConfig // contains filtered or unexported fields }
func NewNTupleOmitPrefixStorageLayout ¶
func NewNTupleOmitPrefixStorageLayout(config *NTupleOmitPrefixStorageLayoutConfig) (*NTupleOmitPrefixStorageLayout, error)
func NewNTupleOmitPrefixStorageLayoutFS ¶
func NewNTupleOmitPrefixStorageLayoutFS(fsys fs.FS) (*NTupleOmitPrefixStorageLayout, error)
func (*NTupleOmitPrefixStorageLayout) BuildStorageRootPath ¶
func (sl *NTupleOmitPrefixStorageLayout) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
func (*NTupleOmitPrefixStorageLayout) GetConfig ¶
func (sl *NTupleOmitPrefixStorageLayout) GetConfig() any
func (*NTupleOmitPrefixStorageLayout) GetFS ¶
func (sl *NTupleOmitPrefixStorageLayout) GetFS() fs.FS
func (*NTupleOmitPrefixStorageLayout) GetName ¶
func (sl *NTupleOmitPrefixStorageLayout) GetName() string
func (*NTupleOmitPrefixStorageLayout) IsRegistered ¶
func (sl *NTupleOmitPrefixStorageLayout) IsRegistered() bool
func (*NTupleOmitPrefixStorageLayout) SetFS ¶
func (sl *NTupleOmitPrefixStorageLayout) SetFS(fsys fs.FS, create bool)
func (*NTupleOmitPrefixStorageLayout) SetParams ¶
func (sl *NTupleOmitPrefixStorageLayout) SetParams(params map[string]string) error
func (*NTupleOmitPrefixStorageLayout) Terminate ¶
func (sl *NTupleOmitPrefixStorageLayout) Terminate() error
func (*NTupleOmitPrefixStorageLayout) WriteConfig ¶
func (sl *NTupleOmitPrefixStorageLayout) WriteConfig() error
func (*NTupleOmitPrefixStorageLayout) WriteLayout ¶
func (sl *NTupleOmitPrefixStorageLayout) WriteLayout(fsys fs.FS) error
type PathDirect ¶
type PathDirect struct {
*PathDirectConfig
}
func NewPathDirect ¶
func NewPathDirect(config *PathDirectConfig) (*PathDirect, error)
func (*PathDirect) BuildObjectManifestPath ¶
func (*PathDirect) BuildStorageRootPath ¶
func (sl *PathDirect) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
func (*PathDirect) GetConfig ¶
func (sl *PathDirect) GetConfig() any
func (*PathDirect) GetFS ¶
func (sl *PathDirect) GetFS() fs.FS
func (*PathDirect) GetName ¶
func (sl *PathDirect) GetName() string
func (*PathDirect) IsRegistered ¶
func (sl *PathDirect) IsRegistered() bool
func (*PathDirect) Terminate ¶
func (sl *PathDirect) Terminate() error
func (*PathDirect) WriteConfig ¶
func (sl *PathDirect) WriteConfig() error
func (*PathDirect) WriteLayout ¶
func (sl *PathDirect) WriteLayout(fsys fs.FS) error
type PathDirectConfig ¶
type PathDirectConfig struct { *Config // contains filtered or unexported fields }
type StorageLayoutFlatDirect ¶
type StorageLayoutFlatDirect struct { *StorageLayoutFlatDirectConfig // contains filtered or unexported fields }
func NewStorageLayoutFlatDirect ¶
func NewStorageLayoutFlatDirect(config *StorageLayoutFlatDirectConfig) (*StorageLayoutFlatDirect, error)
func NewStorageLayoutFlatDirectFS ¶
func NewStorageLayoutFlatDirectFS(fsys fs.FS) (*StorageLayoutFlatDirect, error)
func (*StorageLayoutFlatDirect) BuildStorageRootPath ¶
func (sl *StorageLayoutFlatDirect) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
func (*StorageLayoutFlatDirect) GetConfig ¶
func (sl *StorageLayoutFlatDirect) GetConfig() any
func (*StorageLayoutFlatDirect) GetFS ¶
func (sl *StorageLayoutFlatDirect) GetFS() fs.FS
func (*StorageLayoutFlatDirect) GetName ¶
func (sl *StorageLayoutFlatDirect) GetName() string
func (*StorageLayoutFlatDirect) IsRegistered ¶
func (sl *StorageLayoutFlatDirect) IsRegistered() bool
func (*StorageLayoutFlatDirect) SetFS ¶
func (sl *StorageLayoutFlatDirect) SetFS(fsys fs.FS, create bool)
func (*StorageLayoutFlatDirect) SetParams ¶
func (sl *StorageLayoutFlatDirect) SetParams(params map[string]string) error
func (*StorageLayoutFlatDirect) Terminate ¶
func (sl *StorageLayoutFlatDirect) Terminate() error
func (*StorageLayoutFlatDirect) WriteConfig ¶
func (sl *StorageLayoutFlatDirect) WriteConfig() error
func (*StorageLayoutFlatDirect) WriteLayout ¶
func (sl *StorageLayoutFlatDirect) WriteLayout(fsys fs.FS) error
type StorageLayoutFlatDirectConfig ¶
type StorageLayoutFlatDirectConfig struct {
*ocfl.ExtensionConfig
}
type StorageLayoutHashAndIdNTuple ¶
type StorageLayoutHashAndIdNTuple struct { *StorageLayoutHashAndIdNTupleConfig // contains filtered or unexported fields }
func NewStorageLayoutHashAndIdNTuple ¶
func NewStorageLayoutHashAndIdNTuple(config *StorageLayoutHashAndIdNTupleConfig) (*StorageLayoutHashAndIdNTuple, error)
func NewStorageLayoutHashAndIdNTupleFS ¶
func NewStorageLayoutHashAndIdNTupleFS(fsys fs.FS) (*StorageLayoutHashAndIdNTuple, error)
func (*StorageLayoutHashAndIdNTuple) BuildStorageRootPath ¶
func (sl *StorageLayoutHashAndIdNTuple) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
func (*StorageLayoutHashAndIdNTuple) GetConfig ¶
func (sl *StorageLayoutHashAndIdNTuple) GetConfig() any
func (*StorageLayoutHashAndIdNTuple) GetFS ¶
func (sl *StorageLayoutHashAndIdNTuple) GetFS() fs.FS
func (*StorageLayoutHashAndIdNTuple) GetName ¶
func (sl *StorageLayoutHashAndIdNTuple) GetName() string
func (*StorageLayoutHashAndIdNTuple) IsRegistered ¶
func (sl *StorageLayoutHashAndIdNTuple) IsRegistered() bool
func (*StorageLayoutHashAndIdNTuple) SetFS ¶
func (sl *StorageLayoutHashAndIdNTuple) SetFS(fsys fs.FS, create bool)
func (*StorageLayoutHashAndIdNTuple) SetParams ¶
func (sl *StorageLayoutHashAndIdNTuple) SetParams(params map[string]string) error
func (*StorageLayoutHashAndIdNTuple) Terminate ¶
func (sl *StorageLayoutHashAndIdNTuple) Terminate() error
func (*StorageLayoutHashAndIdNTuple) WriteConfig ¶
func (sl *StorageLayoutHashAndIdNTuple) WriteConfig() error
func (*StorageLayoutHashAndIdNTuple) WriteLayout ¶
func (sl *StorageLayoutHashAndIdNTuple) WriteLayout(fsys fs.FS) error
type StorageLayoutHashAndIdNTupleConfig ¶
type StorageLayoutHashAndIdNTupleConfig struct { *ocfl.ExtensionConfig DigestAlgorithm string `json:"digestAlgorithm"` TupleSize int `json:"tupleSize"` NumberOfTuples int `json:"numberOfTuples"` }
type StorageLayoutHashedNTuple ¶
type StorageLayoutHashedNTuple struct { *StorageLayoutHashedNTupleConfig // contains filtered or unexported fields }
func NewStorageLayoutHashedNTuple ¶
func NewStorageLayoutHashedNTuple(config *StorageLayoutHashedNTupleConfig) (*StorageLayoutHashedNTuple, error)
func NewStorageLayoutHashedNTupleFS ¶
func NewStorageLayoutHashedNTupleFS(fsys fs.FS) (*StorageLayoutHashedNTuple, error)
func (*StorageLayoutHashedNTuple) BuildStorageRootPath ¶
func (sl *StorageLayoutHashedNTuple) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
func (*StorageLayoutHashedNTuple) GetConfig ¶
func (sl *StorageLayoutHashedNTuple) GetConfig() any
func (*StorageLayoutHashedNTuple) GetFS ¶
func (sl *StorageLayoutHashedNTuple) GetFS() fs.FS
func (*StorageLayoutHashedNTuple) GetName ¶
func (sl *StorageLayoutHashedNTuple) GetName() string
func (*StorageLayoutHashedNTuple) IsRegistered ¶
func (sl *StorageLayoutHashedNTuple) IsRegistered() bool
func (*StorageLayoutHashedNTuple) SetFS ¶
func (sl *StorageLayoutHashedNTuple) SetFS(fsys fs.FS, create bool)
func (*StorageLayoutHashedNTuple) SetParams ¶
func (sl *StorageLayoutHashedNTuple) SetParams(params map[string]string) error
func (*StorageLayoutHashedNTuple) Terminate ¶
func (sl *StorageLayoutHashedNTuple) Terminate() error
func (*StorageLayoutHashedNTuple) WriteConfig ¶
func (sl *StorageLayoutHashedNTuple) WriteConfig() error
func (*StorageLayoutHashedNTuple) WriteLayout ¶
func (sl *StorageLayoutHashedNTuple) WriteLayout(fsys fs.FS) error
type StorageLayoutPairTree ¶
type StorageLayoutPairTree struct { *StorageLayoutPairTreeConfig // contains filtered or unexported fields }
func NewStorageLayoutPairTree ¶
func NewStorageLayoutPairTree(config *StorageLayoutPairTreeConfig) (*StorageLayoutPairTree, error)
func NewStorageLayoutPairTreeFS ¶
func NewStorageLayoutPairTreeFS(fsys fs.FS) (*StorageLayoutPairTree, error)
func (*StorageLayoutPairTree) BuildStorageRootPath ¶
func (sl *StorageLayoutPairTree) BuildStorageRootPath(storageRoot ocfl.StorageRoot, id string) (string, error)
func (*StorageLayoutPairTree) GetConfig ¶
func (sl *StorageLayoutPairTree) GetConfig() any
func (*StorageLayoutPairTree) GetFS ¶
func (sl *StorageLayoutPairTree) GetFS() fs.FS
func (*StorageLayoutPairTree) GetName ¶
func (sl *StorageLayoutPairTree) GetName() string
func (*StorageLayoutPairTree) IsObjectExtension ¶
func (sl *StorageLayoutPairTree) IsObjectExtension() bool
func (*StorageLayoutPairTree) IsRegistered ¶
func (sl *StorageLayoutPairTree) IsRegistered() bool
func (*StorageLayoutPairTree) IsStorageRootExtension ¶
func (sl *StorageLayoutPairTree) IsStorageRootExtension() bool
func (*StorageLayoutPairTree) SetFS ¶
func (sl *StorageLayoutPairTree) SetFS(fsys fs.FS, create bool)
func (*StorageLayoutPairTree) SetParams ¶
func (sl *StorageLayoutPairTree) SetParams(params map[string]string) error
func (*StorageLayoutPairTree) Terminate ¶
func (sl *StorageLayoutPairTree) Terminate() error
func (*StorageLayoutPairTree) WriteConfig ¶
func (sl *StorageLayoutPairTree) WriteConfig() error
func (*StorageLayoutPairTree) WriteLayout ¶
func (sl *StorageLayoutPairTree) WriteLayout(fsys fs.FS) error
type Thumbnail ¶
type Thumbnail struct { *ThumbnailConfig // contains filtered or unexported fields }
func NewThumbnail ¶
func NewThumbnailFS ¶
func (*Thumbnail) DoThumbnail ¶
func (*Thumbnail) GetMetadata ¶
func (*Thumbnail) IsRegistered ¶
func (*Thumbnail) StreamObject ¶
func (*Thumbnail) UpdateObjectAfter ¶
func (*Thumbnail) UpdateObjectBefore ¶
func (*Thumbnail) WriteConfig ¶
type ThumbnailConfig ¶
type ThumbnailConfig struct { *ocfl.ExtensionConfig Compress string `json:"compress"` ShortFilename bool `json:"shortFilename"` Ext string `json:"ext"` Width uint64 `json:"width"` Height uint64 `json:"height"` SingleDirectory bool `json:"singleDirectory"` StorageType string `json:"storageType"` StorageName string `json:"storageName"` }
type ThumbnailResult ¶
type ThumbnailResult struct { Ext string `json:"ext,omitempty"` Error string `json:"error,omitempty"` ID string `json:"id,omitempty"` Filename string `json:"filename,omitempty"` StorageType string `json:"storageType,omitempty"` ThumbDigest string `json:"thumbDigest,omitempty"` SourceDigest string `json:"sourceDigest,omitempty"` SourceName []string `json:"sourceName,omitempty"` }
Source Files ¶
- 0001-digest-algorithms.go
- 0002-flat-direct-storage-layout.go
- 0003-hash-and-id-n-tuple-storage-layout.go
- 0004-hashed-n-tuple-storage-layout.go
- 0006-flat-omit-prefix-storage-layout.go
- 0007-n-tuple-omit-prefix-storage-layout.go
- NNNN-content-subpath.go
- NNNN-direct-clean-path-layout.go
- NNNN-filesystem.go
- NNNN-filesystem_unix.go
- NNNN-gocfl-extension-manager.go
- NNNN-indexer-logging-object.go
- NNNN-indexer.go
- NNNN-metafile.go
- NNNN-mets.go
- NNNN-migration.go
- NNNN-pairtree-storage-layout.go
- NNNN-thumbnail.go
- NNNN-thumbnail_native.go
- config.go
- initial.go
- pathdirect.go
Click to show internal directories.
Click to hide internal directories.