Documentation ¶
Index ¶
- type Indexer
- type Ingest
- func (i *Ingest) BagitLoadAll(fn func(bagit *IngestBagit) error) error
- func (i *Ingest) BagitNew(name string, size int64, sha512, sha512_aes, report, creator, baginfo string, ...) (*IngestBagit, error)
- func (i *Ingest) Check() error
- func (i *Ingest) Ingest() error
- func (i *Ingest) IngestBagitLocationNew(bagit *IngestBagit, loc *IngestLocation) (*IngestBagitLocation, error)
- func (i *Ingest) IngestBagitTestLocationNew(ingestBagit *IngestBagit, loc *IngestLocation, test *IngestTest) (*IngestBagitTestLocation, error)
- func (i *Ingest) Init() error
- func (i *Ingest) Report() error
- func (i *Ingest) ReportBagit(bagit *IngestBagit, t *template.Template, reportWriter io.Writer) error
- func (i *Ingest) ReportBagits(reportBagits, reportSHA512 *template.Template, ...) error
- func (i *Ingest) ReportIndex(t *template.Template, wr io.Writer) error
- func (i *Ingest) ReportKeys(t *template.Template, wr io.Writer) error
- func (i *Ingest) TestLoadAll() (map[string]*IngestTest, error)
- func (i *Ingest) Transfer() error
- type IngestBagit
- func (bagit *IngestBagit) AddContent(zippath, diskpath string, filesize int64, checksums map[string]string, ...) error
- func (bagit *IngestBagit) Check(location *IngestLocation, checkInterval time.Duration) (bool, error)
- func (bagit *IngestBagit) ContentLoadAll(fn func(content *IngestBagitContent) error) error
- func (bagit *IngestBagit) ExistsAt(location *IngestLocation) (bool, error)
- func (bagit *IngestBagit) GetIV() []byte
- func (bagit *IngestBagit) GetKey() []byte
- func (bagit *IngestBagit) SetIV(iv []byte) error
- func (bagit *IngestBagit) SetKey(key []byte) error
- func (bagit *IngestBagit) Store() error
- func (bagit *IngestBagit) TestLoadAll(loc *IngestLocation, fn func(test *IngestBagitTestLocation) error) error
- type IngestBagitContent
- type IngestBagitLocation
- type IngestBagitTestLocation
- type IngestLocation
- type IngestTest
- type RSTTable
- type RSTTableRow
- type TplBagitContent
- type TplBagitEntry
- type TplBagitEntryTest
- type TplBagitKeyVal
- type TplBagitTest
- type Transfer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer struct { Duration int64 `json:"duration,omitempty"` Width int64 `json:"width,omitempty"` Height int64 `json:"height,omitempty"` Errors map[string]string `json:"errors,omitempty"` Mimetype string `json:"mimetype,omitempty"` NSRL []indexer.ActionNSRLMeta `json:"nsrl,omitempty"` Identify map[string]interface{} `json:"identify,omitempty"` FFProbe ffmpeg_models.Metadata `json:"ffprobe,omitempty"` Siegfried []siegfried_pronom.Identification `json:"siegfried,omitempty"` Tika []map[string]interface{} `json:"tika,omitempty"` Exif map[string]interface{} `json:"exif,omitempty"` Clamav map[string]string `json:"clamav,omitempty"` }
type Ingest ¶
type Ingest struct {
// contains filtered or unexported fields
}
func (*Ingest) BagitLoadAll ¶
func (i *Ingest) BagitLoadAll(fn func(bagit *IngestBagit) error) error
func (*Ingest) IngestBagitLocationNew ¶
func (i *Ingest) IngestBagitLocationNew(bagit *IngestBagit, loc *IngestLocation) (*IngestBagitLocation, error)
func (*Ingest) IngestBagitTestLocationNew ¶
func (i *Ingest) IngestBagitTestLocationNew(ingestBagit *IngestBagit, loc *IngestLocation, test *IngestTest) (*IngestBagitTestLocation, error)
func (*Ingest) ReportBagit ¶
func (*Ingest) ReportBagits ¶
func (*Ingest) TestLoadAll ¶
func (i *Ingest) TestLoadAll() (map[string]*IngestTest, error)
type IngestBagit ¶
type IngestBagit struct { Id int64 Name string Size int64 SHA512 string SHA512_aes string Report string Creator string Creationdate time.Time Baginfo string // contains filtered or unexported fields }
IngestBagit
func (*IngestBagit) AddContent ¶
func (*IngestBagit) Check ¶
func (bagit *IngestBagit) Check(location *IngestLocation, checkInterval time.Duration) (bool, error)
func (*IngestBagit) ContentLoadAll ¶
func (bagit *IngestBagit) ContentLoadAll(fn func(content *IngestBagitContent) error) error
func (*IngestBagit) ExistsAt ¶
func (bagit *IngestBagit) ExistsAt(location *IngestLocation) (bool, error)
func (*IngestBagit) GetIV ¶
func (bagit *IngestBagit) GetIV() []byte
func (*IngestBagit) GetKey ¶
func (bagit *IngestBagit) GetKey() []byte
func (*IngestBagit) SetIV ¶
func (bagit *IngestBagit) SetIV(iv []byte) error
func (*IngestBagit) SetKey ¶
func (bagit *IngestBagit) SetKey(key []byte) error
func (*IngestBagit) Store ¶
func (bagit *IngestBagit) Store() error
func (*IngestBagit) TestLoadAll ¶
func (bagit *IngestBagit) TestLoadAll(loc *IngestLocation, fn func(test *IngestBagitTestLocation) error) error
type IngestBagitContent ¶
type IngestBagitContent struct {
ZipPath, DiskPath string
Filesize int64
Checksums map[string]string
Mimetype string
Width, Height, Duration int64
Indexer string
// contains filtered or unexported fields
}
func (*IngestBagitContent) Store ¶
func (ibc *IngestBagitContent) Store() error
type IngestBagitLocation ¶
type IngestBagitLocation struct {
// contains filtered or unexported fields
}
func NewIngestBagitLocation ¶
func NewIngestBagitLocation(ingest *Ingest, bagit *IngestBagit, location *IngestLocation) (*IngestBagitLocation, error)
func (*IngestBagitLocation) Exists ¶
func (ibl *IngestBagitLocation) Exists() (bool, error)
func (*IngestBagitLocation) SetData ¶
func (ibl *IngestBagitLocation) SetData(status, message string, start, end time.Time) error
func (*IngestBagitLocation) Store ¶
func (ibl *IngestBagitLocation) Store() error
func (*IngestBagitLocation) Transfer ¶
func (ibl *IngestBagitLocation) Transfer(source *IngestBagitLocation) error
type IngestBagitTestLocation ¶
type IngestBagitTestLocation struct {
// contains filtered or unexported fields
}
func NewIngestBagitTestLocation ¶
func NewIngestBagitTestLocation(ingest *Ingest, bagit *IngestBagit, test *IngestTest, location *IngestLocation) (*IngestBagitTestLocation, error)
func (*IngestBagitTestLocation) Last ¶
func (ibl *IngestBagitTestLocation) Last() error
func (*IngestBagitTestLocation) SetData ¶
func (ibl *IngestBagitTestLocation) SetData(status, message, data string, start, end time.Time) error
func (*IngestBagitTestLocation) Store ¶
func (ibl *IngestBagitTestLocation) Store() error
func (*IngestBagitTestLocation) Test ¶
func (ibl *IngestBagitTestLocation) Test() error
type IngestLocation ¶
type IngestLocation struct {
// contains filtered or unexported fields
}
func (*IngestLocation) GetPath ¶
func (loc *IngestLocation) GetPath() *url.URL
func (*IngestLocation) HasBagit ¶
func (loc *IngestLocation) HasBagit(bagit *IngestBagit) (bool, error)
func (*IngestLocation) IsEncrypted ¶
func (loc *IngestLocation) IsEncrypted() bool
func (*IngestLocation) LoadTransfer ¶
func (loc *IngestLocation) LoadTransfer(bagit *IngestBagit) (*Transfer, error)
func (*IngestLocation) Store ¶
func (loc *IngestLocation) Store() error
type IngestTest ¶
type IngestTest struct {
// contains filtered or unexported fields
}
type RSTTableRow ¶
type TplBagitContent ¶
func (TplBagitContent) Cols ¶
func (tbc TplBagitContent) Cols() []string
func (TplBagitContent) FieldSize ¶
func (tbc TplBagitContent) FieldSize(col string, maxWidth int) (w int, h int)
func (TplBagitContent) Title ¶
func (tbc TplBagitContent) Title(col string) string
type TplBagitEntry ¶
type TplBagitEntry struct { Name string Size string Ingested string TestsMessage string Price string Quality string }
func (TplBagitEntry) Cols ¶
func (tbe TplBagitEntry) Cols() []string
func (TplBagitEntry) FieldSize ¶
func (tbe TplBagitEntry) FieldSize(col string, maxWidth int) (w int, h int)
func (TplBagitEntry) Title ¶
func (tbe TplBagitEntry) Title(col string) string
type TplBagitEntryTest ¶
type TplBagitKeyVal ¶
type TplBagitKeyVal struct {
Key, Value string
}
func (TplBagitKeyVal) Cols ¶
func (tbkv TplBagitKeyVal) Cols() []string
func (TplBagitKeyVal) FieldSize ¶
func (tbkv TplBagitKeyVal) FieldSize(col string, maxWidth int) (w int, h int)
func (TplBagitKeyVal) Title ¶
func (tbkv TplBagitKeyVal) Title(col string) string
type TplBagitTest ¶
type TplBagitTest struct {
End, Status, Test, Message string
}
func (TplBagitTest) Cols ¶
func (tbt TplBagitTest) Cols() []string
func (TplBagitTest) FieldSize ¶
func (tbt TplBagitTest) FieldSize(col string, maxWidth int) (w int, h int)
func (TplBagitTest) Title ¶
func (tbt TplBagitTest) Title(col string) string
Click to show internal directories.
Click to hide internal directories.