Documentation ¶
Overview ¶
Package langpuppet implements an integration entrypoint that combines lang and Puppet.
Index ¶
Constants ¶
View Source
const ( // MergePrefixLang is how a mergeable vertex name starts in mcl code. MergePrefixLang = "puppet_" // MergePrefixPuppet is how a mergeable Puppet class name starts. MergePrefixPuppet = "mgmt_" )
View Source
const (
// Name is the name of this frontend.
Name = "langpuppet"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GAPI ¶
type GAPI struct {
// contains filtered or unexported fields
}
GAPI implements the main langpuppet GAPI interface. It wraps the Puppet and Lang GAPIs and receives graphs from both. It then runs a merging algorithm that mainly just makes a union of both the sets of vertices and edges. Some vertices are merged using a naming convention. Details can be found in the langpuppet.mergeGraphs function.
func (*GAPI) Cli ¶
Cli takes an *Info struct, and returns our deploy if activated, and if there are any validation problems, you should return an error. If there is no deploy, then you should return a nil deploy and a nil error.
Click to show internal directories.
Click to hide internal directories.