program

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoStateFile = errors.New("no state file")

ErrNoStateFile is returned when the state file is not found.

Functions

func PulumiRun added in v0.1.0

func PulumiRun[rArgs resourceArgs, pRes resources](
	ctx *Context,
	res func(*pulumi.Context, string, rArgs, ...pulumi.ResourceOption) (pRes, error),
	id string,
	args rArgs,
	additionalOptions ...pulumi.ResourceOption,
) (pRes, error)

PulumiRun is a wrapper for all pulumi resources in the program. Additional pulumi options will be added to the global option array.

Types

type Context

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

func NewContext

func NewContext(ctx *pulumi.Context, name string, opts ...pulumi.ResourceOption) (*Context, error)

func (*Context) ClusterName added in v0.1.0

func (c *Context) ClusterName() string

func (*Context) Context

func (c *Context) Context() *pulumi.Context

func (*Context) DumpStateToFile

func (c *Context) DumpStateToFile(deps []pulumi.Resource) error

func (*Context) FullName added in v0.1.0

func (c *Context) FullName() string

func (*Context) Options

func (c *Context) Options() []pulumi.ResourceOption

func (*Context) State

func (c *Context) State() *State

func (*Context) StatePath added in v0.1.0

func (c *Context) StatePath() string

type State

type State struct {
	IPAM *ipam.Data `yaml:",omitempty"`
}

Jump to

Keyboard shortcuts

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