echo

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParameterExecKey = "echo.exec"
)

Variables

View Source
var (
	// ParseComplete is a helper to indicate an empty parse completion.
	ParseComplete = []*proto.Parse_Response{{
		Type: &proto.Parse_Response_Complete{
			Complete: &proto.Parse_Complete{},
		},
	}}
	// ProvisionComplete is a helper to indicate an empty provision completion.
	ProvisionComplete = []*proto.Provision_Response{{
		Type: &proto.Provision_Response_Complete{
			Complete: &proto.Provision_Complete{},
		},
	}}

	ParameterSuccess = []*proto.ParameterSchema{
		{
			AllowOverrideSource: true,
			Name:                ParameterExecKey,
			Description:         "description 1",
			DefaultSource: &proto.ParameterSource{
				Scheme: proto.ParameterSource_DATA,
				Value:  formatExecValue(successKey, ""),
			},
			DefaultDestination: &proto.ParameterDestination{
				Scheme: proto.ParameterDestination_PROVISIONER_VARIABLE,
			},
		},
	}
)

Functions

func ParameterError added in v0.7.6

func ParameterError(s string) string

func ParameterSucceed added in v0.7.6

func ParameterSucceed() string

func Serve

func Serve(ctx context.Context, filesystem afero.Fs, options *provisionersdk.ServeOptions) error

Serve starts the echo provisioner.

func Tar

func Tar(responses *Responses) ([]byte, error)

Tar returns a tar archive of responses to provisioner operations.

Types

type Responses

type Responses struct {
	Parse           []*proto.Parse_Response
	Provision       []*proto.Provision_Response
	ProvisionDryRun []*proto.Provision_Response
}

Jump to

Keyboard shortcuts

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