Documentation ¶
Index ¶
- type Index
- func (idx *Index) AddStage(stg stage.Stage, path string) error
- func (idx Index) Checkout(stagePath string, ch cache.Cache, rootDir string, ...) error
- func (idx Index) Commit(stagePath string, ch cache.Cache, rootDir string, ...) error
- func (idx Index) Fetch(stagePath string, ch cache.Cache, rootDir string, recursive bool, ...) error
- func (idx Index) Graph(stagePath string, inProgress map[string]bool, graph *gographviz.Escape, ...) error
- func (idx Index) Push(stagePath string, ch cache.Cache, rootDir string, recursive bool, ...) error
- func (idx *Index) RemoveStage(path string) error
- func (idx Index) Run(stagePath string, ch cache.Cache, rootDir string, recursive bool, ...) error
- func (idx Index) SortStagePaths() []string
- func (idx Index) Status(stagePath string, ch cache.Cache, rootDir string, out Status, ...) error
- func (idx Index) ToFile(indexPath string) error
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
An Index holds an exhaustive set of Stages for a repository. Not threadsafe.
func FromFile ¶
FromFile reads and returns an Index from the specified file path. See ToFile docs for more context. TODO no tests
func (*Index) AddStage ¶ added in v0.1.0
AddStage adds the given Stage to the Index, with the given path as the key.
func (Index) Checkout ¶
func (idx Index) Checkout( stagePath string, ch cache.Cache, rootDir string, strat strategy.CheckoutStrategy, recursive bool, checkedOut map[string]bool, inProgress map[string]bool, logger *agglog.AggLogger, ) error
Checkout checks out a Stage and all upstream Stages.
func (Index) Commit ¶
func (idx Index) Commit( stagePath string, ch cache.Cache, rootDir string, strat strategy.CheckoutStrategy, committed map[string]bool, inProgress map[string]bool, logger *agglog.AggLogger, ) error
Commit commits the given Stage's Outputs and recursively acts on all upstream Stages.
func (Index) Fetch ¶
func (idx Index) Fetch( stagePath string, ch cache.Cache, rootDir string, recursive bool, remote string, fetched map[string]bool, inProgress map[string]bool, logger *agglog.AggLogger, ) error
Fetch downloads a Stage's Outputs and the Outputs of any upstream Stages.
func (Index) Graph ¶
func (idx Index) Graph( stagePath string, inProgress map[string]bool, graph *gographviz.Escape, onlyStages bool, ) error
Graph creates a dependency graph starting from the given Stage.
func (Index) Push ¶
func (idx Index) Push( stagePath string, ch cache.Cache, rootDir string, recursive bool, remote string, pushed map[string]bool, inProgress map[string]bool, logger *agglog.AggLogger, ) error
Push uploads a Stage's Outputs and the Outputs of any upstream Stages.
func (*Index) RemoveStage ¶ added in v0.4.0
func (Index) Run ¶
func (idx Index) Run( stagePath string, ch cache.Cache, rootDir string, recursive bool, ran map[string]bool, inProgress map[string]bool, logger *agglog.AggLogger, ) error
Run runs a Stage and all upstream Stages.
func (Index) SortStagePaths ¶ added in v0.3.0
SortStagePaths returns a sorted slice of Stage paths stored in the Index.