config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindConfigFile

func FindConfigFile(_ afero.Fs) (string, error)

func Parse

func Parse(fsys afero.Fs, filename string) (*v1.Config, error)

func RenderConfigTemplates

func RenderConfigTemplates(cfg *v1.Config, props *ProjectProperties) error

Types

type ProjectProperties

type ProjectProperties struct {
	// Common
	ProjectName string
	Env         map[string]string

	// Git
	Branch       string
	Tag          string
	FullCommit   string
	ShortCommit  string
	IsGitDirty   bool
	IsGitClean   bool
	GitTreeState string
}

func BuildProjectProperties

func BuildProjectProperties(g git.Client, cfg *v1.Config) (*ProjectProperties, error)

Jump to

Keyboard shortcuts

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