local

package
v0.0.0-...-f22496c Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TypeName = "go2chef.config_source.local"

TypeName is the name of this configuration source

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigSource

type ConfigSource struct {
	Path string
}

ConfigSource loads configuration data from JSON files on the local filesystem

func (*ConfigSource) InitFlags

func (c *ConfigSource) InitFlags(set *pflag.FlagSet)

InitFlags sets the command-line flags for local configuration sources

func (*ConfigSource) ReadConfig

func (c *ConfigSource) ReadConfig() (map[string]interface{}, error)

ReadConfig loads the configuration file from disk

Jump to

Keyboard shortcuts

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