vendor: bump all direct dependencies

Just good hygiene.

Signed-off-by: Casey Callendrello <cdc@redhat.com>
This commit is contained in:
Casey Callendrello
2021-08-10 14:41:02 +02:00
parent 9b1666d489
commit 0818512c7a
519 changed files with 11418 additions and 17360 deletions

View File

@ -108,6 +108,22 @@ func (b *Buffer) Read(d []byte) (int, error) {
return n, nil
}
/*
Clear clears out the buffer's contents
*/
func (b *Buffer) Clear() error {
b.lock.Lock()
defer b.lock.Unlock()
if b.closed {
return errors.New("attempt to clear closed buffer")
}
b.contents = []byte{}
b.readCursor = 0
return nil
}
/*
Close signifies that the buffer will no longer be written to
*/