mongodb

package
v0.6.0-test.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoDB

func NewMongoDB(logger logger.Logger) bindings.OutputBinding

NewMongoDB returns a new MongoDB Binding

Types

type MongoDBOperations

type MongoDBOperations struct {
	BaseOperations
	// contains filtered or unexported fields
}

MongoDBOperations is a binding implementation for MongoDB.

func (*MongoDBOperations) GetRole

func (mongoOps *MongoDBOperations) GetRole(ctx context.Context, request *bindings.InvokeRequest, response *bindings.InvokeResponse) (string, error)

func (*MongoDBOperations) Init

func (mongoOps *MongoDBOperations) Init(metadata bindings.Metadata) error

Init initializes the MongoDB Binding.

func (*MongoDBOperations) LockInstance added in v0.6.0

func (mongoOps *MongoDBOperations) LockInstance(ctx context.Context) error

func (*MongoDBOperations) StatusCheck

func (mongoOps *MongoDBOperations) StatusCheck(ctx context.Context, cmd string, response *bindings.InvokeResponse) (OpsResult, error)

func (*MongoDBOperations) UnlockInstance

func (mongoOps *MongoDBOperations) UnlockInstance(ctx context.Context) error

Jump to

Keyboard shortcuts

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