github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/command/translatableerror/plugin_not_found_in_repository_error.go (about) 1 package translatableerror 2 3 type PluginNotFoundInRepositoryError struct { 4 BinaryName string 5 PluginName string 6 RepositoryName string 7 } 8 9 func (e PluginNotFoundInRepositoryError) Error() string { 10 return "Plugin {{.PluginName}} not found in repository {{.RepositoryName}}.\nUse '{{.BinaryName}} repo-plugins -r {{.RepositoryName}}' to list plugins available in the repo." 11 } 12 13 func (e PluginNotFoundInRepositoryError) Translate(translate func(string, ...interface{}) string) string { 14 return translate(e.Error(), map[string]interface{}{ 15 "PluginName": e.PluginName, 16 "RepositoryName": e.RepositoryName, 17 "BinaryName": e.BinaryName, 18 }) 19 }