dbengine

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: MIT Imports: 13 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 DBEngine

type DBEngine interface {
	GenerateCredentials(instanceID, bindingID string) (interface{}, error)
	RevokeCredentials(instanceID, bindingID string) error
}

type DatabaseNames added in v0.15.0

type DatabaseNames struct {
	Databases []struct {
		Name  string
		Empty bool
	}
}

type ElasticSearchCredentials added in v0.14.0

type ElasticSearchCredentials struct {
	Hosts               []string `json:"hosts"`
	Name                string   `json:"name"`
	Username            string   `json:"username"`
	Password            string   `json:"password"`
	URI                 string   `json:"uri"`
	URIs                []string `json:"uris"`
	CACertificateBase64 string   `json:"ca_certificate_base64"`
}

type ElasticSearchEngine

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

func NewElasticSearchEngine

func NewElasticSearchEngine(deployment *composeapi.Deployment) *ElasticSearchEngine

func (*ElasticSearchEngine) GenerateCredentials added in v0.11.0

func (e *ElasticSearchEngine) GenerateCredentials(instanceID, bindingID string) (interface{}, error)

func (*ElasticSearchEngine) RevokeCredentials added in v0.11.0

func (e *ElasticSearchEngine) RevokeCredentials(instanceID, bindingID string) error

type MongoCredentials added in v0.14.0

type MongoCredentials struct {
	Hosts               []string `json:"hosts"`
	Name                string   `json:"name"`
	Username            string   `json:"username"`
	Password            string   `json:"password"`
	URI                 string   `json:"uri"`
	CACertificateBase64 string   `json:"ca_certificate_base64"`
	AuthSource          string   `json:"auth_source,omitempty"`
}

type MongoEngine

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

func NewMongoEngine

func NewMongoEngine(deployment *composeapi.Deployment) *MongoEngine

func (*MongoEngine) GenerateCredentials added in v0.11.0

func (e *MongoEngine) GenerateCredentials(instanceID, bindingID string) (interface{}, error)

func (*MongoEngine) GetDatabaseName added in v0.15.0

func (e *MongoEngine) GetDatabaseName(session MongoSession, defaultName string) (string, error)

func (*MongoEngine) RevokeCredentials added in v0.11.0

func (e *MongoEngine) RevokeCredentials(instanceID, bindingID string) error

type MongoSession added in v0.15.0

type MongoSession interface {
	Run(cmd interface{}, result interface{}) error
}

MongoSession is an incomplete interface for mgo.Session

type Provider

type Provider interface {
	GetDBEngine(*composeapi.Deployment) (DBEngine, error)
}

type ProviderService

type ProviderService struct{}

func NewProviderService

func NewProviderService() *ProviderService

func (*ProviderService) GetDBEngine

func (p *ProviderService) GetDBEngine(deployment *composeapi.Deployment) (DBEngine, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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