Documentation ¶
Index ¶
- type Client
- type KubeDBClientBuilder
- func (o *KubeDBClientBuilder) GetMongoClient() (*Client, error)
- func (o *KubeDBClientBuilder) WithAuthDatabase(authDB string) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithCerts(certs *certholder.ResourceCerts) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithContext(ctx context.Context) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithCred(cred string) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithDirect() *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithReplSet(replSetName string) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithURL(url string) *KubeDBClientBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 (o *KubeDBClientBuilder) WithCerts(certs *certholder.ResourceCerts) *KubeDBClientBuilder
func (*KubeDBClientBuilder) WithContext ¶
func (o *KubeDBClientBuilder) WithContext(ctx context.Context) *KubeDBClientBuilder
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 ¶
func (o *KubeDBClientBuilder) WithURL(url string) *KubeDBClientBuilder
Click to show internal directories.
Click to hide internal directories.