fleet/server/mock/errors.go
Tomas Touceda 5fb5995b83
Remove unneeded interfaces (#1779)
* Remove unneeded interfaces

* Remove unused code
2021-08-24 18:49:56 -03:00

20 lines
301 B
Go

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