(repositoryName string)
| 45 | } |
| 46 | |
| 47 | func (actor Actor) GetPluginRepository(repositoryName string) (configv3.PluginRepository, error) { |
| 48 | repositoryNameLowered := strings.ToLower(repositoryName) |
| 49 | |
| 50 | for _, repository := range actor.config.PluginRepositories() { |
| 51 | if repositoryNameLowered == strings.ToLower(repository.Name) { |
| 52 | return repository, nil |
| 53 | } |
| 54 | } |
| 55 | return configv3.PluginRepository{}, actionerror.RepositoryNotRegisteredError{Name: repositoryName} |
| 56 | } |
| 57 | |
| 58 | func (actor Actor) IsPluginRepositoryRegistered(repositoryName string) bool { |
| 59 | for _, repository := range actor.config.PluginRepositories() { |
nothing calls this directly
no test coverage detected