repl

package
v0.0.0-...-6b70a02 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotConnected = errors.New("Not connected")

ErrNotConnected means the shell is not connected to Elasticsearch

Functions

This section is empty.

Types

type Shell

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

Shell is the REPL

func NewShell

func NewShell(ctx context.Context) *Shell

NewShell creates a new shell

func (*Shell) Connect

func (shell *Shell) Connect(args []string) (string, error)

Connect connects to an Elasticsearch instance

func (*Shell) Create

func (shell *Shell) Create(args []string) (string, error)

Create creates . . . something

func (*Shell) Exit

func (shell *Shell) Exit(args []string) (string, error)

Exit exits the shell

func (*Shell) Health

func (shell *Shell) Health(args []string) (string, error)

Health shows the cluster health

func (*Shell) Index

func (shell *Shell) Index(args []string) (string, error)

Index sets the index

func (*Shell) Indices

func (shell *Shell) Indices(args []string) (string, error)

Indices gets the indices

func (*Shell) IsConnected

func (shell *Shell) IsConnected() bool

IsConnected returns whether the client is connected

func (*Shell) Nodes

func (shell *Shell) Nodes(args []string) (string, error)

Nodes gets the nodes

func (*Shell) Output

func (shell *Shell) Output(args []string) (string, error)

Output shows or sets the output type

func (*Shell) Ping

func (shell *Shell) Ping(args []string) (string, error)

Ping pings the server

func (*Shell) Quit

func (shell *Shell) Quit(args []string) (string, error)

Quit quits the shell

func (*Shell) Run

func (shell *Shell) Run() error

Run runs the shell (REPL)

func (*Shell) Search

func (shell *Shell) Search(args []string) (string, error)

Search performs a search

Jump to

Keyboard shortcuts

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