midtypes

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConnectionUser           = "root"
	DefaultConnectionPort           = 22
	DefaultConnectionPerDialTimeout = 15
)

Variables

This section is empty.

Functions

func DiffTriggers

func DiffTriggers(olds any, news any) p.DiffResponse

DiffTriggers extracts the `Triggers` field from two structs and performs a diff on them, returning a DiffResponse with Update and/or UpdateReplace PropertyDiffs as needed.

Types

type Connection

type Connection struct {
	ConnectionBase
}

func GetConnection

func GetConnection(ctx context.Context, connection *Connection) Connection

func (*Connection) Annotate

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

type ConnectionBase

type ConnectionBase struct {
	User               *string  `pulumi:"user,optional"`
	Password           *string  `pulumi:"password,optional" provider:"secret"`
	Host               *string  `pulumi:"host,optional"`
	Port               *float64 `pulumi:"port,optional"`
	PrivateKey         *string  `pulumi:"privateKey,optional" provider:"secret"`
	PrivateKeyPassword *string  `pulumi:"privateKeyPassword,optional" provider:"secret"`
	SSHAgent           *bool    `pulumi:"sshAgent,optional"`
	SSHAgentSocketPath *string  `pulumi:"sshAgentSocketPath,optional"`
	PerDialTimeout     *int     `pulumi:"perDialTimeout,optional"`
	HostKey            *string  `pulumi:"hostKey,optional"`
}

type Empty

type Empty struct{}

type ExecCommand

type ExecCommand struct {
	Command     []string           `pulumi:"command"`
	Environment *map[string]string `pulumi:"environment,optional"`
	Dir         *string            `pulumi:"dir,optional"`
	Stdin       *string            `pulumi:"stdin,optional"`
}

func (*ExecCommand) Annotate

func (i *ExecCommand) Annotate(a infer.Annotator)

type ExecLogging

type ExecLogging string
const (
	ExecLoggingStdout          ExecLogging = "stdout"
	ExecLoggingStderr          ExecLogging = "stderr"
	ExecLoggingStdoutAndStderr ExecLogging = "stdoutAndStderr"
	ExecLoggingNone            ExecLogging = "none"
)

type FileStatFileMode

type FileStatFileMode struct {
	IsDir     bool   `pulumi:"isDir"`
	IsRegular bool   `pulumi:"isRegular"`
	Int       int    `pulumi:"int"`
	Octal     string `pulumi:"octal"`
	String    string `pulumi:"string"`
}

type FileStatState

type FileStatState struct {
	Exists         bool              `pulumi:"exists"`
	BaseName       *string           `pulumi:"baseName,optional"`
	Size           *int64            `pulumi:"size,optional"`
	FileMode       *FileStatFileMode `pulumi:"fileMode,optional"`
	ModifiedTime   *string           `pulumi:"modifiedTime,optional"`
	AccessTime     *string           `pulumi:"accessTime,optional"`
	CreateTime     *string           `pulumi:"createTime,optional"`
	Dev            *int              `pulumi:"dev,optional"`
	Gid            *int              `pulumi:"gid,optional"`
	GroupName      *string           `pulumi:"groupName,optional"`
	Inode          *int              `pulumi:"inode,optional"`
	Nlink          *int              `pulumi:"nlink,optional"`
	Uid            *int              `pulumi:"uid,optional"`
	UserName       *string           `pulumi:"userName,optional"`
	SHA256Checksum *string           `pulumi:"sha256Checksum,optional"`
}

func FileStatStateFromRPCResult

func FileStatStateFromRPCResult(result rpc.FileStatResult) FileStatState

type ProviderConfig

type ProviderConfig struct {
	ResourceConfig
	// remote endpoint connection configuration
	Connection *Connection `pulumi:"connection,optional" provider:"secret"`
}

provider configuration

type ProxyConnection

type ProxyConnection struct {
	ConnectionBase
}

type ResourceConfig

type ResourceConfig struct {
	// The value passed into the provider config for `deleteUnreachable`. It is
	// generally a better idea to use `GetDeleteUnreachable()` instead of looking
	// at this property directly.
	DeleteUnreachable *bool `pulumi:"deleteUnreachable,optional"`

	// Parallel sets the maximum number of parallel tasks to execute against the
	// remote system. If not set or set to `0`, it will use the remote host's
	// number of CPU cores. If set to `-1` it will be unlimited.
	Parallel *int `pulumi:"parallel,optional"`

	// DryRunCheck enables extra checks and dry-runs during preview. This is
	// enabled by default. Disabling it will speed up preview at the cost of
	// potentially running into unexpected errors during apply.
	DryRunCheck *bool `pulumi:"check,optional"`
}

func GetResourceConfig

func GetResourceConfig(ctx context.Context, config *ResourceConfig) ResourceConfig

func (ResourceConfig) GetDeleteUnreachable

func (config ResourceConfig) GetDeleteUnreachable() bool

GetDeleteUnreachable determines if the environment should delete unreachable resources or not.

func (ResourceConfig) GetDryRunCheck added in v0.0.12

func (config ResourceConfig) GetDryRunCheck() bool

func (ResourceConfig) GetParallel

func (config ResourceConfig) GetParallel() int

type TriggersInput

type TriggersInput struct {
	Refresh *[]any `pulumi:"refresh,optional"`
	Replace *[]any `pulumi:"replace,optional" provider:"replaceOnChanges"`
}

func (*TriggersInput) Annotate

func (i *TriggersInput) Annotate(a infer.Annotator)

type TriggersOutput

type TriggersOutput struct {
	Refresh     *[]any `pulumi:"refresh,optional"`
	Replace     *[]any `pulumi:"replace,optional"`
	LastChanged string `pulumi:"lastChanged"`
}

func UpdateTriggerState

func UpdateTriggerState(outs TriggersOutput, ins *TriggersInput, changed bool) TriggersOutput

UpdateTriggerState copies the replace and refresh triggers from `ins` to `outs` and updates `LastChanged` if `changed` is true.

func (*TriggersOutput) Annotate

func (i *TriggersOutput) Annotate(a infer.Annotator)

Jump to

Keyboard shortcuts

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