/
left76
/
cli
Обзор
Документация
Войти
/
left76
/
cli
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
vendor/github.com/theupdateframework/notary/client/errors.go
48 строк
1 KB
Sebastiaan van Stijn
Move notary to its new location
30 окт 2017, 19:21
Не верифицирован
30 окт 2017, 19:21
6cd5806
Код
Авторство
О чём код?
package client import ( "fmt" "github.com/theupdateframework/notary/tuf/data" ) // ErrRepoNotInitialized is returned when trying to publish an uninitialized // notary repository type ErrRepoNotInitialized struct{} func (err ErrRepoNotInitialized) Error() string { return "repository has not been initialized" } // ErrInvalidRemoteRole is returned when the server is requested to manage // a key type that is not permitted type ErrInvalidRemoteRole struct { Role data.RoleName } func (err ErrInvalidRemoteRole) Error() string { return fmt.Sprintf( "notary does not permit the server managing the %s key", err.Role.String()) } // ErrInvalidLocalRole is returned when the client wants to manage // a key type that is not permitted type ErrInvalidLocalRole struct { Role data.RoleName } func (err ErrInvalidLocalRole) Error() string { return fmt.Sprintf( "notary does not permit the client managing the %s key", err.Role) } // ErrRepositoryNotExist is returned when an action is taken on a remote // repository that doesn't exist type ErrRepositoryNotExist struct { remote string gun data.GUN } func (err ErrRepositoryNotExist) Error() string { return fmt.Sprintf("%s does not have trust data for %s", err.remote, err.gun.String()) }