manifest

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 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 map[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