config

package
v0.0.0-...-2c6f1e0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: UPL-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultConfig

func GetDefaultConfig() (*types.Config, error)

GetDefaultConfig returns the global default config. It starts with a hard-coded set of defaults. It then attempts to read a global overrides file. If such a file is found, the entries in that file are merged into the hard-coded defaults.

func ParseClusterConfig

func ParseClusterConfig(in string) (*types.ClusterConfig, error)

ParseClusterConfig taks a yaml-encoded string and parses it into a ClusterConfig structure.

func ParseClusterConfigFile

func ParseClusterConfigFile(configPath string) (*types.ClusterConfig, error)

ParseClusterConfigFile takes the path to a file, reads the contents, and parses it into a ClusterConfig structure.

func ParseConfig

func ParseConfig(in string) (*types.Config, error)

ParseConfig takes a yaml-encoded string and parses it into a Config structure.

func ParseConfigFile

func ParseConfigFile(configPath string) (*types.Config, error)

ParseConfigFile takes the path to a file, reads the contents, and parses it into a Config structure.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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