mirror of https://github.com/portainer/portainer
13 lines
292 B
TypeScript
13 lines
292 B
TypeScript
|
import {
|
||
|
Registry,
|
||
|
RegistryTypes,
|
||
|
} from '@/react/portainer/registries/types/registry';
|
||
|
|
||
|
export function getIsDockerHubRegistry(registry?: Registry | null) {
|
||
|
return (
|
||
|
!registry ||
|
||
|
registry.Type === RegistryTypes.DOCKERHUB ||
|
||
|
registry.Type === RegistryTypes.ANONYMOUS
|
||
|
);
|
||
|
}
|