pack

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pack

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

Pack represents a specific version of an Oya pack.

func New

func New(repo Repo, version semver.Version) (Pack, error)

func (Pack) ImportPath

func (p Pack) ImportPath() types.ImportPath

func (Pack) Install

func (p Pack) Install(installDir string) error

func (Pack) InstallPath

func (p Pack) InstallPath(installDir string) string

func (Pack) IsInstalled

func (p Pack) IsInstalled(installDir string) (bool, error)

func (Pack) LocalReplacement

func (p Pack) LocalReplacement(replacementPath string) Pack

func (Pack) ReplacementPath

func (p Pack) ReplacementPath() (string, bool)

func (Pack) Version

func (p Pack) Version() semver.Version

type Repo

type Repo interface {
	Install(version semver.Version, installDir string) error
	IsInstalled(version semver.Version, installDir string) (bool, error)
	InstallPath(version semver.Version, installDir string) string
	ImportPath() types.ImportPath
}

Jump to

Keyboard shortcuts

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