pterraform

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package pterraform provides a harness that runs arbitrary terraform on a given path. Subsequent steps are run against arbitrary infrastructure created by the terraform run configured via the terraform output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(source fs.FS, opts ...Option) (*pterraform, error)

Types

type Connection

type Connection struct {
	Kubernetes *KubernetesConnection `json:"kubernetes"`
	Docker     *DockerConnection     `json:"docker"`
	// Retry is the retry configuration for the connection
	Retry *ConnectionRetry `json:"retry"`
	// contains filtered or unexported fields
}

type ConnectionRetry

type ConnectionRetry struct {
	Attempts int     `json:"attempts"`
	Delay    string  `json:"delay"`
	Factor   float64 `json:"factor"`
}

type DockerConnection

type DockerConnection struct {
	Cid            string `json:"cid"`
	Host           string `json:"host"`
	PrivateKeyPath string `json:"private_key_path"`
}

type KubernetesConnection

type KubernetesConnection struct {
	Kubeconfig     string `json:"kubeconfig"`
	KubeconfigPath string `json:"kubeconfig_path"`
	SandboxImage   string `json:"sandbox_image"`
}

type Option

type Option func(*pterraform) error

func WithVars

func WithVars(vars json.RawMessage) Option

func WithWorkspace

func WithWorkspace(workspace string) Option

WithWorkspace sets the path to the terraform workspace to use.

Jump to

Keyboard shortcuts

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