dotlekko

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DotLekko

type DotLekko struct {
	// v1
	Version string `json:"version" yaml:"version"`
	// <owner>/<name>
	Repository string `json:"repository" yaml:"repository,omitempty"`
	// Where lekko/, the directory where config functions are managed, is in the project
	LekkoPath string `json:"lekkoPath" yaml:"lekko_path"`
	// The latest pushed commit SHA in the config repo from the perspective of the code repo.
	// Allows stable regeneration and correct 3-way merges.
	// This field is generated/managed by the CLI and should not be modified by hand.
	LockSHA string `json:"lockSHA" yaml:"lock_sha,omitempty"`
	// contains filtered or unexported fields
}

Parsed schema for .lekko config/lock file in code repos. Allows the Lekko CLI and build tools to be able to fetch/generate correct information.

func NewDotLekko added in v0.3.25

func NewDotLekko(lekkoPath string) *DotLekko

func ParseDotLekko

func ParseDotLekko(r io.Reader) (*DotLekko, error)

func ReadDotLekko

func ReadDotLekko() (*DotLekko, error)

Looks for .lekko or .lekko.(yaml|yml) in the working directory Returns the parsed configuration object and the path to the file.

func (*DotLekko) GetPath

func (d *DotLekko) GetPath() string

Get path where the dotlekko object was read from

func (*DotLekko) GetRepoInfo

func (d *DotLekko) GetRepoInfo() (string, string)

func (*DotLekko) WriteBack

func (d *DotLekko) WriteBack() error

Writes back the contents of the dotlekko object to the path it was read from

Jump to

Keyboard shortcuts

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