{"modulePath":"github.com/data-preservation-programs/singularity","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package push\n\n## Functions\n\n```go\nfunc CreatePackJob(\n\tctx context.Context,\n\tdb *gorm.DB,\n\tattachmentID model.SourceAttachmentID,\n\tfileRangeIDs []model.FileRangeID,\n) (*model.Job, error)\n```\n\n```go\nfunc EnsureParentDirectories(\n\tctx context.Context,\n\tdb *gorm.DB,\n\tfile *model.File, rootDirID model.DirectoryID,\n\tdirectoryCache map[string]model.DirectoryID,\n) error\n```\n\n```go\nfunc ExtractFromFsObject(ctx context.Context, info fs.ObjectInfo) (size int64, hashValue string, lastModified time.Time)\n```\n\n```go\nfunc MaxSizeToSplitSize(m int64) int64\n```\n\n```go\nfunc PushFile(\n\tctx context.Context,\n\tdb *gorm.DB,\n\tobj fs.ObjectInfo,\n\tattachment model.SourceAttachment,\n\tdirectoryCache map[string]model.DirectoryID,\n) (*model.File, []model.FileRange, error)\n```\n\n## Types\n\n```go\ntype FileRangeSet struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewFileRangeSet() *FileRangeSet\n```\n\n```go\nfunc (r *FileRangeSet) Add(fileRanges ...model.FileRange)\n```\n\n```go\nfunc (r *FileRangeSet) AddIfFits(fileRange model.FileRange, maxSize int64) bool\n```\n\n```go\nfunc (r *FileRangeSet) CarSize() int64\n```\n\n```go\nfunc (r *FileRangeSet) FileRangeIDs() []model.FileRangeID\n```\n\n```go\nfunc (r *FileRangeSet) FileRanges() []model.FileRange\n```\n\n```go\nfunc (r *FileRangeSet) Reset()\n```\n\n","path":"github.com/data-preservation-programs/singularity/pack/push","name":"push","synopsis":"","isRedistributable":true}
