All checks were successful
Vulncheck / Vulncheck (push) Successful in 1m12s
Pre-commit hooks / Pre-commit (push) Successful in 1m28s
Build / Build Components (push) Successful in 1m49s
Tests and linters / Run gofumpt (push) Successful in 3m11s
Tests and linters / Staticcheck (push) Successful in 3m32s
Tests and linters / Lint (push) Successful in 3m37s
Tests and linters / Tests with -race (push) Successful in 3m39s
Tests and linters / Tests (push) Successful in 4m0s
Tests and linters / gopls check (push) Successful in 4m11s
OCI image / Build container images (push) Successful in 4m29s
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
17 lines
368 B
Go
17 lines
368 B
Go
package errors
|
|
|
|
import (
|
|
apistatus "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client/status"
|
|
)
|
|
|
|
func ErrAPEManagerAccessDenied(reason string) error {
|
|
err := new(apistatus.APEManagerAccessDenied)
|
|
err.WriteReason(reason)
|
|
return err
|
|
}
|
|
|
|
func ErrAPEManagerInvalidArgument(msg string) error {
|
|
err := new(apistatus.InvalidArgument)
|
|
err.SetMessage(msg)
|
|
return err
|
|
}
|