runcmdopt

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

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

Option represents a RunCommand option.

func ReadPreference

func ReadPreference(rp *readpref.ReadPref) Option

ReadPreference sets the read preference.

type RunCmd

type RunCmd struct {
	ReadPreference *readpref.ReadPref
}

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 added in v0.0.10

type RunCmdSession interface {
	Option
	ConvertRunCmdSession() *session.Client
}

RunCmdSession is the session for the runCommand() function

type RunCmdSessionOpt added in v0.0.10

type RunCmdSessionOpt struct{}

RunCmdSessionOpt is a RunCommand session option.

func (RunCmdSessionOpt) ConvertRunCmdSession added in v0.0.10

func (RunCmdSessionOpt) ConvertRunCmdSession() *session.Client

ConvertRunCmdSession implements the RunCmdSession interface.

Jump to

Keyboard shortcuts

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