Top.Mail.Ru
Class cartridge.test-helpers.etcd | Tarantool
 
Tarantool Cartridge / Table of contents / Class cartridge.test-helpers.etcd
Tarantool Cartridge / Table of contents / Class cartridge.test-helpers.etcd

Class cartridge.test-helpers.etcd

Class cartridge.test-helpers.etcd

Class to run and manage etcd node.

Functions

Etcd:new (object)

Build etcd node object.

Parameters:

  • object:
    • name: (string) Human-readable node name.
    • workdir: (string) Path to the data directory.
    • etcd_path: (string) Path to the etcd executable.
    • peer_url: (string) URL to listen on for peer traffic.
    • client_url: (string) URL to listen on for client traffic.
    • env: (tab) Environment variables passed to the process. (optional)
    • args: (tab) Command-line arguments passed to the process. (optional)

Returns:

object

Etcd:start ()

Start the node.

Etcd:stop ()

Stop the node.