package mock
import "github.com/mesos/mesos-go/api/v0/detector/zoo/mock"
Index ¶
- type AllMastersListener
- func (a *AllMastersListener) OnMasterChanged(mi *mesos.MasterInfo)
- func (a *AllMastersListener) UpdatedMasters(mi []*mesos.MasterInfo)
- type Client
- func NewClient(testZkPath string, initialChildren ...string) (mocked *Client, snaps chan []string, errs chan error)
- func (m *Client) Data(path string) (a []byte, b error)
- func (m *Client) Stop()
- func (m *Client) Stopped() (a <-chan struct{})
- func (m *Client) WatchChildren(path string) (a string, b <-chan []string, c <-chan error)
- type Connector
Types ¶
type AllMastersListener ¶
implements MasterChanged and AllMasters extension
func (*AllMastersListener) OnMasterChanged ¶
func (a *AllMastersListener) OnMasterChanged(mi *mesos.MasterInfo)
func (*AllMastersListener) UpdatedMasters ¶
func (a *AllMastersListener) UpdatedMasters(mi []*mesos.MasterInfo)
type Client ¶
func NewClient ¶
func NewClient(testZkPath string, initialChildren ...string) (mocked *Client, snaps chan []string, errs chan error)
newMockZkClient returns a mocked implementation of ZKInterface that implements expectations for Stop() and Stopped(); multiple calls to Stop() are safe.
func (*Client) Data ¶
func (*Client) Stop ¶
func (m *Client) Stop()
func (*Client) Stopped ¶
func (m *Client) Stopped() (a <-chan struct{})
func (*Client) WatchChildren ¶
type Connector ¶
Impersontates a zk.Connection It implements interface Connector
func NewConnector ¶
func NewConnector() *Connector
func (*Connector) Children ¶
func (*Connector) ChildrenW ¶
func (*Connector) Close ¶
func (conn *Connector) Close()
func (*Connector) Get ¶
Source Files ¶
- Version
- v0.0.11 (latest)
- Published
- May 15, 2020
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 hours ago –
Tools for package owners.