gitkustomizediff

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(dirPath string, opts BuildOpts) (string, error)

func Run

func Run(dirPath string, opts RunOpts) error

Types

type BuildOpts

type BuildOpts struct {
	KustomizePath string
}

type DiffContent

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

func (*DiffContent) AsMarkdown

func (r *DiffContent) AsMarkdown() string

func (*DiffContent) ToString

func (r *DiffContent) ToString() string

type DiffError

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

func (*DiffError) AsMarkdown

func (r *DiffError) AsMarkdown() string

func (*DiffError) Error

func (r *DiffError) Error() error

func (*DiffError) ToString

func (r *DiffError) ToString() string

type DiffMap

type DiffMap struct {
	SrcDirs []string
	DstDirs []string
	Results map[string]DiffResult
}

func Diff

func Diff(baseDirPath, targetDirPath string, opts DiffOpts) (*DiffMap, error)

func NewDiffMap

func NewDiffMap() *DiffMap

func (*DiffMap) Dirs

func (dm *DiffMap) Dirs() []string

type DiffOpts

type DiffOpts struct {
	IncludeRegexp *regexp.Regexp
	ExcludeRegexp *regexp.Regexp
	KustomizePath string
}

type DiffResult

type DiffResult interface {
	ToString() string
	AsMarkdown() string
}

type RunOpts

type RunOpts struct {
	Base          string
	Target        string
	IncludeRegexp *regexp.Regexp
	ExcludeRegexp *regexp.Regexp
	KustomizePath string
	Debug         bool
	AllowDirty    bool
}

Jump to

Keyboard shortcuts

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