mongoprovider

package
v0.4.30 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

func NewProvider

func NewProvider() *Provider

func (*Provider) CloseClientConnection

func (p *Provider) CloseClientConnection(client *mongo.Client) error

func (*Provider) GetConnectionClient

func (p *Provider) GetConnectionClient(driver, connectionString string, opts any) (*mongo.Client, error)

this is currently untested as it isn't really used anywhere

func (*Provider) GetConnectionClientConfig

func (p *Provider) GetConnectionClientConfig(cc *mgmtv1alpha1.ConnectionConfig) (any, error)

func (*Provider) GetConnectionDetails

func (p *Provider) GetConnectionDetails(
	cc *mgmtv1alpha1.ConnectionConfig,
	connectionTimeout *uint32,
	logger *slog.Logger,
) (connectiontunnelmanager.ConnectionDetails, error)

Jump to

Keyboard shortcuts

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