config

package
v4.0.0-...-b90d246 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2015 License: AGPL-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
	IdentityPublicKey string `yaml:"identity-public-key"`
	IdentityLocation  string `yaml:"identity-location"`
	// The identity API is optional
	IdentityAPIURL      string `yaml:"identity-api-url"`
	IdentityAPIUsername string `yaml:"identity-api-username"`
	IdentityAPIPassword string `yaml:"identity-api-password"`
}

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