Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) AddCluster(ctx context.Context, cluster string, seed string) error
- func (c *Client) DeleteCluster(ctx context.Context, cluster string) error
- func (c *Client) GetCluster(ctx context.Context, name string) (*Cluster, error)
- func (c *Client) GetClusterNames(ctx context.Context) ([]string, error)
- func (c *Client) GetClusters(ctx context.Context) <-chan GetClusterResult
- func (c *Client) GetClustersSync(ctx context.Context) ([]*Cluster, error)
- func (c *Client) IsReaperUp(ctx context.Context) (bool, error)
- type Cluster
- type DataCenterState
- type EndpointState
- type GetClusterResult
- type GossipState
- type NodeState
- type RackState
- type ReaperClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CassandraClusterNotFound = errors.New("cassandra cluster not found") ErrRedirectsNotSupported = errors.New("http redirects are not supported") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AddCluster ¶
func (*Client) DeleteCluster ¶
func (*Client) GetCluster ¶
func (*Client) GetClusterNames ¶
func (*Client) GetClusters ¶
func (c *Client) GetClusters(ctx context.Context) <-chan GetClusterResult
Fetches all clusters. This function is async and may return before any or all results are available. The concurrency is currently determined by min(5, NUM_CPUS).
func (*Client) GetClustersSync ¶
Fetches all clusters in a synchronous or blocking manner. Note that this function fails fast if there is an error and no clusters will be returned.
type DataCenterState ¶
type EndpointState ¶
type GetClusterResult ¶
type GossipState ¶
type GossipState struct { SourceNode string EndpointNames []string TotalLoad float64 DataCenters map[string]DataCenterState }
type NodeState ¶
type NodeState struct {
GossipStates []GossipState
}
type RackState ¶
type RackState struct { Name string Endpoints []EndpointState }
type ReaperClient ¶
type ReaperClient interface { IsReaperUp(ctx context.Context) (bool, error) GetClusterNames(ctx context.Context) ([]string, error) GetCluster(ctx context.Context, name string) (*Cluster, error) // Fetches all clusters. This function is async and may return before any or all results are // available. The concurrency is currently determined by min(5, NUM_CPUS). GetClusters(ctx context.Context) <-chan GetClusterResult // Fetches all clusters in a synchronous or blocking manner. Note that this function fails // fast if there is an error and no clusters will be returned. GetClustersSync(ctx context.Context) ([]*Cluster, error) AddCluster(ctx context.Context, cluster string, seed string) error DeleteCluster(ctx context.Context, cluster string) error }
func NewReaperClient ¶
func NewReaperClient(baseURL string) (ReaperClient, error)
Click to show internal directories.
Click to hide internal directories.