toolz

package
v0.0.0-...-d772457 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTypeReplace

func NewTypeReplace(table, column, fullType string) boilingcore.TypeReplace

NewTypeReplace generates a new TypeReplace.

func RevertHasuraMigrations

func RevertHasuraMigrations(pgURL string, embedFS embed.FS, rootDirPath string)

RevertHasuraMigrations reverts the Hasura migrations to the given database URL. Note that this is a partial implementation for testing purposes: - It does not check against nor update the "hdb_catalog.hdb_version" table. - It blindly reverts all the migrations in a single transaction.

Types

type Operations

type Operations interface {
	GenerateTimestampAndCommitVersion() string
	CFCreateStack(name string, templateBody string, tagsMap map[string]string) *awscft.Stack
	CFDescribeStack(name string) *awscft.Stack
	CFUpdateStack(name string, templateBody string, tagsMap map[string]string) *awscft.Stack
	CFUpsertStack(name string, templateBody string, tagsMap map[string]string) *awscft.Stack
	DockerLogin()
	DockerPush(imageAndTag string)
	GoCrossBuildForLinuxAMD64(workDirPath, packageName, binFilePath string, injectValues map[string]string)
	GoPackageFunction(handlerFilePath, functionHandlerFileName, packageFilePath string)
	KMSDecrypt(keyAlias string, ciphertext []byte) []byte
	KMSEncrypt(keyAlias string, plaintext []byte) []byte
	S3UploadFile(bucketName, key, contentType string, body []byte)
}

Operations provides a collection of utilities for performing operations.

func NewOperations

func NewOperations(awsCfg *aws.Config) Operations

NewOperations initializes a new Operations.

type Secrets

type Secrets interface {
	Load() interface{}
	EditPrompt()
}

Secrets describes a set of encrypted secrets.

func NewSecrets

func NewSecrets(contextName, filePath string, ops Operations, defaultValues interface{}) Secrets

NewSecrets initializes a new Secrets.

Jump to

Keyboard shortcuts

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