import { DocLinksStart } from 'kibana/public' ; import { RepositoryType } from '../../../common/types' ; import { REPOSITORY_TYPES } from '../../../common' ; export const getRepositoryTypeDocUrl = ( docLinks , type ) => { switch ( type ) { case REPOSITORY_TYPES . fs : return docLinks . links . snapshotRestore . registerSharedFileSystem ; case REPOSITORY_TYPES . url : return `${ docLinks . links . snapshotRestore . registerUrl }` ; case REPOSITORY_TYPES . source : return `${ docLinks . links . snapshotRestore . registerSourceOnly }` ; case REPOSITORY_TYPES . s3 : return `${ docLinks . links . plugins . s3Repo }` ; case REPOSITORY_TYPES . hdfs : return `${ docLinks . links . plugins . hdfsRepo }` ; case REPOSITORY_TYPES . azure : return `${ docLinks . links . plugins . azureRepo }` ; case REPOSITORY_TYPES . gcs : return `${ docLinks . links . plugins . gcsRepo }` ; default : return `${ docLinks . links . snapshotRestore . guide }` ; } } ;