Documentation ¶
Index ¶
- Constants
- func DownloadFromS3(cred S3Credentials, src string, dest string) (string, error)
- func NewStore(backend Backend, addrsStr, certFile, keyFile, caCertFile string) (kvstore.Store, error)
- func UploadToS3(cred S3Credentials, src, dest string) (string, error)
- type Backend
- type S3Credentials
- type S3Location
- type StoreManager
- func (e *StoreManager) GetClusterData() (*cluster.ClusterData, *kvstore.KVPair, error)
- func (e *StoreManager) GetClusterView() (*cluster.ClusterView, *kvstore.KVPair, error)
- func (e *StoreManager) GetKeeperDiscoveryInfo(id string) (*cluster.KeeperDiscoveryInfo, bool, error)
- func (e *StoreManager) GetKeepersDiscoveryInfo() (cluster.KeepersDiscoveryInfo, error)
- func (e *StoreManager) GetKeepersState() (cluster.KeepersState, *kvstore.KVPair, error)
- func (e *StoreManager) GetLeaderSentinelId() (string, error)
- func (e *StoreManager) GetProxiesInfo() (cluster.ProxiesInfo, error)
- func (e *StoreManager) GetProxyInfo(id string) (*cluster.ProxyInfo, bool, error)
- func (e *StoreManager) GetSentinelInfo(id string) (*cluster.SentinelInfo, bool, error)
- func (e *StoreManager) GetSentinelsInfo() (cluster.SentinelsInfo, error)
- func (e *StoreManager) SetClusterData(mss cluster.KeepersState, cv *cluster.ClusterView, previous *kvstore.KVPair) (*kvstore.KVPair, error)
- func (e *StoreManager) SetKeeperDiscoveryInfo(id string, ms *cluster.KeeperDiscoveryInfo, ttl time.Duration) error
- func (e *StoreManager) SetProxyInfo(pi *cluster.ProxyInfo, ttl time.Duration) error
- func (e *StoreManager) SetSentinelInfo(si *cluster.SentinelInfo, ttl time.Duration) error
Constants ¶
View Source
const ( DefaultEtcdEndpoints = "127.0.0.1:2379" DefaultConsulEndpoints = "127.0.0.1:8500" )
Variables ¶
This section is empty.
Functions ¶
func DownloadFromS3 ¶
func DownloadFromS3(cred S3Credentials, src string, dest string) (string, error)
func UploadToS3 ¶
func UploadToS3(cred S3Credentials, src, dest string) (string, error)
Types ¶
type S3Credentials ¶
type S3Location ¶
type StoreManager ¶
type StoreManager struct {
// contains filtered or unexported fields
}
func NewStoreManager ¶
func NewStoreManager(kvStore kvstore.Store, path string) *StoreManager
func (*StoreManager) GetClusterData ¶
func (e *StoreManager) GetClusterData() (*cluster.ClusterData, *kvstore.KVPair, error)
func (*StoreManager) GetClusterView ¶
func (e *StoreManager) GetClusterView() (*cluster.ClusterView, *kvstore.KVPair, error)
func (*StoreManager) GetKeeperDiscoveryInfo ¶
func (e *StoreManager) GetKeeperDiscoveryInfo(id string) (*cluster.KeeperDiscoveryInfo, bool, error)
func (*StoreManager) GetKeepersDiscoveryInfo ¶
func (e *StoreManager) GetKeepersDiscoveryInfo() (cluster.KeepersDiscoveryInfo, error)
func (*StoreManager) GetKeepersState ¶
func (e *StoreManager) GetKeepersState() (cluster.KeepersState, *kvstore.KVPair, error)
func (*StoreManager) GetLeaderSentinelId ¶
func (e *StoreManager) GetLeaderSentinelId() (string, error)
func (*StoreManager) GetProxiesInfo ¶
func (e *StoreManager) GetProxiesInfo() (cluster.ProxiesInfo, error)
func (*StoreManager) GetProxyInfo ¶
func (*StoreManager) GetSentinelInfo ¶
func (e *StoreManager) GetSentinelInfo(id string) (*cluster.SentinelInfo, bool, error)
func (*StoreManager) GetSentinelsInfo ¶
func (e *StoreManager) GetSentinelsInfo() (cluster.SentinelsInfo, error)
func (*StoreManager) SetClusterData ¶
func (e *StoreManager) SetClusterData(mss cluster.KeepersState, cv *cluster.ClusterView, previous *kvstore.KVPair) (*kvstore.KVPair, error)
func (*StoreManager) SetKeeperDiscoveryInfo ¶
func (e *StoreManager) SetKeeperDiscoveryInfo(id string, ms *cluster.KeeperDiscoveryInfo, ttl time.Duration) error
func (*StoreManager) SetProxyInfo ¶
func (*StoreManager) SetSentinelInfo ¶
func (e *StoreManager) SetSentinelInfo(si *cluster.SentinelInfo, ttl time.Duration) error
Click to show internal directories.
Click to hide internal directories.