client

package
v0.0.0-...-577c0ea Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

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

func (*Error) Err

func (e *Error) Err(err error) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Msg

func (e *Error) Msg(msg string) *Error

func (*Error) Unwrap

func (e *Error) Unwrap() error

type Option

type Option func(*client)

func WithHosts

func WithHosts(hosts ...string) Option

func WithKey

func WithKey(k []byte) Option

func WithPassphrase

func WithPassphrase(p []byte) Option

func WithScript

func WithScript(s []byte) Option

func WithTimeout

func WithTimeout(d time.Duration) Option

func WithUser

func WithUser(u string) Option

type Runner

type Runner interface {
	Run() error
}

func New

func New(options ...Option) Runner

Jump to

Keyboard shortcuts

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