remote

package
v0.0.0-...-845999f Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseOutputs

type BaseOutputs struct {
	Stdout string `pulumi:"stdout"`
	Stderr string `pulumi:"stderr"`
}

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{}

func (*Command) Annotate

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

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

func (*Command) Create

func (*Command) Create(ctx context.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 (*Command) Delete(ctx context.Context, id string, props CommandOutputs) error

The Delete method will run when the resource is deleted.

func (*Command) Update

func (*Command) Update(ctx context.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
	// the pulumi-go-provider library uses field tags to dictate behavior.
	// pulumi:"connection" specifies the name of the field in the schema
	// pulumi:"optional" specifies that a field is optional. This must be a pointer.
	// provider:"replaceOnChanges" specifies that the resource will be replaced if the field changes.
	// provider:"secret" specifies that a field should be marked secret.
	Stdin                  *string           `pulumi:"stdin,optional"`
	Logging                *Logging          `pulumi:"logging,optional"`
	Connection             *Connection       `pulumi:"connection" provider:"secret"`
	Environment            map[string]string `pulumi:"environment,optional"`
	AddPreviousOutputInEnv *bool             `pulumi:"addPreviousOutputInEnv,optional"`
}

The arguments for a remote Command resource.

func (*CommandInputs) Annotate

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

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

type CommandOutputs

type CommandOutputs struct {
	CommandInputs
	BaseOutputs
}

The properties for a remote Command resource.

type Connection

type Connection struct {
	Proxy *ProxyConnection `pulumi:"proxy,optional"`
	// contains filtered or unexported fields
}

func (*Connection) Annotate

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

func (*Connection) Dial

func (con *Connection) Dial(ctx context.Context) (*ssh.Client, error)

Dial a ssh client connection from a ssh client configuration, retrying as necessary.

func (*Connection) SShConfig

func (con *Connection) SShConfig() (*ssh.ClientConfig, error)

type CopyFile

type CopyFile struct{}

func (*CopyFile) Annotate

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

CopyFile implements Annotate which allows you to attach descriptions to the CopyFile resource.

func (*CopyFile) Create

func (*CopyFile) Create(ctx context.Context, name string, input CopyFileInputs, preview bool) (string, CopyFileOutputs, error)

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

type CopyFileInputs

type CopyFileInputs struct {
	Connection *Connection    `pulumi:"connection" provider:"secret"`
	Triggers   *[]interface{} `pulumi:"triggers,optional" providers:"replaceOnDelete"`
	LocalPath  string         `pulumi:"localPath"`
	RemotePath string         `pulumi:"remotePath"`
}

func (*CopyFileInputs) Annotate

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

CopyFile implements Annotate which allows you to attach descriptions to the CopyFile resource's fields.

type CopyFileOutputs

type CopyFileOutputs struct {
	CopyFileInputs
}

type CopyToRemote

type CopyToRemote struct{}

func (*CopyToRemote) Annotate

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

Copy implements Annotate which allows you to attach descriptions to the Copy resource.

func (*CopyToRemote) Check

func (c *CopyToRemote) Check(ctx context.Context, urn string, oldInputs, newInputs resource.PropertyMap) (CopyToRemoteInputs, []p.CheckFailure, error)

func (*CopyToRemote) Create

func (*CopyToRemote) Create(ctx context.Context, name string, input CopyToRemoteInputs, preview bool) (string, CopyToRemoteOutputs, error)

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

func (*CopyToRemote) Update

type CopyToRemoteInputs

type CopyToRemoteInputs struct {
	Connection *Connection          `pulumi:"connection" provider:"secret"`
	Triggers   *[]interface{}       `pulumi:"triggers,optional" provider:"replaceOnChanges"`
	Source     types.AssetOrArchive `pulumi:"source"`
	RemotePath string               `pulumi:"remotePath"`
}

func (*CopyToRemoteInputs) Annotate

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

type CopyToRemoteOutputs

type CopyToRemoteOutputs struct {
	CopyToRemoteInputs
}

type Logging

type Logging string
const (
	LogStdout          Logging = "stdout"
	LogStderr          Logging = "stderr"
	LogStdoutAndStderr Logging = "stdoutAndStderr"
	NoLogging          Logging = "none"
)

func (*Logging) ShouldLogStderr

func (l *Logging) ShouldLogStderr() bool

func (*Logging) ShouldLogStdout

func (l *Logging) ShouldLogStdout() bool

func (Logging) Values

func (Logging) Values() []infer.EnumValue[Logging]

type ProxyConnection

type ProxyConnection struct {
	// contains filtered or unexported fields
}

func (*ProxyConnection) Annotate

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

func (*ProxyConnection) SShConfig

func (con *ProxyConnection) SShConfig() (*ssh.ClientConfig, error)

Jump to

Keyboard shortcuts

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