stack

package
v0.0.0-...-7bbb3e1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseDir = "."

Functions

func Decrypt

func Decrypt(value string) (string, error)

func Encrypt

func Encrypt(value string) (string, error)

func FindStacks

func FindStacks(dir string) ([]string, error)

func InitCrypter

func InitCrypter(ctx *pulumi.Context) error

func InitCrypterForProject

func InitCrypterForProject(name string) error

func InitCrypterWithSaltAndPassphrase

func InitCrypterWithSaltAndPassphrase(salt, passphrase string) error

func IsPulumiProject

func IsPulumiProject() bool

func ProjectName

func ProjectName() (string, error)

func SetStack

func SetStack(newStack string) error

func StackName

func StackName() (string, error)

func WriteStackYaml

func WriteStackYaml(name string, stack *PulumiStackYaml) error

Types

type PulumiStackYaml

type PulumiStackYaml struct {
	Encryptionsalt string            `yaml:"encryptionsalt"`
	Config         map[string]string `yaml:"config"`
}

func ReadStackYaml

func ReadStackYaml(name string) (*PulumiStackYaml, error)

type PulumiYaml

type PulumiYaml struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	Runtime     string `yaml:"runtime"`
}

func Project

func Project() (*PulumiYaml, error)

type Stack

type Stack struct {
	Name          string
	File          string
	Project       *PulumiYaml
	Configuration *PulumiStackYaml
}

func List

func List() ([]Stack, error)

func ReadStack

func ReadStack(name string) (*Stack, error)

Jump to

Keyboard shortcuts

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