MCPcopy Index your code
hub / github.com/cloudfoundry/cli / GetPluginRepository

Method GetPluginRepository

actor/pluginaction/plugin_repository.go:47–56  ·  view source on GitHub ↗
(repositoryName string)

Source from the content-addressed store, hash-verified

45}
46
47func (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
58func (actor Actor) IsPluginRepositoryRegistered(repositoryName string) bool {
59 for _, repository := range actor.config.PluginRepositories() {

Callers

nothing calls this directly

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 1

PluginRepositoriesMethod · 0.65

Tested by

no test coverage detected