mongo-drivergo.mongodb.org/mongo-driver/mongo/listdbopt Index | Files

package listdbopt

import "go.mongodb.org/mongo-driver/mongo/listdbopt"

Index

Types

type ListDatabases

type ListDatabases interface {
	// contains filtered or unexported methods
}

ListDatabases represents all possible params for the listDatabases() function.

type ListDatabasesBundle

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

ListDatabasesBundle is a bundle of ListDatabases options

func BundleListDatabases

func BundleListDatabases(opts ...ListDatabases) *ListDatabasesBundle

BundleListDatabases bundles ListDatabases options

func (*ListDatabasesBundle) ConvertListDatabasesOption

func (lcb *ListDatabasesBundle) ConvertListDatabasesOption() option.ListDatabasesOptioner

ConvertListDatabasesOption implements the ListDatabases interface

func (*ListDatabasesBundle) NameOnly

func (lcb *ListDatabasesBundle) NameOnly(b bool) *ListDatabasesBundle

NameOnly adds an option to specify whether to return only the collection names.

func (*ListDatabasesBundle) String

func (lcb *ListDatabasesBundle) String() string

String implements the Stringer interface

func (*ListDatabasesBundle) Unbundle

func (lcb *ListDatabasesBundle) Unbundle(deduplicate bool) ([]option.ListDatabasesOptioner, *session.Client, error)

Unbundle transforms a bundle into a slice of options, optionally deduplicating.

type ListDatabasesOption

type ListDatabasesOption interface {
	ListDatabases
	ConvertListDatabasesOption() option.ListDatabasesOptioner
}

ListDatabasesOption represents the options for the listDatabases() function.

type ListDatabasesSession

type ListDatabasesSession interface {
	ListDatabases
	ConvertListDatabasesSession() *session.Client
}

ListDatabasesSession is the session for the ListDatabases() function.

type ListDatabasesSessionOpt

type ListDatabasesSessionOpt struct{}

ListDatabasesSessionOpt is a listDatabases session option.

func (ListDatabasesSessionOpt) ConvertListDatabasesSession

func (ListDatabasesSessionOpt) ConvertListDatabasesSession() *session.Client

ConvertListDatabasesSession implements the ListDatabasesSession interface.

type OptNameOnly

type OptNameOnly option.OptNameOnly

OptNameOnly specifies whether to return only the collection names.

func NameOnly

func NameOnly(b bool) OptNameOnly

NameOnly specifies whether to return only the collection names.

func (OptNameOnly) ConvertListDatabasesOption

func (opt OptNameOnly) ConvertListDatabasesOption() option.ListDatabasesOptioner

ConvertListDatabasesOption implements the ListDatabases interface.

Source Files

listdbopt.go

Version
v0.0.15
Published
Sep 27, 2018
Platform
linux/amd64
Imports
3 packages
Last checked
3 minutes ago

Tools for package owners.