mongodb

package
v0.7.2-beta.15 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDBOperations

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

MongoDBOperations is a binding implementation for MongoDB.

func NewMongoDB

func NewMongoDB() *MongoDBOperations

NewMongoDB returns a new MongoDB Binding

func (*MongoDBOperations) GetLogger

func (mongoOps *MongoDBOperations) GetLogger() logr.Logger

func (*MongoDBOperations) GetRole

func (mongoOps *MongoDBOperations) GetRole(ctx context.Context, request *ProbeRequest, response *ProbeResponse) (string, error)

func (*MongoDBOperations) GetRunningPort

func (mongoOps *MongoDBOperations) GetRunningPort() int

func (*MongoDBOperations) Init

func (mongoOps *MongoDBOperations) Init(properties component.Properties) error

Init initializes the MongoDB Binding.

func (*MongoDBOperations) InternalExec

func (mongoOps *MongoDBOperations) InternalExec(ctx context.Context, sql string) (int64, error)

func (*MongoDBOperations) InternalQuery

func (mongoOps *MongoDBOperations) InternalQuery(ctx context.Context, sql string) ([]byte, error)

func (*MongoDBOperations) LockInstance

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

Jump to

Keyboard shortcuts

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