archive

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package archive handles the library release archive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	SourcePath string
	RootName   string // Name of the root folder inside the archive.
	FileName   string
	Path       string // Full path of the archive.
	URL        string // URL the archive will have on the download server.
	Size       int64
	Checksum   string
}

Archive is the type for library release archive data.

func New

func New(repository *libraries.Repository, libraryMetadata *metadata.LibraryMetadata, config *configuration.Config) (*Archive, error)

New initializes and returns an Archive object.

func (*Archive) Create

func (archive *Archive) Create() error

Create makes an archive file according to the data of the Archive object and updates the object with the size and checksum for the resulting file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL