package runcmdopt
import "go.mongodb.org/mongo-driver/mongo/runcmdopt"
Index ¶
- type Option
- type RunCmd
- type RunCmdBundle
- func BundleRunCmd(opts ...Option) *RunCmdBundle
- func (rcb *RunCmdBundle) ReadPreference(rp *readpref.ReadPref) *RunCmdBundle
- func (rcb *RunCmdBundle) String() string
- func (rcb *RunCmdBundle) Unbundle() (*RunCmd, *session.Client, error)
- type RunCmdSession
- type RunCmdSessionOpt
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option represents a RunCommand option.
func ReadPreference ¶
ReadPreference sets the read preference.
type RunCmd ¶
RunCmd represents a run command.
type RunCmdBundle ¶
type RunCmdBundle struct {
// contains filtered or unexported fields
}
RunCmdBundle is a bundle of RunCommand options.
func BundleRunCmd ¶
func BundleRunCmd(opts ...Option) *RunCmdBundle
BundleRunCmd bundles RunCommand options
func (*RunCmdBundle) ReadPreference ¶
func (rcb *RunCmdBundle) ReadPreference(rp *readpref.ReadPref) *RunCmdBundle
ReadPreference sets the read preference.
func (*RunCmdBundle) String ¶
func (rcb *RunCmdBundle) String() string
String implements the Stringer interface
func (*RunCmdBundle) Unbundle ¶
func (rcb *RunCmdBundle) Unbundle() (*RunCmd, *session.Client, error)
Unbundle unbundles the options, returning a RunCmd instance.
type RunCmdSession ¶
RunCmdSession is the session for the runCommand() function
type RunCmdSessionOpt ¶
type RunCmdSessionOpt struct{}
RunCmdSessionOpt is a RunCommand session option.
func (RunCmdSessionOpt) ConvertRunCmdSession ¶
func (RunCmdSessionOpt) ConvertRunCmdSession() *session.Client
ConvertRunCmdSession implements the RunCmdSession interface.
Source Files ¶
runcmdopt.go
- Version
- v0.0.17
- Published
- Oct 25, 2018
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 53 minutes ago –
Tools for package owners.