package kv

import "github.com/docker/cli/components/engine/pkg/discovery/kv"

Index

Functions

func Init

func Init()

Init is exported

Types

type Discovery

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

Discovery is exported

func (*Discovery) Initialize

func (s *Discovery) Initialize(uris string, heartbeat time.Duration, ttl time.Duration, clusterOpts map[string]string) error

Initialize is exported

func (*Discovery) Prefix

func (s *Discovery) Prefix() string

Prefix returns the store prefix

func (*Discovery) Register

func (s *Discovery) Register(addr string) error

Register is exported

func (*Discovery) Store

func (s *Discovery) Store() store.Store

Store returns the underlying store used by KV discovery.

func (*Discovery) Watch

func (s *Discovery) Watch(stopCh <-chan struct{}) (<-chan discovery.Entries, <-chan error)

Watch is exported

Source Files

kv.go

Version
v17.11.0-ce+incompatible
Published
Nov 20, 2017
Platform
js/wasm
Imports
12 packages
Last checked
4 minutes ago

Tools for package owners.