mongo

package
v0.0.0-...-0637115 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Username string
	Password string
}

type MongoAtlasClientNamespace

type MongoAtlasClientNamespace struct {
}

func (*MongoAtlasClientNamespace) New

func (x *MongoAtlasClientNamespace) New(apiEndpoint string, publicKey string, privateKey string) MongoAtlasClienter

type MongoAtlasClientNamespacer

type MongoAtlasClientNamespacer interface {
	New(string, string, string) MongoAtlasClienter
}

type MongoClientNamespace

type MongoClientNamespace struct {
}

func (*MongoClientNamespace) NewClient

func (x *MongoClientNamespace) NewClient(opts ...*options.ClientOptions) (MongoClienter, error)

type MongoClientNamespacer

type MongoClientNamespacer interface {
	NewClient(...*options.ClientOptions) (MongoClienter, error)
}

type MongoClienter

type MongoClienter interface {
	Connect(context.Context) error
	Ping(context.Context, *readpref.ReadPref) error
	ListDatabaseNames(context.Context, interface{}, ...*options.ListDatabasesOptions) ([]string, error)
}

type MongoCloudProvider

type MongoCloudProvider struct {
	APIEndpoint string
	APIKey      string
	PublicKey   string
	ProjectID   string
	Timeout     int
}

type MongoData

type MongoData struct {
	Hostname                string
	Atlas                   MongoCloudProvider
	CredentialsCheckTimeout int
}

type MongoExtension

type MongoExtension struct {
	MongoAtlasClientNamespacer
	MongoClientNamespacer
	// contains filtered or unexported fields
}

func (*MongoExtension) Description

func (x *MongoExtension) Description() string

func (*MongoExtension) Process

func (x *MongoExtension) Process(e transistor.Event) error

How does this work? The artifacts that should be returned after a Mongo extension is successfuly created should be the credentials for which the project will be using to access the bucket, as well as the prefix that has been assigned for this application to use in addition to the region the bucket is in

Accepts:

	mongo_atlas_endpoint
	mongo_atlas_api_public_key
	mongo_atlas_api_private_key
	mongo_atlas_project_id
 mongo_atlas_api_timeout

 mongo_hostname
 mongo_credentials_check_timeout

func (*MongoExtension) SampleConfig

func (x *MongoExtension) SampleConfig() string

func (*MongoExtension) Start

func (x *MongoExtension) Start(e chan transistor.Event) error

func (*MongoExtension) Stop

func (x *MongoExtension) Stop()

func (*MongoExtension) Subscribe

func (x *MongoExtension) Subscribe() []string

Jump to

Keyboard shortcuts

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