Documentation ¶
Index ¶
- Variables
- func ApplyOptions(rc Runner, opts ...RunnerOption) error
- type LocalRunner
- type RemoteRunner
- type Runner
- type RunnerOption
- func WithDir(dir string) RunnerOption
- func WithLogger(logger *zap.Logger) RunnerOption
- func WithSession(s *runner.Session) RunnerOption
- func WithStderr(stderr io.Writer) RunnerOption
- func WithStdin(stdin io.Reader) RunnerOption
- func WithStdout(stdout io.Writer) RunnerOption
- func WithinShellMaybe() RunnerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRunnerClientUnimplemented = fmt.Errorf("method unimplemented")
Functions ¶
func ApplyOptions ¶
func ApplyOptions(rc Runner, opts ...RunnerOption) error
Types ¶
type LocalRunner ¶
type LocalRunner struct {
// contains filtered or unexported fields
}
func NewLocalRunner ¶
func NewLocalRunner(opts ...RunnerOption) (*LocalRunner, error)
func (*LocalRunner) DryRunBlock ¶
func (r *LocalRunner) DryRunBlock(ctx context.Context, block *document.CodeBlock, w io.Writer, opts ...RunnerOption) error
type RemoteRunner ¶
type RemoteRunner struct {
// contains filtered or unexported fields
}
func NewRemoteRunner ¶
func NewRemoteRunner(ctx context.Context, addr string, opts ...RunnerOption) (*RemoteRunner, error)
func (*RemoteRunner) DryRunBlock ¶
func (r *RemoteRunner) DryRunBlock(ctx context.Context, block *document.CodeBlock, w io.Writer, opts ...RunnerOption) error
type RunnerOption ¶
func WithDir ¶
func WithDir(dir string) RunnerOption
func WithLogger ¶
func WithLogger(logger *zap.Logger) RunnerOption
func WithSession ¶
func WithSession(s *runner.Session) RunnerOption
func WithStderr ¶
func WithStderr(stderr io.Writer) RunnerOption
func WithStdin ¶
func WithStdin(stdin io.Reader) RunnerOption
func WithStdout ¶
func WithStdout(stdout io.Writer) RunnerOption
func WithinShellMaybe ¶
func WithinShellMaybe() RunnerOption
Click to show internal directories.
Click to hide internal directories.