config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2014 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

The config package defines configuration parameters for the charm store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// TODO(rog) rename this to MongoAddr - it's not a URL.
	MongoURL     string `yaml:"mongo-url"`
	APIAddr      string `yaml:"api-addr"`
	AuthUsername string `yaml:"auth-username"`
	AuthPassword string `yaml:"auth-password"`
	ESAddr       string `yaml:"elasticsearch-addr"` // elasticsearch is optional
}

func Read

func Read(path string) (*Config, error)

Read reads a charm store configuration file from the given path.

Jump to

Keyboard shortcuts

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