toml

package
v0.0.0-...-4c51b1d Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModifyConfigFile

func ModifyConfigFile(
	ctx context.Context,
	logger *zap.Logger,
	dockerClient *client.Client,
	testName string,
	volumeName string,
	filePath string,
	modifications Toml,
) error

ModifyConfigFile reads, modifies, then overwrites a toml config file, useful for config.toml, app.toml, etc.

func RecursiveModify

func RecursiveModify(c map[string]any, modifications Toml) error

RecursiveModify will apply toml modifications at the current depth, then recurse for new depths.

Types

type Toml

type Toml map[string]any

Toml is used for holding the decoded state of a toml config file.

Jump to

Keyboard shortcuts

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