Documentation ¶
Index ¶
- Constants
- Variables
- func GetShasForMetadata(m *Metadata) (shas map[string]*sha.Sha, err error)
- func WriteMetadataKeyTo(w io.Writer, c FormatterContext, key *catgut.String) (n int64, err error)
- type Format
- type FormatGeneric
- type Formatter
- type FormatterContext
- type Metadata
- type Options
- type Parser
- type ParserContext
- type Sha
- func GetShaForContext(f FormatGeneric, c FormatterContext) (sh *Sha, err error)
- func GetShaForContextDebug(f FormatGeneric, c FormatterContext) (sh *Sha, err error)
- func GetShaForMetadata(f FormatGeneric, m *Metadata) (sh *Sha, err error)
- func WriteMetadata(w io.Writer, f FormatGeneric, c FormatterContext) (sh *Sha, err error)
Constants ¶
View Source
const ( KeyFormatV5Metadata = "Metadatei" KeyFormatV5MetadataWithoutTai = "MetadateiSansTai" KeyFormatV5MetadataObjectIdParent = "MetadateiKennungMutter" KeyFormatV6Metadata = "Metadata" KeyFormatV6MetadataWithoutTai = "MetadataWithoutTai" KeyFormatV6MetadataObjectIdParent = "MetadataObjectIdParent" )
Variables ¶
View Source
var ( FormatKeys = []string{ KeyFormatV5Metadata, KeyFormatV5MetadataWithoutTai, KeyFormatV5MetadataObjectIdParent, KeyFormatV6Metadata, KeyFormatV6MetadataWithoutTai, KeyFormatV6MetadataObjectIdParent, } FormatKeysV5 = []string{ KeyFormatV5Metadata, KeyFormatV5MetadataWithoutTai, KeyFormatV5MetadataObjectIdParent, } FormatKeysV6 = []string{ KeyFormatV6Metadata, KeyFormatV6MetadataWithoutTai, KeyFormatV6MetadataObjectIdParent, } )
View Source
var ErrEmptyTai = errors.New("empty tai")
View Source
var (
ErrV4ExpectedSpaceSeparatedKey = errors.New("expected space separated key")
)
View Source
var Formats formats
Functions ¶
func GetShasForMetadata ¶
func WriteMetadataKeyTo ¶
Types ¶
type Format ¶
func FormatForVersion ¶
func FormatForVersion(sv interfaces.StoreVersion) Format
func FormatForVersions ¶
func FormatForVersions(write, read interfaces.StoreVersion) Format
func MakeBespoke ¶
type FormatGeneric ¶
type FormatGeneric struct {
// contains filtered or unexported fields
}
func FormatForKey ¶
func FormatForKey(k string) FormatGeneric
func FormatForKeyError ¶
func FormatForKeyError(k string) (fo FormatGeneric, err error)
func (FormatGeneric) WriteMetadataTo ¶
func (f FormatGeneric) WriteMetadataTo( w io.Writer, c FormatterContext, ) (n int64, err error)
type FormatterContext ¶
type FormatterContext interface { object_metadata.PersistentFormatterContext GetObjectId() *ids.ObjectId }
type Metadata ¶
type Metadata = object_metadata.Metadata
type Options ¶
func (Options) SansVerzeichnisse ¶
type Parser ¶
type Parser interface { ParsePersistentMetadata( *catgut.RingBuffer, ParserContext, Options, ) (int64, error) }
type ParserContext ¶
type ParserContext interface { object_metadata.PersistentParserContext SetObjectIdLike(ids.IdLike) error }
type Sha ¶
func GetShaForContext ¶
func GetShaForContext(f FormatGeneric, c FormatterContext) (sh *Sha, err error)
func GetShaForContextDebug ¶
func GetShaForContextDebug( f FormatGeneric, c FormatterContext, ) (sh *Sha, err error)
func GetShaForMetadata ¶
func GetShaForMetadata(f FormatGeneric, m *Metadata) (sh *Sha, err error)
func WriteMetadata ¶
func WriteMetadata(w io.Writer, f FormatGeneric, c FormatterContext) (sh *Sha, err error)
Click to show internal directories.
Click to hide internal directories.