puppet

package
v0.0.0-...-c12452b Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 16 Imported by: 14

Documentation

Overview

Package puppet provides the integration entrypoint for the puppet language.

Index

Constants

View Source
const (
	// Name is the name of this frontend.
	Name = "puppet"

	// PuppetFile is the entry point filename that we use. It is arbitrary.
	PuppetFile = "/file.pp"

	// PuppetConf is the entry point config filename that we use.
	PuppetConf = "/puppet.conf"

	// PuppetSite is the entry point folder that we use. It is arbitrary.
	PuppetSite = "/puppet/"
)
View Source
const (
	// PuppetYAMLBufferSize is the maximum buffer size for the yaml input data
	PuppetYAMLBufferSize = 65535
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GAPI

type GAPI struct {
	InputURI string

	// Mode of operation can be: agent, file, string, dir.
	Mode string
	// contains filtered or unexported fields
}

GAPI implements the main puppet GAPI interface.

func (*GAPI) Cli

func (obj *GAPI) Cli(info *gapi.Info) (*gapi.Deploy, error)

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.

func (*GAPI) Close

func (obj *GAPI) Close() error

Close shuts down the Puppet GAPI.

func (*GAPI) Graph

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

Graph returns a current Graph.

func (*GAPI) Init

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

Init initializes the puppet GAPI struct.

func (*GAPI) Next

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

Next returns nil errors every time there could be a new graph.

func (*GAPI) ParseConfigFromPuppet

func (obj *GAPI) ParseConfigFromPuppet() (*yamlgraph.GraphConfig, error)

ParseConfigFromPuppet returns the graph configuration structure from the mode and input values, including possibly some file and directory paths.

Directories

Path Synopsis
Package langpuppet implements an integration entrypoint that combines lang and Puppet.
Package langpuppet implements an integration entrypoint that combines lang and Puppet.

Jump to

Keyboard shortcuts

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