Documentation ¶
Overview ¶
Package targz implements targz 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 = "targz"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶ added in v1.0.3
type Archive struct {
// contains filtered or unexported fields
}
Archive holds data related to targz archive.
func (*Archive) Description ¶ added in v1.0.3
Description provides additional description for a .tar.gz file.
func (*Archive) LocalPath ¶ added in v1.0.3
LocalPath returns local path to a targz Archive .tar.gz file.
func (*Archive) Preprocess ¶ added in v1.0.3
Preprocess extracts the contents of a .tar.gz file.
func (*Archive) QuickSHA256Hash ¶ added in v1.0.3
QuickSHA256Hash calculates sha256 hash of .tar.gz file.
func (*Archive) RemotePath ¶ added in v1.0.3
RemotePath returns non-local path to a targz Archive .tar.gz file.
type Repo ¶
type Repo struct { Archives []*Archive // contains filtered or unexported fields }
Repo holds data related to a targz repository.
func (*Repo) DiscoverRepo ¶
DiscoverRepo traverses the repository and looks for files that are related to targz base Archives.
Click to show internal directories.
Click to hide internal directories.