utils

package
v0.0.0-...-3e65a16 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDockerImagePath

func BuildDockerImagePath(dockerRepository string, imageVersion string) string

func FileHash

func FileHash(filePath string) (string, error)

func GetSSHPublicKey

func GetSSHPublicKey(filePath string) (pulumi.StringOutput, error)

func JSONMustMarshal

func JSONMustMarshal(v any) string

func KubeConfigYAMLToJSON

func KubeConfigYAMLToJSON(kubeConfig pulumi.StringOutput) pulumi.StringInput

KubeConfigYAMLToJSON safely converts a yaml kubeconfig to a json string.

func MergeOptions

func MergeOptions[T any](current []T, opts ...T) []T

func MergeYAML

func MergeYAML(oldValuesYamlContent string, newValuesYamlContent string) (string, error)

func ParseImageReference

func ParseImageReference(imageRef string) (imagePath string, tag string)

func Pointer

func Pointer[T any](value T) *T

func PulumiDependsOn

func PulumiDependsOn(resources ...pulumi.Resource) pulumi.ResourceOption

func ReadSecretFile

func ReadSecretFile(filePath string) (pulumi.StringOutput, error)

func StrHash

func StrHash(all ...string) string

func StringPtr

func StringPtr(s string) pulumi.StringPtrInput

Types

type RandomGenerator

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

func NewRandomGenerator

func NewRandomGenerator(e config.CommonEnvironment, name string, options ...func(*RandomGenerator)) *RandomGenerator

func (*RandomGenerator) RandomString

func (r *RandomGenerator) RandomString(name string, length int, special bool) (*random.RandomString, error)

Jump to

Keyboard shortcuts

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