当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript core.CloudProviderRegistry类代码示例

本文整理汇总了TypeScript中@spinnaker/core.CloudProviderRegistry的典型用法代码示例。如果您正苦于以下问题:TypeScript CloudProviderRegistry类的具体用法?TypeScript CloudProviderRegistry怎么用?TypeScript CloudProviderRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CloudProviderRegistry类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: require

]).config(() => {
  CloudProviderRegistry.registerProvider('titus', {
    name: 'Titus',
    logo: {
      path: require('./logo/titus.logo.png'),
    },
    serverGroup: {
      transformer: 'titusServerGroupTransformer',
      detailsTemplateUrl: require('./serverGroup/details/serverGroupDetails.html'),
      detailsController: 'titusServerGroupDetailsCtrl',
      cloneServerGroupTemplateUrl: require('./serverGroup/configure/wizard/serverGroupWizard.html'),
      cloneServerGroupController: 'titusCloneServerGroupCtrl',
      commandBuilder: 'titusServerGroupCommandBuilder',
      configurationService: 'titusServerGroupConfigurationService',
      skipUpstreamStageCheck: true,
    },
    securityGroup: {
      reader: 'titusSecurityGroupReader',
      useProvider: 'aws',
    },
    loadBalancer: {
      LoadBalancersTag: AmazonLoadBalancersTag,
      useProvider: 'aws',
    },
    instance: {
      detailsTemplateUrl: require('./instance/details/instanceDetails.html'),
      detailsController: 'titusInstanceDetailsCtrl',
    },
  });
});
开发者ID:mizzy,项目名称:deck,代码行数:30,代码来源:titus.module.ts

示例2: require

 .config((cloudProviderRegistryProvider: CloudProviderRegistry) => {
   cloudProviderRegistryProvider.registerProvider('appengine', {
     name: 'App Engine',
     cache: {
       configurer: 'appengineCacheConfigurer',
     },
     instance: {
       detailsTemplateUrl: require('./instance/details/details.html'),
       detailsController: 'appengineInstanceDetailsCtrl',
     },
     serverGroup: {
       transformer: 'appengineServerGroupTransformer',
       detailsController: 'appengineServerGroupDetailsCtrl',
       detailsTemplateUrl: require('./serverGroup/details/details.html'),
       commandBuilder: 'appengineServerGroupCommandBuilder',
       cloneServerGroupController: 'appengineCloneServerGroupCtrl',
       cloneServerGroupTemplateUrl: require('./serverGroup/configure/wizard/serverGroupWizard.html'),
       skipUpstreamStageCheck: true,
     },
     loadBalancer: {
       transformer: 'appengineLoadBalancerTransformer',
       createLoadBalancerTemplateUrl: require('./loadBalancer/configure/wizard/wizard.html'),
       createLoadBalancerController: 'appengineLoadBalancerWizardCtrl',
       detailsTemplateUrl: require('./loadBalancer/details/details.html'),
       detailsController: 'appengineLoadBalancerDetailsCtrl',
     },
     logo: {
       path: require('./logo/appengine.logo.svg'),
     },
   });
 });
开发者ID:jcwest,项目名称:deck,代码行数:31,代码来源:appengine.module.ts

示例3: require

]).config(function() {
  CloudProviderRegistry.registerProvider('oracle', {
    name: 'Oracle',
    cache: {
      configurer: 'oracleCacheConfigurer',
    },
    image: {
      reader: 'oracleImageReader',
    },
    loadBalancer: {},
    serverGroup: {
      transformer: 'oracleServerGroupTransformer',
      detailsTemplateUrl: require('./serverGroup/details/serverGroupDetails.html'),
      detailsController: 'oracleServerGroupDetailsCtrl',
      commandBuilder: 'oracleServerGroupCommandBuilder',
      cloneServerGroupController: 'oracleCloneServerGroupCtrl',
      cloneServerGroupTemplateUrl: require('./serverGroup/configure/wizard/serverGroupWizard.html'),
      configurationService: 'oracleServerGroupConfigurationService',
    },
    instance: {
      detailsController: 'oracleInstanceDetailsCtrl',
      detailsTemplateUrl: require('./instance/details/instanceDetails.html'),
    },
    securityGroup: {
      reader: 'oracleSecurityGroupReader',
      transformer: 'oracleSecurityGroupTransformer',
      createSecurityGroupTemplateUrl: require('./securityGroup/configure/createSecurityGroup.html'),
      createSecurityGroupController: 'oracleCreateSecurityGroupCtrl',
    },
  });
});
开发者ID:mizzy,项目名称:deck,代码行数:31,代码来源:oracle.module.ts

示例4: require

]).config(() => {
  CloudProviderRegistry.registerProvider('kubernetes', {
    name: 'Kubernetes',
    skin: 'v1',
    defaultSkin: true,
    cache: {
      configurer: 'kubernetesCacheConfigurer',
    },
    search: {
      resultFormatter: 'kubernetesSearchResultFormatter',
    },
    logo: {
      path: require('../logo/kubernetes.logo.png'),
    },
    image: {
      reader: 'kubernetesImageReader',
    },
    instance: {
      detailsTemplateUrl: require('../instance/details/details.html'),
      detailsController: 'kubernetesInstanceDetailsController',
    },
    loadBalancer: {
      transformer: 'kubernetesLoadBalancerTransformer',
      detailsTemplateUrl: require('../loadBalancer/details/details.html'),
      detailsController: 'kubernetesLoadBalancerDetailsController',
      createLoadBalancerTemplateUrl: require('../loadBalancer/configure/wizard/createWizard.html'),
      createLoadBalancerController: 'kubernetesUpsertLoadBalancerController',
    },
    securityGroup: {
      reader: 'kubernetesSecurityGroupReader',
      transformer: 'kubernetesSecurityGroupTransformer',
      detailsTemplateUrl: require('../securityGroup/details/details.html'),
      detailsController: 'kubernetesSecurityGroupDetailsController',
      createSecurityGroupTemplateUrl: require('../securityGroup/configure/wizard/createWizard.html'),
      createSecurityGroupController: 'kubernetesUpsertSecurityGroupController',
    },
    serverGroup: {
      artifactExtractor: 'kubernetesServerGroupArtifactExtractor',
      skipUpstreamStageCheck: true,
      transformer: 'kubernetesServerGroupTransformer',
      detailsTemplateUrl: require('../serverGroup/details/details.html'),
      detailsController: 'kubernetesServerGroupDetailsController',
      cloneServerGroupController: 'kubernetesCloneServerGroupController',
      cloneServerGroupTemplateUrl: require('../serverGroup/configure/wizard/wizard.html'),
      commandBuilder: 'kubernetesServerGroupCommandBuilder',
      configurationService: 'kubernetesServerGroupConfigurationService',
      paramsMixin: 'kubernetesServerGroupParamsMixin',
    },
    unsupportedStageTypes: [
      'scaleManifest',
      'deployManifest',
      'deleteManifest',
      'undoRolloutManifest',
      'findArtifactsFromResource',
      'bakeManifest',
      'patchManifest',
    ],
  });
});
开发者ID:mizzy,项目名称:deck,代码行数:59,代码来源:kubernetes.v1.module.ts

示例5: require

]).config((cloudProviderRegistryProvider: CloudProviderRegistry) => {
  cloudProviderRegistryProvider.registerProvider('aws', {
    name: 'Amazon',
    logo: {
      path: require('./logo/amazon.logo.svg'),
    },
    cache: {
      configurer: 'awsCacheConfigurer',
    },
    image: {
      reader: 'awsImageReader',
    },
    serverGroup: {
      transformer: 'awsServerGroupTransformer',
      detailsTemplateUrl: require('./serverGroup/details/serverGroupDetails.html'),
      detailsController: 'awsServerGroupDetailsCtrl',
      cloneServerGroupTemplateUrl: require('./serverGroup/configure/wizard/serverGroupWizard.html'),
      cloneServerGroupController: 'awsCloneServerGroupCtrl',
      commandBuilder: 'awsServerGroupCommandBuilder',
      configurationService: 'awsServerGroupConfigurationService',
      scalingActivitiesEnabled: true,
    },
    instance: {
      instanceTypeService: 'awsInstanceTypeService',
      detailsTemplateUrl: require('./instance/details/instanceDetails.html'),
      detailsController: 'awsInstanceDetailsCtrl',
    },
    loadBalancer: {
      transformer: 'awsLoadBalancerTransformer',
      detailsTemplateUrl: require('./loadBalancer/details/loadBalancerDetails.html'),
      detailsController: 'awsLoadBalancerDetailsCtrl',
      createLoadBalancerTemplateUrl: require('./loadBalancer/configure/choice/awsLoadBalancerChoice.modal.html'),
      createLoadBalancerController: 'awsLoadBalancerChoiceCtrl',
      targetGroupDetailsTemplateUrl: require('./loadBalancer/details/targetGroupDetails.html'),
      targetGroupDetailsController: 'awsTargetGroupDetailsCtrl',
      ClusterContainer: AmazonLoadBalancerClusterContainer,
      LoadBalancersTag: AmazonLoadBalancersTag
    },
    securityGroup: {
      transformer: 'awsSecurityGroupTransformer',
      reader: 'awsSecurityGroupReader',
      detailsTemplateUrl: require('./securityGroup/details/securityGroupDetail.html'),
      detailsController: 'awsSecurityGroupDetailsCtrl',
      createSecurityGroupTemplateUrl: require('./securityGroup/configure/createSecurityGroup.html'),
      createSecurityGroupController: 'awsCreateSecurityGroupCtrl',
    },
    subnet: {
      renderer: 'awsSubnetRenderer',
    },
    search: {
      resultFormatter: 'awsSearchResultFormatter',
    },
    applicationProviderFields: {
      templateUrl: require('./applicationProviderFields/awsFields.html'),
    },
  });
}).run(() => {
开发者ID:jcwest,项目名称:deck,代码行数:57,代码来源:aws.module.ts

示例6: require

]).config(() => {
  CloudProviderRegistry.registerProvider('kubernetes', {
    name: 'Kubernetes',
    skin: 'v2',
    logo: {
      path: require('../logo/kubernetes.icon.svg'),
    },
    serverGroup: {
      cloneServerGroupController: 'kubernetesManifestWizardCtrl',
      cloneServerGroupTemplateUrl: require('./manifest/wizard/manifestWizard.html'),
      commandBuilder: 'kubernetesV2ServerGroupCommandBuilder',
      detailsController: 'kubernetesV2ServerGroupDetailsCtrl',
      detailsTemplateUrl: require('./serverGroup/details/details.html'),
      transformer: 'kubernetesV2ServerGroupTransformer',
    },
    serverGroupManager: {
      detailsTemplateUrl: require('./serverGroupManager/details/details.html'),
      detailsController: 'kubernetesV2ServerGroupManagerDetailsCtrl',
    },
    loadBalancer: {
      createLoadBalancerController: 'kubernetesManifestWizardCtrl',
      createLoadBalancerTemplateUrl: require('./manifest/wizard/manifestWizard.html'),
      detailsController: 'kubernetesV2LoadBalancerDetailsCtrl',
      detailsTemplateUrl: require('./loadBalancer/details/details.html'),
      transformer: 'kubernetesV2LoadBalancerTransformer',
    },
    securityGroup: {
      reader: 'kubernetesSecurityGroupReader',
      createSecurityGroupController: 'kubernetesManifestWizardCtrl',
      createSecurityGroupTemplateUrl: require('./manifest/wizard/manifestWizard.html'),
      detailsController: 'kubernetesV2SecurityGroupDetailsCtrl',
      detailsTemplateUrl: require('./securityGroup/details/details.html'),
      transformer: 'kubernetesV2SecurityGroupTransformer',
    },
    instance: {
      detailsController: 'kubernetesV2InstanceDetailsCtrl',
      detailsTemplateUrl: require('./instance/details/details.html'),
    },
    unsupportedStageTypes: [
      'deploy',
      'destroyServerGroup',
      'disableCluster',
      'disableServerGroup',
      'enableServerGroup',
      'findImage',
      'resizeServerGroup',
      'rollbackCluster',
      'runJob',
      'scaleDown',
      'scaleDownCluster',
      'shrinkCluster',
    ],
  });
});
开发者ID:mizzy,项目名称:deck,代码行数:54,代码来源:kubernetes.v2.module.ts

示例7: require

]).config(() => {
  CloudProviderRegistry.registerProvider('gce', {
    name: 'Google',
    logo: {
      path: require('./logo/gce.logo.png'),
    },
    cache: {
      configurer: 'gceCacheConfigurer',
    },
    image: {
      reader: 'gceImageReader',
    },
    serverGroup: {
      transformer: 'gceServerGroupTransformer',
      detailsTemplateUrl: require('./serverGroup/details/serverGroupDetails.html'),
      detailsController: 'gceServerGroupDetailsCtrl',
      cloneServerGroupTemplateUrl: require('./serverGroup/configure/wizard/serverGroupWizard.html'),
      cloneServerGroupController: 'gceCloneServerGroupCtrl',
      commandBuilder: 'gceServerGroupCommandBuilder',
      configurationService: 'gceServerGroupConfigurationService',
    },
    instance: {
      instanceTypeService: 'gceInstanceTypeService',
      detailsTemplateUrl: require('./instance/details/instanceDetails.html'),
      detailsController: 'gceInstanceDetailsCtrl',
      multiInstanceTaskTransformer: 'gceMultiInstanceTaskTransformer',
      customInstanceBuilderTemplateUrl: require('./serverGroup/configure/wizard/customInstance/customInstanceBuilder.html'),
    },
    loadBalancer: {
      transformer: 'gceLoadBalancerTransformer',
      setTransformer: 'gceLoadBalancerSetTransformer',
      detailsTemplateUrl: require('./loadBalancer/details/loadBalancerDetails.html'),
      detailsController: 'gceLoadBalancerDetailsCtrl',
      createLoadBalancerTemplateUrl: require('./loadBalancer/configure/choice/gceLoadBalancerChoice.modal.html'),
      createLoadBalancerController: 'gceLoadBalancerChoiceCtrl',
    },
    securityGroup: {
      transformer: 'gceSecurityGroupTransformer',
      reader: 'gceSecurityGroupReader',
      detailsTemplateUrl: require('./securityGroup/details/securityGroupDetail.html'),
      detailsController: 'gceSecurityGroupDetailsCtrl',
      createSecurityGroupTemplateUrl: require('./securityGroup/configure/createSecurityGroup.html'),
      createSecurityGroupController: 'gceCreateSecurityGroupCtrl',
    },
    subnet: {
      renderer: 'gceSubnetRenderer',
    },
    snapshotsEnabled: true,
    applicationProviderFields: {
      templateUrl: require('./applicationProviderFields/gceFields.html'),
    },
  });
});
开发者ID:emjburns,项目名称:deck,代码行数:53,代码来源:gce.module.ts

示例8: require

 .config((cloudProviderRegistryProvider: CloudProviderRegistry) => {
   cloudProviderRegistryProvider.registerProvider('openstack', {
     name: 'openstack',
     logo: {
       path: require('./logo/openstack.logo.png')
     },
     cache: {
       configurer: 'openstackCacheConfigurer',
     },
     search: {
       resultFormatter: 'openstackSearchResultFormatter',
     },
     image: {
       reader: 'openstackImageReader',
     },
     instance: {
       instanceTypeService: 'openstackInstanceTypeService',
       detailsTemplateUrl: require('./instance/details/instanceDetails.html'),
       detailsController: 'openstackInstanceDetailsCtrl',
     },
     securityGroup: {
       reader: 'openstackSecurityGroupReader',
       transformer: 'openstackSecurityGroupTransformer',
       detailsTemplateUrl: require('./securityGroup/details/details.html'),
       detailsController: 'openstackSecurityGroupDetailsController',
       createSecurityGroupTemplateUrl: require('./securityGroup/configure/wizard/createWizard.html'),
       createSecurityGroupController: 'openstackUpsertSecurityGroupController',
     },
     serverGroup: {
       transformer: 'openstackServerGroupTransformer',
       cloneServerGroupController: 'openstackCloneServerGroupCtrl',
       cloneServerGroupTemplateUrl: require('./serverGroup/configure/wizard/serverGroupWizard.html'),
       commandBuilder: 'openstackServerGroupCommandBuilder',
       configurationService: 'openstackServerGroupConfigurationService',
       detailsTemplateUrl: require('./serverGroup/details/serverGroupDetails.html'),
       detailsController: 'openstackServerGroupDetailsCtrl',
     },
     subnet: {
       renderer: 'openstackSubnetRenderer',
     },
     loadBalancer: {
       transformer: 'openstackLoadBalancerTransformer',
       detailsTemplateUrl: require('./loadBalancer/details/details.html'),
       detailsController: 'openstackLoadBalancerDetailsController',
       createLoadBalancerTemplateUrl: require('./loadBalancer/configure/wizard/createWizard.html'),
       createLoadBalancerController: 'openstackUpsertLoadBalancerController',
     }
   });
 });
开发者ID:robfletcher,项目名称:deck,代码行数:49,代码来源:openstack.module.ts

示例9: require

]).config(() => {
  CloudProviderRegistry.registerProvider('cloudfoundry', {
    name: 'Cloud Foundry',
    logo: {
      path: require('./logo/cf.logo.svg'),
    },
    loadBalancer: {
      transformer: 'cfLoadBalancerTransformer',
      detailsTemplateUrl: require('./loadBalancer/details/cloudFoundryLoadBalancerDetails.html'),
      detailsController: 'cloudfoundryLoadBalancerDetailsCtrl',
      CreateLoadBalancerModal: CloudFoundryNoLoadBalancerModal,
    },
    serverGroup: {
      skipUpstreamStageCheck: true,
      transformer: 'cfServerGroupTransformer',
      detailsActions: CloudFoundryServerGroupActions,
      detailsGetter: cfServerGroupDetailsGetter,
      detailsSections: [
        ServerGroupInformationSection,
        ApplicationManagerSection,
        MetricsSection,
        ServerGroupSizingSection,
        HealthCheckSection,
        PackageSection,
        BoundServicesSection,
        EvironmentVariablesSection,
      ],
      CloneServerGroupModal: CloudFoundryCreateServerGroupModal,
      commandBuilder: 'cfServerGroupCommandBuilder',
      scalingActivitiesEnabled: false, // FIXME enable?
    },
    search: {
      resultFormatter: 'cfSearchResultFormatter',
    },
    instance: {
      detailsTemplateUrl: require('./instance/details/cloudFoundryInstanceDetails.html'),
      detailsController: 'cfInstanceDetailsCtrl',
    },
  });
});
开发者ID:emjburns,项目名称:deck,代码行数:40,代码来源:cf.module.ts

示例10: editLoadBalancer

 public editLoadBalancer(index: number) {
   const config = this.cloudProviderRegistry.getValue('appengine', 'loadBalancer');
   this.$uibModal.open({
     templateUrl: config.createLoadBalancerTemplateUrl,
     controller: `${config.createLoadBalancerController} as ctrl`,
     size: 'lg',
     resolve: {
       application: () => this.$scope.application,
       loadBalancer: () => cloneDeep(this.$scope.stage.loadBalancers[index]),
       isNew: () => false,
       forPipelineConfig: () => true,
     }
   }).result.then((updatedLoadBalancer: ILoadBalancer) => {
     this.$scope.stage.loadBalancers[index] = updatedLoadBalancer;
   });
 }
开发者ID:jcwest,项目名称:deck,代码行数:16,代码来源:appengineEditLoadBalancerStage.ts


注:本文中的@spinnaker/core.CloudProviderRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。