iso9660

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package iso9660 implements iso9660 repository importer.

Index

Constants

View Source
const (
	// RepoName contains the repository name.
	RepoName = "iso9660"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ISO9660

type ISO9660 struct {
	// contains filtered or unexported fields
}

Archive holds data related to the ISO file.

func (*ISO9660) Description

func (a *ISO9660) Description() string

Description provides additional description for a .iso file.

func (*ISO9660) ID

func (a *ISO9660) ID() string

ID returns non-unique ISO file Archive ID.

func (*ISO9660) LocalPath

func (a *ISO9660) LocalPath() string

LocalPath returns local path to a ISO file Archive .iso file.

func (*ISO9660) Preprocess

func (a *ISO9660) Preprocess() (string, error)

Preprocess extracts the contents of a .tar.gz file.

func (*ISO9660) QuickSHA256Hash

func (a *ISO9660) QuickSHA256Hash() (string, error)

QuickSHA256Hash calculates sha256 hash of .iso file.

func (*ISO9660) RemotePath

func (a *ISO9660) RemotePath() string

RemotePath returns non-local path to a ISO file Archive .iso file.

func (*ISO9660) RepoName

func (a *ISO9660) RepoName() string

RepoName returns repository name.

func (*ISO9660) RepoPath

func (a *ISO9660) RepoPath() string

RepoPath returns repository path.

type Repo

type Repo struct {
	Archives []*ISO9660
	// contains filtered or unexported fields
}

Repo holds data related to an ISO file repository.

func NewRepo

func NewRepo(path string) *Repo

NewRepo returns new instance of an ISO file repository.

func (*Repo) DiscoverRepo

func (r *Repo) DiscoverRepo() ([]hashr.Source, error)

DiscoverRepo traverses the repository and looks for files that are related to ISO file base Archives.

func (*Repo) RepoName

func (r *Repo) RepoName() string

RepoName returns repository name.

func (*Repo) RepoPath

func (r *Repo) RepoPath() string

RepoPath returns repository path.

Jump to

Keyboard shortcuts

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