db

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*gorm.DB, error)

Types

type Credentials

type Credentials interface {
	GetDBName() string
	GetHost() string
	GetUsername() string
	GetPassword() string
	GetPort() string
}

func CredentialsFromJSON

func CredentialsFromJSON(body string) (creds Credentials, err error)

func LoadServiceCredentials

func LoadServiceCredentials(serviceName string) (creds Credentials, err error)

type Service

type Service struct {
	Name        string
	Plan        string
	Label       string
	Credentials credentialsJSON
}

type Services

type Services map[string][]Service

Jump to

Keyboard shortcuts

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