manifest

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Id         string
	Title      string
	AuthorName string
}

func (Commit) String

func (c Commit) String() string

type DbtVersion

type DbtVersion struct {
	Major, Minor, Revision uint
}

func (DbtVersion) String

func (v DbtVersion) String() string

type DiffResult

type DiffResult struct {
	Differ                       bool
	DbtVersion                   string
	ModifiedModules              []ModuleDiff
	AddedModules, RemovedModules []Module
}

func Diff

func Diff(newManifest, oldManifest Manifest) (DiffResult, error)

type Manifest

type Manifest struct {
	DbtVersion DbtVersion
	Modules    []Module
}

func Generate

func Generate(modules util.OrderedMap[string, module.Module], allowUncommittedChanges bool) (Manifest, error)

type Module

type Module struct {
	Name, Url, Hash, Type string
	Dirty                 bool
}

type ModuleDiff

type ModuleDiff struct {
	New, Old         Module
	AddedCommits     []Commit
	DiscardedCommits []Commit
	// May be null if no common ancestor is found
	FirstCommonAncestor *Commit
}

Jump to

Keyboard shortcuts

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