embed

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: 2 Imported by: 0

Documentation

Overview

Package embed is a configuration source that can be fully compiled-in

Index

Constants

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

TypeName is the name of this config source

Variables

View Source
var EmbeddedConfig = make(map[string]interface{})

EmbeddedConfig exposes the means for storing the embedded configuration. If you want to embed configuration in some other format you can set this variable in an init() function in your own package to parse/store it.

Functions

This section is empty.

Types

type ConfigSource

type ConfigSource struct{}

ConfigSource is the embedded configuration source implementation

func (*ConfigSource) InitFlags

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

InitFlags initializes flags for this config source (none)

func (*ConfigSource) ReadConfig

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

ReadConfig reads the configuration source

Jump to

Keyboard shortcuts

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