sideeffects

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package sideeffects implements the validation of side effects configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupTempFiles

func CleanupTempFiles(c *side_effects.Config) error

CleanupTempFiles deletes all temp files used in side_effects.Config.

func PopulateTKOPasswordFile

func PopulateTKOPasswordFile(ctx context.Context, ckc cloudkms.Client, c *side_effects.Config) error

PopulateTKOPasswordFile decrypts the encrypted MySQL password, writes it to a temp file and updates the corresponding config field.

func ValidateConfig

func ValidateConfig(c *side_effects.Config) error

ValidateConfig checks the presence of all required fields in side_effects.Config and the existence of all required files.

func WriteConfigToDisk

func WriteConfigToDisk(dir string, c *side_effects.Config) error

WriteConfigToDisk writes a JSON encoded side_effects.Config proto to <dir>/side_effects_config.json.

Types

This section is empty.

Jump to

Keyboard shortcuts

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