types

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffAttribute added in v0.0.3

func DiffAttribute(o any, n any) *p.PropertyDiff

DiffAttribute performs deep equality on two values and returns an Update PropertyDiff if they are different, but nil if they are equal.

func DiffAttributes added in v0.0.3

func DiffAttributes(olds any, news any, attributes []string) p.DiffResponse

DiffAttributes performs deep equality on two structs only for the attributes provided and returns a DiffResponse

func DiffTriggers added in v0.0.3

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.

func MergeDiffResponses added in v0.0.3

func MergeDiffResponses(drs ...p.DiffResponse) p.DiffResponse

MergeDiffResponses will merge an arbitrary number of DiffResponses together with the last taking the highest precedence. Any DiffResponse that has `HasChanges` or `DeleteBeforeReplace` set will result in the returned DiffResponse to have those set as well.

Types

type Config

type Config struct {
	// remote endpoint connection configuration
	Connection *Connection `pulumi:"connection" provider:"secret"`

	// 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"`
}

provider configuration

func (*Config) Annotate added in v0.0.7

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

func (Config) GetDeleteUnreachable added in v0.0.5

func (config Config) GetDeleteUnreachable() bool

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

type Connection

type Connection struct {
	ConnectionBase
}

func (*Connection) Annotate added in v0.0.7

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"`
	Port       *float64 `pulumi:"port,optional"`
	PrivateKey *string  `pulumi:"privateKey,optional" provider:"secret"`
}

type ExecCommand added in v0.0.3

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 added in v0.0.7

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

type ExecLogging added in v0.0.3

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

type FileStatFileMode added in v0.0.8

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 added in v0.0.8

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 added in v0.0.8

func FileStatStateFromRPCResult(result rpc.FileStatResult) FileStatState

type ProxyConnection

type ProxyConnection struct {
	ConnectionBase
}

type TriggersInput

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

func (*TriggersInput) Annotate added in v0.0.7

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 added in v0.0.3

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 added in v0.0.7

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