Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalid indicates that bag validation failed. If there is a validation // error message, ErrInvalid will be wrapped so make sure to use // `errors.Is(err, ErrInvalid)` to test equivalency. ErrInvalid = errors.New("invalid") // ErrBusy is returned when an operation is attempted on BagIt while it is // already processing another command. This ensures that only one command is // processed at a time, preventing race conditions and ensuring the // integrity of the shared resources. ErrBusy = errors.New("runner is busy") )
Functions ¶
This section is empty.
Types ¶
type BagIt ¶
type BagIt struct {
// contains filtered or unexported fields
}
BagIt is an abstraction to work with BagIt packages that embeds Python and the bagit-python.
func NewBagIt ¶
NewBagIt creates and initializes a new BagIt instance. This constructor is computationally expensive as it sets up an embedded Python environment and extracts necessary libraries. It's recommended to create a single instance and share it across your application to avoid repeatedly installing Python.
Click to show internal directories.
Click to hide internal directories.