talos/pkg/circular/errors.go
Dmitriy Matrenichev 34aabedd80
feat: more circular pkg from internal to pkg
This PR moves circular package from internal packages to the public pkg folder as the package is stable enough.

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
2022-07-06 14:39:40 +03:00

17 lines
623 B
Go

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
package circular
import "errors"
// ErrClosed is raised on read from closed Reader.
var ErrClosed = errors.New("reader is closed")
// ErrSeekBeforeStart is raised when seek goes beyond start of the file.
var ErrSeekBeforeStart = errors.New("seek before start")
// ErrOutOfSync is raised when reader got too much out of sync with the writer.
var ErrOutOfSync = errors.New("buffer overrun, read position overwritten")