local

package
v0.0.0-...-d95a06e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseInputs

type BaseInputs struct {
	common.CommonInputs
	Interpreter            *[]string          `pulumi:"interpreter,optional"`
	Dir                    *string            `pulumi:"dir,optional"`
	Environment            *map[string]string `pulumi:"environment,optional"`
	AssetPaths             *[]string          `pulumi:"assetPaths,optional"`
	ArchivePaths           *[]string          `pulumi:"archivePaths,optional"`
	AddPreviousOutputInEnv *bool              `pulumi:"addPreviousOutputInEnv,optional"`
}

BaseInputs is the common set of inputs for all local commands.

func (*BaseInputs) Annotate

func (c *BaseInputs) Annotate(a infer.Annotator)

Implementing Annotate lets you provide descriptions and default values for fields and they will be visible in the provider's schema and the generated SDKs.

type BaseOutputs

type BaseOutputs struct {
	Stdout  string                      `pulumi:"stdout"`
	Stderr  string                      `pulumi:"stderr"`
	Assets  *map[string]*resource.Asset `pulumi:"assets,optional"`
	Archive *resource.Archive           `pulumi:"archive,optional"`
}

func (*BaseOutputs) Annotate

func (c *BaseOutputs) Annotate(a infer.Annotator)

Implementing Annotate lets you provide descriptions and default values for fields and they will be visible in the provider's schema and the generated SDKs.

type Command

type Command struct{}

This is the type that implements the Command resource methods. The methods are declared in the commandController.go file.

func (*Command) Annotate

func (c *Command) Annotate(a infer.Annotator)

Implementing Annotate lets you provide descriptions and default values for resources and they will be visible in the provider's schema and the generated SDKs.

func (*Command) Create

func (c *Command) Create(ctx p.Context, name string, input CommandInputs, preview bool) (string, CommandOutputs, error)

This is the Create method. This will be run on every Command resource creation.

func (*Command) Delete

func (c *Command) Delete(ctx p.Context, id string, props CommandOutputs) error

The Delete method will run when the resource is deleted.

func (*Command) Update

func (c *Command) Update(ctx p.Context, id string, olds CommandOutputs, news CommandInputs, preview bool) (CommandOutputs, error)

The Update method will be run on every update.

type CommandInputs

type CommandInputs struct {
	common.ResourceInputs
	BaseInputs
}

These are the inputs (or arguments) to a Command resource.

type CommandOutputs

type CommandOutputs struct {
	CommandInputs
	BaseOutputs
}

These are the outputs (or properties) of a Command resource.

type Run

type Run struct{}

This is the type that implements the Run function methods. The methods are declared in the runController.go file.

func (*Run) Annotate

func (r *Run) Annotate(a infer.Annotator)

Implementing Annotate lets you provide descriptions and default values for functions and they will be visible in the provider's schema and the generated SDKs.

func (*Run) Call

func (*Run) Call(ctx p.Context, input RunInputs) (RunOutputs, error)

This is the Call method. It takes a RunInputs parameter and runs the command specified in it.

type RunInputs

type RunInputs struct {
	BaseInputs
	Command string `pulumi:"command"`
}

func (*RunInputs) Annotate

func (r *RunInputs) Annotate(a infer.Annotator)

Implementing Annotate lets you provide descriptions and default values for fields and they will be visible in the provider's schema and the generated SDKs.

type RunOutputs

type RunOutputs struct {
	RunInputs
	BaseOutputs
}

Jump to

Keyboard shortcuts

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