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

package listcollectionopt

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

Index

Types

type ListCollections

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

ListCollections represents all possible params for the listCollections() function.

type ListCollectionsBundle

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

ListCollectionsBundle is a bundle of ListCollections options

func BundleListCollections

func BundleListCollections(opts ...ListCollections) *ListCollectionsBundle

BundleListCollections bundles ListCollections options

func (*ListCollectionsBundle) ConvertListCollectionsOption

func (lcb *ListCollectionsBundle) ConvertListCollectionsOption() option.ListCollectionsOptioner

ConvertListCollectionsOption implements the ListCollections interface

func (*ListCollectionsBundle) NameOnly

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

func (*ListCollectionsBundle) String

func (lcb *ListCollectionsBundle) String() string

String implements the Stringer interface

func (*ListCollectionsBundle) Unbundle

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

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

type ListCollectionsOption

type ListCollectionsOption interface {
	ListCollections
	ConvertListCollectionsOption() option.ListCollectionsOptioner
}

ListCollectionsOption represents the options for the listCollections() function.

type ListCollectionsSession

type ListCollectionsSession interface {
	ListCollections
	ConvertListCollectionsSession() *session.Client
}

ListCollectionsSession is the session for the ListCollections() function.

type ListCollectionsSessionOpt

type ListCollectionsSessionOpt struct{}

ListCollectionsSessionOpt is a listCollections session option.

func (ListCollectionsSessionOpt) ConvertListCollectionsSession

func (ListCollectionsSessionOpt) ConvertListCollectionsSession() *session.Client

ConvertListCollectionsSession implements the ListCollectionsSession 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) ConvertListCollectionsOption

func (opt OptNameOnly) ConvertListCollectionsOption() option.ListCollectionsOptioner

ConvertListCollectionsOption implements the ListCollections interface.

Source Files

listcollectionopt.go

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

Tools for package owners.