builtins

package
v0.0.302-pre-1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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