stateresolver

package
v0.0.0-...-ea0be71 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Computes the state of collection at an exact revision. The revision's parent DAG is traversed back to the root to compute all the deltas.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirPeekResult

type DirPeekResult struct {
	Path       string
	Files      []stotypes.File
	ParentDirs []string // doesn't include root
	SubDirs    []string
}

func DirPeek

func DirPeek(files []stotypes.File, dirToPeek string) *DirPeekResult

given a bunch of files with paths, we can create a directory model that lets us look at one directory at a time, listing its sub- and parent dirs

type StateAt

type StateAt struct {
	ChangesetId string
	// contains filtered or unexported fields
}

func ComputeStateAt

func ComputeStateAt(c stotypes.Collection, changesetId string) (*StateAt, error)

func ComputeStateAtHead

func ComputeStateAtHead(c stotypes.Collection) (*StateAt, error)

func (*StateAt) FileList

func (s *StateAt) FileList() []stotypes.File

List of files present at this revision

func (*StateAt) Files

func (s *StateAt) Files() fileMap

Jump to

Keyboard shortcuts

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