import { ClusterProviderV1 } from "../../contract/clusterprovider/v1" ; import { ClusterProviderRegistry } from "../../../components/clusterprovider/clusterproviderregistry" ; export function impl ( registry ) { return new ClusterProviderV1Impl ( registry ) ; } class ClusterProviderV1Impl implements ClusterProviderV1 { constructor ( private readonly registry ) { } async register ( clusterProvider ) { this . registry . register ( clusterProvider ) ; } list ( ) { return this . registry . list ( ) ; } }