config

package
v0.0.0-...-f38afdf Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string
	Password string
}

type Config

type Config struct {
	Plans         []Plan
	ServiceBroker ServiceBroker
}

func LoadFromFile

func LoadFromFile(path string) (Config, error)

func (Config) PlanByName

func (c Config) PlanByName(name string) (Plan, error)

type Plan

type Plan struct {
	Name        string
	Schedule    string
	Description string
	Probability float64
}

type ServiceBroker

type ServiceBroker struct {
	ServiceID   string
	Name        string
	Description string
	Auth        Auth
}

Jump to

Keyboard shortcuts

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