builtinsupport

package
v0.0.145-beta-2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 6 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(commandContext *cmdctx.CmdContext, builtinname string) (*Builtin, error)

GetBuiltin - Finds the Builtin by name

func GetBuiltins

func GetBuiltins(commandContext *cmdctx.CmdContext) []Builtin

GetBuiltins - Get an array of all the builtins

func (*Builtin) GetSetting added in v0.0.145

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

GetSetting - Gets the Setting structure for a named setting

func (*Builtin) GetVDockerfile added in v0.0.145

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 added in v0.0.145

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

ResolveSettings - Given defaults abd values return actural settings

type Setting added in v0.0.145

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