Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 673 Bytes
package serviceaccount
import "github.com/giantswarm/microerror"
var invalidConfigError = &microerror.Error{
Kind: "invalidConfigError",
}
// IsInvalidConfig asserts invalidConfigError.
func IsInvalidConfig(err error) bool {
return microerror.Cause(err) == invalidConfigError
}
var notFoundError = &microerror.Error{
Kind: "notFoundError",
}
// IsNotFound asserts notFoundError.
func IsNotFound(err error) bool {
return microerror.Cause(err) == notFoundError
}
var wrongTypeError = &microerror.Error{
Kind: "wrongTypeError",
}
// IsWrongTypeError asserts wrongTypeError.
func IsWrongTypeError(err error) bool {
return microerror.Cause(err) == wrongTypeError
}
You can’t perform that action at this time.