Documentation ¶
Index ¶
- Variables
- func CreateManifest(manifestName string, bagLoc string, algorithm string, numProcesses int) error
- func CreateTagManifest(inputDir string, algorithm string, numProcesses int) error
- func FindDirInBag(bagLocation string, matcher *regexp.Regexp) (string, error)
- func FindDirsInBag(bagLocation string, matcher *regexp.Regexp) ([]string, error)
- func FindFileInBag(bagLocation string, matcher *regexp.Regexp) (string, error)
- func FindFilesInBag(bagLocation string, matcher *regexp.Regexp) ([]string, error)
- func GenerateChecksum(f *os.File, algorithm string) (string, error)
- func GetDirsInBag(bagLocation string) ([]string, error)
- func GetFilesInBag(bagLocation string) ([]string, error)
- func GetOxum(bagLocation string) (string, error)
- func GetSoftwareAgent() string
- func Logger() *stdlog.Logger
- func ReadManifestMap(path string) (map[string]string, error)
- func ValidateChecksum(f *os.File, algorithm string, checksum string) error
- func ValidateManifest(manifestLocation string, complete bool) (map[string]string, []error)
- func ValidateOxum(bagLocation string, oxum string) error
- func WithLogger(logger *stdlog.Logger)
- type Bag
- type BagInfo
- type Bagit
- type Manifest
- type ManifestRefs
- type Oxum
- type Payload
- func (p Payload) FindAllInPayload(matcher *regexp.Regexp) []PayloadMatch
- func (p Payload) FindDirsInPayload(matcher *regexp.Regexp) []PayloadMatch
- func (p Payload) FindFilesInPayload(matcher *regexp.Regexp) []PayloadMatch
- func (p Payload) GetDirInPayload(dirName string) (PayloadMatch, error)
- func (p Payload) GetFileInPayload(filename string) (PayloadMatch, error)
- type PayloadMatch
- type StandardTagSet
- type TagSet
Constants ¶
This section is empty.
Variables ¶
View Source
var StandardTags = GetStandardTags()
Functions ¶
func CreateManifest ¶
func CreateTagManifest ¶
func FindDirsInBag ¶
func FindFilesInBag ¶
func GetDirsInBag ¶
func GetFilesInBag ¶
func GetSoftwareAgent ¶
func GetSoftwareAgent() string
func ValidateManifest ¶
func ValidateOxum ¶
Types ¶
type Bag ¶
type Bag struct { Path string Name string AbsPath string Payload Payload BagInfo TagSet BagIt TagSet Manifests ManifestRefs TagManifests ManifestRefs }
func GetExistingBag ¶
func (Bag) AddFileToBagRoot ¶
Adds a file to the bag root and registers it in the tagmanifest file
func (Bag) GetAbsolutePath ¶
func (Bag) ListPayloadFiles ¶
func (b Bag) ListPayloadFiles()
type Manifest ¶
func (Manifest) UpdateManifest ¶
type ManifestRefs ¶
func GetManifests ¶
func GetManifests(bagLocation string) (ManifestRefs, error)
func GetTagManifests ¶
func GetTagManifests(bagLocation string) (ManifestRefs, error)
type Payload ¶
func (Payload) FindAllInPayload ¶
func (p Payload) FindAllInPayload(matcher *regexp.Regexp) []PayloadMatch
func (Payload) FindDirsInPayload ¶
func (p Payload) FindDirsInPayload(matcher *regexp.Regexp) []PayloadMatch
func (Payload) FindFilesInPayload ¶
func (p Payload) FindFilesInPayload(matcher *regexp.Regexp) []PayloadMatch
func (Payload) GetDirInPayload ¶
func (p Payload) GetDirInPayload(dirName string) (PayloadMatch, error)
func (Payload) GetFileInPayload ¶
func (p Payload) GetFileInPayload(filename string) (PayloadMatch, error)
type PayloadMatch ¶
type StandardTagSet ¶
type StandardTagSet struct { BagSoftwareAgent string SourceOrganization string OrganizationAddress string ContactName string ContactPhone string ContactEmail string ExternalDescription string ExternalIdentifier string BagSize string BaggingDate string PayloadOxum string BagCount string BagGroupIdentifier string InternalSenderIdentifier string InternalSenderDescription string BagItVersion string TagFileCharacterEncoding string }
func GetStandardTags ¶
func GetStandardTags() StandardTagSet
type TagSet ¶
func CreateBagInfo ¶
func CreateBagInfo() TagSet
func CreateBagit ¶
func CreateBagit() TagSet
func (TagSet) GetTagSetAsByteSlice ¶
func (TagSet) UpdateTagFile ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.