Documentation ¶
Overview ¶
Define custom patterns (implementing the siegfried.Pattern interface) for the different patterns allowed by the PRONOM spec.
Package pronom implements the TNA's PRONOM signatures as a siegfried identifier
Index ¶
- func Harvest() []error
- func Load(ls *persist.LoadSaver) core.Identifier
- func New(opts ...config.Option) (core.Identifier, error)
- func NewPronom() (identifier.Parseable, error)
- type Identification
- type Identifier
- type Range
- func (r Range) Equals(pat patterns.Pattern) bool
- func (r Range) Length() (int, int)
- func (r Range) NumSequences() int
- func (r Range) Save(ls *persist.LoadSaver)
- func (r Range) Sequences() []patterns.Sequence
- func (r Range) String() string
- func (r Range) Test(b []byte) (bool, int)
- func (r Range) TestR(b []byte) (bool, int)
- type Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Identification ¶
type Identification struct { Namespace string ID string Name string Version string Mime string Basis []string Warning string // contains filtered or unexported fields }
func (Identification) Archive ¶
func (id Identification) Archive() config.Archive
func (Identification) CSV ¶
func (id Identification) CSV() []string
func (Identification) JSON ¶
func (id Identification) JSON() string
func (Identification) Known ¶
func (id Identification) Known() bool
func (Identification) String ¶
func (id Identification) String() string
func (Identification) Warn ¶
func (id Identification) Warn() string
func (Identification) YAML ¶
func (id Identification) YAML() string
type Identifier ¶
type Identifier struct { *identifier.Base // contains filtered or unexported fields }
func (*Identifier) Fields ¶
func (i *Identifier) Fields() []string
func (*Identifier) Recorder ¶
func (i *Identifier) Recorder() core.Recorder
func (*Identifier) Save ¶
func (i *Identifier) Save(ls *persist.LoadSaver)
type Recorder ¶
type Recorder struct { *Identifier // contains filtered or unexported fields }
func (*Recorder) Active ¶
func (r *Recorder) Active(m core.MatcherType)
func (*Recorder) Report ¶
func (r *Recorder) Report(res chan core.Identification)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file contains struct mappings to unmarshal three different PRONOM XML formats: the signature file format, the report format, and the container format
|
This file contains struct mappings to unmarshal three different PRONOM XML formats: the signature file format, the report format, and the container format |
Click to show internal directories.
Click to hide internal directories.