config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJsonSchema

func GetJsonSchema() *jsonschema.Schema

Types

type Config

type Config struct {
	// The base image to use for the build
	BaseImage string `json:"baseImage,omitempty" jsonschema:"description=The base image to use for the build"`

	// List of providers to use
	Providers *[]string `json:"providers,omitempty" jsonschema:"description=List of providers to use"`

	// Map of step names to step definitions
	Steps map[string]*plan.Step `json:"steps,omitempty" jsonschema:"description=Map of step names to step definitions"`

	// Start configuration
	Start plan.Start `json:"start,omitempty" jsonschema:"description=Start configuration"`

	// Map of package name to package version
	Packages map[string]string `json:"packages,omitempty" jsonschema:"description=Map of package name to package version"`

	// List of apt packages to install
	AptPackages []string `json:"aptPackages,omitempty" jsonschema:"description=List of apt packages to install"`

	// Map of cache name to cache definitions. The cache key can be referenced in an exec command.
	Caches map[string]*plan.Cache `` /* 139-byte string literal not displayed */

	// Secrets that should be made available to commands that have useSecrets set to true
	Secrets []string `` /* 132-byte string literal not displayed */
}

func EmptyConfig

func EmptyConfig() *Config

func Merge

func Merge(configs ...*Config) *Config

Merge combines multiple configs by merging their values with later configs taking precedence

func (*Config) GetOrCreateStep

func (c *Config) GetOrCreateStep(name string) *plan.Step

func (Config) JSONSchemaExtend

func (Config) JSONSchemaExtend(schema *jsonschema.Schema)

Jump to

Keyboard shortcuts

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