config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ConfigurationFileExists

func ConfigurationFileExists() bool

func GetConfigurationFilePath

func GetConfigurationFilePath() (string, error)

func GetInstance

func GetInstance() *viper.Viper

func GetInventoryFilePath

func GetInventoryFilePath() (string, error)

func Initialize

func Initialize() error

func InventoryFileExists

func InventoryFileExists() bool

func IsConfigured

func IsConfigured() bool

func Parse

func Parse() error

func Setup

func Setup() error

Types

type Config

type Config struct {
	InventoryPath string `mapstructure:"inventory_file"`
}
var (
	Params Config
)

type ConfigFile

type ConfigFile struct {
	InventoryFilePath string `yaml:"inventory_file"`
}

Jump to

Keyboard shortcuts

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