fleet/server/mock/errors.go
Zach Wasserman fb32f0cf40
Remove kolide types and packages from backend (#974)
Generally renamed `kolide` -> `fleet`
2021-06-06 15:07:29 -07:00

20 lines
279 B
Go

package mock
type Error struct {
Message string
}
func (e *Error) Error() string {
return e.Message
}
// implement fleet.NotFoundError
func (e *Error) IsNotFound() bool {
return true
}
// implement fleet.AlreadyExistsError
func (e *Error) IsExists() bool {
return true
}