Documentation ¶
Index ¶
- type BaseInputs
- type BaseOutputs
- type Command
- func (c *Command) Annotate(a infer.Annotator)
- func (c *Command) Create(ctx p.Context, name string, input CommandInputs, preview bool) (string, CommandOutputs, error)
- func (c *Command) Delete(ctx p.Context, id string, props CommandOutputs) error
- func (c *Command) Update(ctx p.Context, id string, olds CommandOutputs, news CommandInputs, ...) (CommandOutputs, error)
- type CommandInputs
- type CommandOutputs
- type Run
- type RunInputs
- type RunOutputs
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 ¶
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) 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.
type RunInputs ¶
type RunInputs struct { BaseInputs Command string `pulumi:"command"` }
type RunOutputs ¶
type RunOutputs struct { RunInputs BaseOutputs }