@Test public void getAvailableRegistries() throws Exception { Collection<String> availableRegistries = registryRepository.getAvailableRegistries(); Assert.assertTrue(!availableRegistries.isEmpty()); }
public Collection<String> getAvailableRegistries() { return ImmutableSet.<String>builder() .addAll(map.list()) .add(defaultRegistry.getConfig().getName()) .build(); }
RegistryRepository implements SupportSearch { public Collection<String> getAvailableRegistries() { return ImmutableSet.<String>builder() .addAll(map.list()) .add(defaultRegistry.getConfig().getName()) .build(); } }
RegistryRepository implements SupportSearch { public Collection<String> getAvailableRegistries() { return ImmutableSet.<String>builder() .addAll(map.list()) .add(defaultRegistry.getConfig().getName()) .build(); } RegistryRepository(KvMapperFactory mapperFactory,
                              DockerHubRegistry defaultRegistry,
                              RegistryFactory factory,
                              @Qualifier(RegistryEvent.BUS) MessageBus<RegistryEvent> eventBus); }
RegistryRepository implements SupportSearch { public Collection<String> getAvailableRegistries() { return ImmutableSet.<String>builder() .addAll(map.list()) .add(defaultRegistry.getConfig().getName()) .build(); } RegistryRepository(KvMapperFactory mapperFactory,
                              DockerHubRegistry defaultRegistry,
                              RegistryFactory factory,
                              @Qualifier(RegistryEvent.BUS) MessageBus<RegistryEvent> eventBus); void init(List<RegistryConfig> configs); void register(RegistryService registryService); void unRegister(String name); List<ImageCatalog> getCatalog(Collection<String> names); Collection<String> getAvailableRegistries(); String resolveRegistryNameByImageName(String imageName); RegistryService getRegistryByImageName(String imageName); RegistryService getByName(String registryName); @Override SearchResult search(String query, final int page, final int size); }
RegistryRepository implements SupportSearch { public Collection<String> getAvailableRegistries() { return ImmutableSet.<String>builder() .addAll(map.list()) .add(defaultRegistry.getConfig().getName()) .build(); } RegistryRepository(KvMapperFactory mapperFactory,
                              DockerHubRegistry defaultRegistry,
                              RegistryFactory factory,
                              @Qualifier(RegistryEvent.BUS) MessageBus<RegistryEvent> eventBus); void init(List<RegistryConfig> configs); void register(RegistryService registryService); void unRegister(String name); List<ImageCatalog> getCatalog(Collection<String> names); Collection<String> getAvailableRegistries(); String resolveRegistryNameByImageName(String imageName); RegistryService getRegistryByImageName(String imageName); RegistryService getByName(String registryName); @Override SearchResult search(String query, final int page, final int size);  }