remote

package
v0.0.0-...-da5e493 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSFTPClient

func NewSFTPClient(client *ssh.Client, sudo bool, sftpServerPath string) (*sftp.Client, error)

func NewSFTPServer

func NewSFTPServer(conn *ssh.Client, cmd string, opts ...sftp.ClientOption) (*sftp.Client, error)

Types

type BaseOutputs

type BaseOutputs struct {
	MD5Sum string `pulumi:"md5sum"`
}

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 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 (c *Connection) Dial(ctx p.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 File

type File struct{}

func (*File) Annotate

func (f *File) 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 (*File) Create

func (*File) Create(ctx p.Context, name string, input FileInputs, preview bool) (string, FileOutputs, error)

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

func (*File) Delete

func (*File) Delete(ctx p.Context, _ string, props FileOutputs) error

The Delete method will run when the resource is deleted.

func (*File) Read

func (*File) Read(ctx p.Context, id string, input FileInputs, output FileOutputs) (string, FileInputs, FileOutputs, error)

func (*File) Update

func (*File) Update(ctx p.Context, _ string, olds FileOutputs, news FileInputs, preview bool) (FileOutputs, error)

The Update method will be run on every update.

type FileInputs

type FileInputs struct {
	// 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:"secret" specifies that a field should be marked secret.
	Connection  *Connection `pulumi:"connection" provider:"secret"`
	Triggers    *[]any      `pulumi:"triggers,optional"`
	Path        *string     `pulumi:"path"`
	Content     *string     `pulumi:"content,optional"`
	UseSudo     *bool       `pulumi:"useSudo,optional" provider:"replace_on_change"`
	SFTPPath    *string     `pulumi:"sftpPath,optional"`
	Permissions *string     `pulumi:"permissions,optional"`
}

The arguments for a remote Command resource.

func (*FileInputs) Annotate

func (f *FileInputs) 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 FileOutputs

type FileOutputs struct {
	FileInputs
	BaseOutputs
}

The properties for a remote Command resource.

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