buildvars

package
v0.0.0-...-703489d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assemble

func Assemble(operators []Operator) config.BuildVariables

Assemble will assemble a set of operations into the build variables.

Types

type Builder

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

Builder for a build variables.

func (Builder) Add

func (b Builder) Add(key string, resolver config.Resolver) Builder

Add a key/value pair.

func (Builder) Build

func (b Builder) Build() config.BuildVariables

Build a build variables instance.

func (Builder) ConditionallyAdd

func (b Builder) ConditionallyAdd(cnd func() bool, key string, resolver config.Resolver) Builder

ConditionallyAdd a key/value pair if cnd is true.

type Operation

type Operation func(Builder) Builder

Operation performs some operation on Builder and return modified one.

type Operator

type Operator interface {
	Operation() Operation
}

Jump to

Keyboard shortcuts

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