hcl

package
v0.0.0-...-f33f84d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the name of this frontend.
	Name = "hcl"
	// Start is the entry point filename that we use. It is arbitrary.
	Start = "/start.hcl"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Resources []*Resource
	Edges     []*Edge
	Collector []collectorResConfig
}

Config defines the structure of the hcl config.

type Edge

type Edge struct {
	Name   string
	From   vertex
	To     vertex
	Notify bool
}

Edge defines an edge in hcl.

type GAPI

type GAPI struct {
	InputURI string
	// contains filtered or unexported fields
}

GAPI ...

func (*GAPI) Cli

func (obj *GAPI) Cli(c *cli.Context, fs resources.Fs) (*gapi.Deploy, error)

Cli takes a cli.Context, and returns our GAPI if activated. All arguments should take the prefix of the registered name. On activation, if there are any validation problems, you should return an error. If this was not activated, then you should return a nil GAPI and a nil error.

func (*GAPI) CliFlags

func (obj *GAPI) CliFlags() []cli.Flag

CliFlags returns a list of flags used by this deploy subcommand.

func (*GAPI) Close

func (obj *GAPI) Close() error

Close ...

func (*GAPI) Graph

func (obj *GAPI) Graph() (*pgraph.Graph, error)

Graph ...

func (*GAPI) Init

func (obj *GAPI) Init(d gapi.Data) error

Init ...

func (*GAPI) Next

func (obj *GAPI) Next() chan gapi.Next

Next ...

type Resource

type Resource struct {
	Name string
	Kind string

	Meta resources.MetaParams
	// contains filtered or unexported fields
}

Resource ...

type Resources

type Resources struct {
	Resources []resources.Res
}

Resources define the state for resources.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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