config

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_KEY = "default"

The top-level key in the JSON for the default (not client-specific answers)

View Source
const ENVIRONMENT_KEY = "environments"
View Source
const LATEST_KEY = "latest"
View Source
const METADATA_VERSION1 = "2015-07-25"
View Source
const METADATA_VERSION2 = "2015-12-19"
View Source
const METADATA_VERSION3 = "2016-07-29"
View Source
const VERSION_KEY = "version"

Variables

View Source
var MAGIC_ARRAY_KEYS = []string{"name", "uuid"}

Functions

This section is empty.

Types

type Answers

type Answers map[string]interface{}

type Credential

type Credential struct {
	URL         string
	PublicValue string
	SecretValue string
}

type Generator

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

func NewGenerator

func NewGenerator(local bool, answersFilePath string) *Generator

func (*Generator) GenerateAnswers

func (g *Generator) GenerateAnswers(data []map[string]interface{}) (Versions, []Credential, error)

func (*Generator) GenerateDelta

func (g *Generator) GenerateDelta(body io.Reader) ([]map[string]interface{}, string, error)

func (*Generator) LoadVersionsFromFile

func (g *Generator) LoadVersionsFromFile(ignoreIfMissing bool) (Versions, []Credential, error)

func (*Generator) SaveToFile

func (g *Generator) SaveToFile(t time.Time)

type Interim

type Interim struct {
	UUIDToService                   map[string]map[string]interface{}
	UUIDToContainer                 map[string]map[string]interface{}
	UUIDToStack                     map[string]map[string]interface{}
	UUIDToHost                      map[string]map[string]interface{}
	ServiceUUIDNameToContainersUUID map[string][]string
	StackUUIDToServicesUUID         map[string][]string
	ContainerUUIDToContainerLink    map[string]map[string]interface{}
	ServiceUUIDToServiceLink        map[string]map[string]interface{}
	Networks                        []interface{}
	Default                         map[string]interface{}
	Environment                     map[string]interface{}
	Credentials                     []Credential
}

type MetadataDecoder

type MetadataDecoder struct {
	sync.Mutex
	// contains filtered or unexported fields
}

type MetadataDelta

type MetadataDelta struct {
	Version string
	Data    []byte
	sync.Mutex
}

type Versions

type Versions map[string]Answers

func MergeVersions

func MergeVersions(local Versions, external []Versions, version string) Versions

func (*Versions) Matching

func (answers *Versions) Matching(version string, ip string, path []string) (interface{}, bool)

func (*Versions) Versions

func (answers *Versions) Versions() []string

Jump to

Keyboard shortcuts

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