Package

me.maciejb.etcd

client

Permalink

package client

Visibility
  1. Public
  2. All

Type Members

  1. trait EtcdClient extends AnyRef

    Permalink

    etcd client API

    etcd client API

    See also

    etcd API documentation

  2. case class EtcdCommandError(errorCode: Int, message: String, cause: String, index: Int) extends EtcdError with Product with Serializable

    Permalink
  3. abstract class EtcdError extends RuntimeException with EtcdMessage

    Permalink

    A response returned after a failed operation

  4. case class EtcdInternalError(errorCode: Int, message: String, cause: String, index: Int) extends EtcdError with Product with Serializable

    Permalink
  5. sealed trait EtcdMessage extends AnyRef

    Permalink

    Represents a message returned by etcd, either EtcdResponse or EtcdError.

  6. case class EtcdNode(key: String, createdIndex: Int, modifiedIndex: Int, expiration: Option[ZonedDateTime], value: Option[String], dir: Option[Boolean], nodes: Option[List[EtcdNode]]) extends Product with Serializable

    Permalink

    Represents a node in etcd key space.

    Represents a node in etcd key space.

    key

    the node's key. In case of nested nodes, is prepended with a path composed of parent directory nodes' keys, separated with / characters

    createdIndex

    journal index at which the node was created.

    modifiedIndex

    journal index at which the node was most recently modified.

    expiration

    node expiration time.

    value

    the value stored in the node.

    dir

    a flag indicating if the node is a directory or leaf ("file") node.

    nodes

    directory's immediate child nodes, returned on a recursive get operation.

  7. case class EtcdPostFormError(errorCode: Int, message: String, cause: String, index: Int) extends EtcdError with Product with Serializable

    Permalink
  8. case class EtcdResponse(action: String, node: EtcdNode, prevNode: Option[EtcdNode]) extends EtcdMessage with Product with Serializable

    Permalink

    A response returned after a successful operation.

    A response returned after a successful operation.

    action

    action that was performed one of: get, set, create, delete, compareAndSwap, compareAndDelete.

    node

    the node on which operation was performed

    prevNode

    previous state of the node before the operation, returned for set and compareAndSwap operations.

Value Members

  1. object EtcdClient

    Permalink

    etcd client factory.

  2. object EtcdError extends Serializable

    Permalink

    Various etcd error codes are provided as constants.

    Various etcd error codes are provided as constants.

    See also Etcd documentation

Ungrouped