Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides methods to store and retrieve chunks of test failures.
func NewClient ¶
NewClient initialises a new chunk storage client, that uses the specified GCS bucket as the backing store.
func (*Client) Close ¶
func (c *Client) Close()
Close releases resources associated with the client.
type FakeClient ¶
type FakeClient struct { // Contents are the chunk stored in the store, by their file name. // File names can be obtained using the FileName method. Contents map[string]*cpb.Chunk // A callback function to be called during Get(...). This allows // the test to change the environment during the processing of // a particular chunk. GetCallback func(objectID string) }
FakeClient provides a fake implementation of a chunk store, for testing. Chunks are stored in-memory.
Click to show internal directories.
Click to hide internal directories.