Packages

c

io.buoyant.namerd.storage

K8sDtabStore

class K8sDtabStore extends DtabStore

A DtabStore using the Kubernetes third-party API (in beta as of Kubernetes 1.2) to store Dtabs. Note that usage of this store will require some setup:

kubectl create namerd/examples/k8s/3rdparty.yaml

This creates a third-party resource at: /apis/buoyant.io/v1/dtabs.

TODO: add tests: unit, end-to-end

Linear Supertypes
DtabStore, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. K8sDtabStore
  2. DtabStore
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new K8sDtabStore(client: Client, dst: String, namespace: String)

    client

    a fully configured client which will be used to access the Kubernetes API

    dst

    the destination which will be used to construct a service from the client

    namespace

    the Kubernetes namespace being read/written by this store (note that this differs from Dtab namespaces)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val api: NsApi
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def create(ns: String, dtab: Dtab): Future[Unit]

    Create a new dtab.

    Create a new dtab. Returns a DtabNamespaceAlreadyExistsException if a dtab already exists with that namespace.

    Definition Classes
    K8sDtabStore → DtabStore
  8. def delete(ns: String): Future[Unit]

    Deletes a dtab.

    Deletes a dtab. Returns a DtabNamespaceDoesNotExistException if the namespace does not exist.

    Definition Classes
    K8sDtabStore → DtabStore
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def list(): Activity[Set[Ns]]

    List all Dtab namespaces

    List all Dtab namespaces

    Definition Classes
    K8sDtabStore → DtabStore
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  19. def observe(ns: String): Activity[Option[VersionedDtab]]

    Watch a dtab and its version.

    Watch a dtab and its version.

    Definition Classes
    K8sDtabStore → DtabStore
  20. def put(ns: String, dtab: Dtab): Future[Unit]

    Update an existing dtab based on the current version or create a new dtab if one doesn't already exist.

    Update an existing dtab based on the current version or create a new dtab if one doesn't already exist. Put returns a DtabVersionMismatchException if the dtab resource version being updated does not match the current version. If this is the case, a retry for a dtab update should be done.

    Definition Classes
    K8sDtabStore → DtabStore
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. def update(ns: String, dtab: Dtab, version: Buf): Future[Unit]

    Update an existing dtab.

    Update an existing dtab. Returns a DtabVersionMismatchException if the supplied version doesn't match the current version.

    Definition Classes
    K8sDtabStore → DtabStore
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. val watchApi: NsApi

Inherited from DtabStore

Inherited from AnyRef

Inherited from Any

Ungrouped