catalog

package
v0.0.0-...-513d317 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LineageFileName = "lineage.tl"
	MirrorsFileName = "mirrors.tl"
)

Variables

View Source
var SagaNameZero = SagaName{}

Functions

func SaveCandidateRelease

func SaveCandidateRelease(landmarks layout.Workspace, sagaName SagaName, modName api.ModuleName, content map[api.ItemName]api.WareID, stderr io.Writer) error

func SaveCandidateReplay

func SaveCandidateReplay(landmarks layout.Workspace, sagaName SagaName, modName api.ModuleName, mod api.Module, stderr io.Writer) error

Types

type SagaName

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

func ParseSagaName

func ParseSagaName(s string) (*SagaName, error)

func (SagaName) String

func (sn SagaName) String() string

type Tree

type Tree struct {
	Root string
}

func (Tree) LoadModuleLineage

func (tree Tree) LoadModuleLineage(modName api.ModuleName) (lin *api.Lineage, err error)

LoadModuleLineage attempts to load the lineage file for a module from the catalog. The result can never be nil unless there is an error since the lineage file is the one file that's required for the rest of the catalog folder to be recognizable.

func (Tree) LoadModuleMirrors

func (tree Tree) LoadModuleMirrors(modName api.ModuleName) (ws *api.WareSourcing, err error)

LoadModuleMirrors attempts to load the mirrors list file for a module from the catalog. The result is nil and nil error iff the file does not exist.

func (Tree) SaveModuleLineage

func (tree Tree) SaveModuleLineage(modName api.ModuleName, lin api.Lineage) error

SaveModuleLineage writes out a linage file for a module to the catalog. The dirs will be created if necessary.

func (Tree) SaveModuleMirrors

func (tree Tree) SaveModuleMirrors(modName api.ModuleName, ws api.WareSourcing) error

SaveModuleMirrors writes out a mirrors list file for a module to the catalog. The lineage must be written first (e.g. the dir must exist).

Directories

Path Synopsis
Package hitch provides an implementation backed by the filesystem for the interfaces specified by the go.polydawn.net/go-timeless-api/hitch package.
Package hitch provides an implementation backed by the filesystem for the interfaces specified by the go.polydawn.net/go-timeless-api/hitch package.

Jump to

Keyboard shortcuts

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