Documentation ¶
Overview ¶
Package zip implements zip repository importer.
Index ¶
- Constants
- type Archive
- func (a *Archive) Description() string
- func (a *Archive) ID() string
- func (a *Archive) LocalPath() string
- func (a *Archive) Preprocess() (string, error)
- func (a *Archive) QuickSHA256Hash() (string, error)
- func (a *Archive) RemotePath() string
- func (a *Archive) RepoName() string
- func (a *Archive) RepoPath() string
- type Repo
Constants ¶
View Source
const (
// RepoName contains the repository name.
RepoName = "zip"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Archive struct {
// contains filtered or unexported fields
}
Archive holds data related to zip archive.
func (*Archive) Description ¶
Description provides additional description for a .zip file.
func (*Archive) Preprocess ¶
Preprocess extracts the contents of a .zip file.
func (*Archive) QuickSHA256Hash ¶
QuickSHA256Hash calculates sha256 hash of .zip file.
func (*Archive) RemotePath ¶
RemotePath returns non-local path to a zip Archive .zip file.
type Repo ¶
type Repo struct { Archives []*Archive // contains filtered or unexported fields }
Repo holds data related to a zip repository.
func (*Repo) DiscoverRepo ¶
DiscoverRepo traverses the repository and looks for files that are related to zip base Archives.
Click to show internal directories.
Click to hide internal directories.