builder

package
v0.0.0-...-04d20c9 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidVersionName = errors.New("invalid version name")
View Source
var ErrYamlNotFound = errors.New("no yaml file found")

Functions

This section is empty.

Types

type Builder

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

func New

func New() Builder

New creates a new Builder instance.

func NewWithLogger

NewWithLogger creates a new Validator instance with a custom logger.

func (*Builder) Build

func (b *Builder) Build(src, target string) error

Build validates source dir and creates a KrtFile.

func (*Builder) CreateKrt

func (b *Builder) CreateKrt(src, target string) error

CreateKrt create a krt file from a source dir.

func (*Builder) UpdateVersion

func (b *Builder) UpdateVersion(src, version string) error

UpdateVersion updates krt yaml file version name.

func (*Builder) Validate

func (b *Builder) Validate(src string) error

Validate validates Krt source dir.

Jump to

Keyboard shortcuts

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