utils

package
v0.0.0-...-2f6d3cb Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: BSL-1.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrJsonEmpty = errors.New("json is empty")

Functions

func ExtractConfig

func ExtractConfig(ctx *pulumi.Context, namespace string, obj interface{}) error

ExtractConfig extracts the pulumi config and populates the object. It requires tags to be set on the struct fields, e.g.: json/config - the name of the config key secret - the name of the secret config key required - whether the config is required The tags are used to map the config to the struct fields.

func MarshalJSONConfig

func MarshalJSONConfig(obj interface{}) ([]byte, error)

func NewRandomPassword

func NewRandomPassword(ctx *pulumi.Context, name string, len int, opts ...pulumi.ResourceOption) (pulumi.StringOutput, error)

func UnmarshalJSONConfig

func UnmarshalJSONConfig(data []byte, obj interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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