configstore

package
v0.0.0-...-afffe8a Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SpecStore is the prefix for the spec defaults keys
	SpecStore = "spec"
	// OpinionsStore is the prefix for the opinions defaults keys
	OpinionsStore = "opinions"

	// DescriptionsStore is the prefix for the description keys
	DescriptionsStore = "descriptions"

	// JSONProvider is the name of the JSON output provider; outputs one file per job
	JSONProvider = "json"
)
View Source
const (
	// JobConfigFileExtension is the file extension for json configurations
	JobConfigFileExtension = ".json"
)

Variables

This section is empty.

Functions

func BoshKeyToConsulPath

func BoshKeyToConsulPath(key, store string) (string, error)

BoshKeyToConsulPath maps dotted names to slash-delimited names

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder creates a base configuration to be fed into Consul or something similar

func NewConfigStoreBuilder

func NewConfigStoreBuilder(provider, lightOpinionsPath, darkOpinionsPath, targetLocation string) *Builder

NewConfigStoreBuilder creates a new configstore.Builder

func (*Builder) WriteBaseConfig

func (c *Builder) WriteBaseConfig(roleManifest *model.RoleManifest) error

WriteBaseConfig generates the configuration base from a role manifest

Jump to

Keyboard shortcuts

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