config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package config reads/writes the wbctl config file as a generic document, independent of viper. It is used by the profile subcommands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDocument

func ReadDocument(
	fsys afero.Fs,
	configPath string,
) (map[string]any, error)

ReadDocument reads the document at the given path into a generic map. A missing file is treated as an empty document so callers can bootstrap a new config file.

func WriteDocument

func WriteDocument(
	fsys afero.Fs,
	configPath string,
	doc map[string]any,
) error

WriteDocument marshals doc as the given format and writes it to configPath, creating the parent directory if needed. The directory and file are written with restrictive permissions since the document may contain credentials.

Types

This section is empty.

Jump to

Keyboard shortcuts

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