playbook

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CacheDirectoryEnv = "UNOBIN_CACHE_DIRECTORY"

Variables

This section is empty.

Functions

func ResolveAny added in v0.2.1

func ResolveAny(attributes map[string]interface{}, path string) (interface{}, error)

func ResolveBool

func ResolveBool(attributes map[string]interface{}, path string) (bool, error)

func ResolveMap

func ResolveMap(attributes map[string]interface{}, path string) (map[string]interface{}, error)

func ResolveString

func ResolveString(attributes map[string]interface{}, path string) (string, error)

Types

type Playbook

type Playbook struct {
	Name        string
	Description string
	Imports     map[string]string
	InputSchema map[string]interface{}
	Tasks       []*task.Task
	Context     *types.Context
	Succeeded   bool
	Outputs     map[string]interface{}
	Resources   []Resource
}

func NewPlaybook

func NewPlaybook(playbookPath, moduleSearchPath string) (*Playbook, error)

func (*Playbook) Apply added in v0.3.2

func (p *Playbook) Apply() []*types.Result

func (*Playbook) StartCLI

func (p *Playbook) StartCLI()

type PlaybookAttributes added in v0.2.0

type PlaybookAttributes struct {
	Name        string
	Description string
	Imports     map[string]string
	InputSchema map[string]interface{}
}

type Resource added in v0.3.1

type Resource struct {
	Path     string
	Info     os.FileInfo
	Contents []byte
}

Jump to

Keyboard shortcuts

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