dbengine

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupHTTPClient

func SetupHTTPClient(cert string) (*http.Client, error)

Types

type Credentials

type Credentials struct {
	Host                string `json:"host"`
	Port                string `json:"port"`
	Name                string `json:"name"`
	Username            string `json:"username"`
	Password            string `json:"password"`
	URI                 string `json:"uri"`
	CACertificateBase64 string `json:"ca_certificate_base64"`
}

type DBEngine

type DBEngine interface {
	ParseConnectionString(deployment *composeapi.Deployment) (*Credentials, error)
	CreateUser(instanceID, bindingID string, deployment *composeapi.Deployment) (*Credentials, error)
	DropUser(instanceID, bindingID string, deployment *composeapi.Deployment) error
	Open(*Credentials) error
	Close()
}

type ElasticSearchEngine

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

func NewElasticSearchEngine

func NewElasticSearchEngine() *ElasticSearchEngine

func (*ElasticSearchEngine) Close

func (e *ElasticSearchEngine) Close()

func (*ElasticSearchEngine) CreateUser

func (e *ElasticSearchEngine) CreateUser(instanceID, bindingID string, deployment *composeapi.Deployment) (*Credentials, error)

func (*ElasticSearchEngine) DropUser

func (e *ElasticSearchEngine) DropUser(instanceID, bindingID string, deployment *composeapi.Deployment) error

func (*ElasticSearchEngine) Open

func (e *ElasticSearchEngine) Open(creds *Credentials) error

func (*ElasticSearchEngine) ParseConnectionString

func (e *ElasticSearchEngine) ParseConnectionString(deployment *composeapi.Deployment) (*Credentials, error)

type MongoEngine

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

func NewMongoEngine

func NewMongoEngine() *MongoEngine

func (*MongoEngine) Close

func (m *MongoEngine) Close()

func (*MongoEngine) CreateUser

func (m *MongoEngine) CreateUser(instanceID, bindingID string, deployment *composeapi.Deployment) (*Credentials, error)

func (*MongoEngine) DropUser

func (m *MongoEngine) DropUser(instanceID, bindingID string, deployment *composeapi.Deployment) error

func (*MongoEngine) Open

func (m *MongoEngine) Open(credentials *Credentials) error

func (*MongoEngine) ParseConnectionString

func (m *MongoEngine) ParseConnectionString(deployment *composeapi.Deployment) (*Credentials, error)

type Provider

type Provider interface {
	GetDBEngine(engine string) (DBEngine, error)
}

type ProviderService

type ProviderService struct{}

func NewProviderService

func NewProviderService() *ProviderService

func (*ProviderService) GetDBEngine

func (p *ProviderService) GetDBEngine(engine string) (DBEngine, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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