dbengine

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 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 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"`
	AuthSource          string `json:"auth_source"`
}

type DBEngine

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

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) (*Credentials, error)

func (*ElasticSearchEngine) RevokeCredentials added in v0.11.0

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

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) (*Credentials, error)

func (*MongoEngine) RevokeCredentials added in v0.11.0

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

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)

type RedisEngine added in v0.11.0

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

func NewRedisEngine added in v0.11.0

func NewRedisEngine(deployment *composeapi.Deployment) *RedisEngine

func (*RedisEngine) GenerateCredentials added in v0.11.0

func (e *RedisEngine) GenerateCredentials(instanceID, bindingID string) (*Credentials, error)

func (*RedisEngine) RevokeCredentials added in v0.11.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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