mongodb

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 12 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 *api.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