Documentation
¶
Index ¶
- type Client
- func (c *Client) AddBucketCluster(clusterID string, name, typ string, replicas uint) error
- func (c *Client) CreateCluster(clusterID string) (*CreateClusterResult, error)
- func (c *Client) EndTest(runID string) error
- func (c *Client) EndTesting(runID string) (interface{}, error)
- func (c *Client) Shutdown() error
- func (c *Client) StartTest(runID, testName string) (*TestStartedSpec, error)
- func (c *Client) StartTesting(runID string, clientName string) (string, error)
- func (c *Client) TimeTravelCluster(clusterID string, duration time.Duration) error
- func (c *Client) TimeTravelRun(runID string, duration time.Duration) error
- type CreateClusterResult
- type NewClientOptions
- type TestStartedSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a single CAVES client instance.
func NewClient ¶
func NewClient(opts NewClientOptions) (*Client, error)
NewClient instantiates a new CAVES instance and returns an interface to control it.
func (*Client) AddBucketCluster ¶
AddBucketCluster adds a bucket to a specific cluster
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(clusterID string) (*CreateClusterResult, error)
CreateCluster instantiates a new CAVES test cluster.
func (*Client) EndTesting ¶
EndTesting stops an already running CAVES test suite.
func (*Client) StartTest ¶
func (c *Client) StartTest(runID, testName string) (*TestStartedSpec, error)
StartTest begins a specific test within a CAVES test suite.
func (*Client) StartTesting ¶
StartTesting begins a test suite run within CAVES.
func (*Client) TimeTravelCluster ¶
TimeTravelCluster allows a specific cluster to be time-travelled.
type CreateClusterResult ¶
Click to show internal directories.
Click to hide internal directories.