mongodb

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*mongo.Client
}

func (*Client) Close

func (c *Client) Close()

type KubeDBClientBuilder

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

func NewKubeDBClientBuilder

func NewKubeDBClientBuilder(kc client.Client, db *dbapi.MongoDB) *KubeDBClientBuilder

func (*KubeDBClientBuilder) GetMongoClient

func (o *KubeDBClientBuilder) GetMongoClient() (*Client, error)

func (*KubeDBClientBuilder) WithAuthDatabase added in v0.0.15

func (o *KubeDBClientBuilder) WithAuthDatabase(authDB string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithCerts

func (*KubeDBClientBuilder) WithContext

func (*KubeDBClientBuilder) WithCred added in v0.0.15

func (o *KubeDBClientBuilder) WithCred(cred string) *KubeDBClientBuilder

To connect with a specific user. cred formet: "username:password"

func (*KubeDBClientBuilder) WithDirect

func (o *KubeDBClientBuilder) WithDirect() *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithPod

func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithReplSet

func (o *KubeDBClientBuilder) WithReplSet(replSetName string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithURL

Jump to

Keyboard shortcuts

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