pacman

package
v0.0.0-...-28531d7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubRegistry

type GitHubRegistry struct {
	Config *config.Config
	// contains filtered or unexported fields
}

func (*GitHubRegistry) FindPackage

func (reg *GitHubRegistry) FindPackage(name string) *Package

func (*GitHubRegistry) Release

func (reg *GitHubRegistry) Release(name string) (*GitHubRelease, error)

func (*GitHubRegistry) Stage

func (reg *GitHubRegistry) Stage() *Stage

type GitHubRelease

type GitHubRelease struct {
	Name           string
	Version        *semver.Version
	ReleaseVersion *semver.Version
	URL            string
}

type Manifest

type Manifest struct {
	Name           string          `yaml:"name"`
	Version        *semver.Version `yaml:"version"`
	ReleaseVersion *semver.Version `yaml:"release_version"`
}

func ManifestFromFile

func ManifestFromFile(path string) (*Manifest, error)

type Package

type Package struct {
	Name string

	LocalVersion           *semver.Version
	LocalReleaseVersion    *semver.Version
	UpstreamVersion        *semver.Version
	UpstreamReleaseVersion *semver.Version
	URL                    string
	Stage                  *Stage
	Config                 *config.Config
	// contains filtered or unexported fields
}

func NewPackage

func NewPackage(
	name string,
	version *semver.Version,
	releaseVersion *semver.Version,
	url string,
	ch *Stage,
	conf *config.Config,
) *Package

func (*Package) DocsPath

func (pkg *Package) DocsPath() string

func (*Package) EnvFileTemplatePath

func (pkg *Package) EnvFileTemplatePath() string

func (*Package) Fetch

func (pkg *Package) Fetch() error

func (*Package) HasUpdate

func (pkg *Package) HasUpdate() bool

func (*Package) LocalArtifactExists

func (pkg *Package) LocalArtifactExists() bool

func (*Package) LocalArtifactPath

func (pkg *Package) LocalArtifactPath() string

func (*Package) LocalPackageExists

func (pkg *Package) LocalPackageExists() bool

func (*Package) LocalPackagePath

func (pkg *Package) LocalPackagePath() string

func (*Package) MkArtifactDir

func (pkg *Package) MkArtifactDir() error

func (*Package) MkPackageHome

func (pkg *Package) MkPackageHome() error

func (*Package) RemotePackageExists

func (pkg *Package) RemotePackageExists() bool

func (*Package) RemoveLocalArtifact

func (pkg *Package) RemoveLocalArtifact() error

func (*Package) RemoveLocalPackage

func (pkg *Package) RemoveLocalPackage() error

func (*Package) RemoveStagedPackage

func (pkg *Package) RemoveStagedPackage() error

func (*Package) StagedPackageExists

func (pkg *Package) StagedPackageExists() bool

func (*Package) StagedPackagePath

func (pkg *Package) StagedPackagePath() string

func (*Package) TaskFilePath

func (pkg *Package) TaskFilePath() string

func (*Package) Unpack

func (pkg *Package) Unpack() error

type Registry

type Registry interface {
	Stage() *Stage
	FindPackage(name string) *Package
}

func NewRegistry

func NewRegistry(conf *config.Config) Registry

type Stage

type Stage struct {
	Config *config.Config
}

func (*Stage) Clear

func (ch *Stage) Clear() error

func (*Stage) Mkdir

func (ch *Stage) Mkdir() error

func (*Stage) RemoveStagedPackage

func (ch *Stage) RemoveStagedPackage(pkg *Package) error

func (*Stage) StagedPackageExists

func (ch *Stage) StagedPackageExists(pkg *Package) bool

func (*Stage) StagedPackagePath

func (ch *Stage) StagedPackagePath(pkg *Package) string

Jump to

Keyboard shortcuts

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