builtins

package
v0.2.76 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0 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 Builtin

type Builtin struct {
	Name        string
	Description string
	Details     string
	Template    string
	Settings    []Setting
	// contains filtered or unexported fields
}

Builtin - Definition of a Fly Builtin Builder

func GetBuiltin

func GetBuiltin(builtinname string) (*Builtin, error)

GetBuiltin - Finds the Builtin by name

func GetBuiltins

func GetBuiltins() []Builtin

GetBuiltins - Get an array of all the builtins

func (*Builtin) GetSetting

func (b *Builtin) GetSetting(name string) Setting

GetSetting - Gets the Setting structure for a named setting

func (*Builtin) GetVDockerfile

func (b *Builtin) GetVDockerfile(vars map[string]interface{}) (string, error)

GetVDockerfile - given an map of variables, get the definition and populate it

func (*Builtin) ResolveSettings

func (b *Builtin) ResolveSettings(vars map[string]interface{}) map[string]interface{}

ResolveSettings - Given defaults abd values return actural settings

type Setting

type Setting struct {
	Name        string
	Default     interface{}
	Description string
}

Setting is a simple holder for names and defaults in Settings

Jump to

Keyboard shortcuts

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