當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript core.SETTINGS類代碼示例

本文整理匯總了TypeScript中@spinnaker/core.SETTINGS的典型用法代碼示例。如果您正苦於以下問題:TypeScript SETTINGS類的具體用法?TypeScript SETTINGS怎麽用?TypeScript SETTINGS使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了SETTINGS類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1:

import { IProviderSettings, SETTINGS } from '@spinnaker/core';

export interface IDcosProviderSettings extends IProviderSettings {
  defaults: {
    account?: string;
    dcosCluster?: string;
  };
}

export const DcosProviderSettings: IDcosProviderSettings = (SETTINGS.providers.dcos as IDcosProviderSettings) || {
  defaults: {},
};
if (DcosProviderSettings) {
  DcosProviderSettings.resetToOriginal = SETTINGS.resetProvider('dcos');
}
開發者ID:emjburns,項目名稱:deck,代碼行數:15,代碼來源:dcos.settings.ts

示例2:

import { IProviderSettings, SETTINGS } from '@spinnaker/core';

export interface IECSProviderSettings extends IProviderSettings {
  defaults: {
    account?: string;
    region?: string;
    zone?: string;
  };
}

export const IECSProviderSettings: IECSProviderSettings = (SETTINGS.providers.ecs as IECSProviderSettings) || {
  defaults: {},
};
if (IECSProviderSettings) {
  IECSProviderSettings.resetToOriginal = SETTINGS.resetProvider('ecs');
}
開發者ID:emjburns,項目名稱:deck,代碼行數:16,代碼來源:ecs.settings.ts

示例3:

import { IProviderSettings, SETTINGS } from '@spinnaker/core';

export interface IAppengineProviderSettings extends IProviderSettings {
  defaults: {
    account?: string;
    editLoadBalancerStageEnabled?: boolean;
    containerImageUrlDeployments?: boolean;
  };
}

export const AppengineProviderSettings: IAppengineProviderSettings = (SETTINGS.providers
  .appengine as IAppengineProviderSettings) || { defaults: {} };
if (AppengineProviderSettings) {
  AppengineProviderSettings.resetToOriginal = SETTINGS.resetProvider('appengine');
}
開發者ID:emjburns,項目名稱:deck,代碼行數:15,代碼來源:appengine.settings.ts

示例4:

import { IInstanceStorage, IProviderSettings, SETTINGS } from '@spinnaker/core';

export interface IGCEProviderSettings extends IProviderSettings {
  defaults: {
    account?: string;
    region?: string;
    zone?: string;
    instanceTypeStorage?: IInstanceStorage;
  };
}

export const GCEProviderSettings: IGCEProviderSettings = (SETTINGS.providers.gce as IGCEProviderSettings) || {
  defaults: {},
};
if (GCEProviderSettings) {
  GCEProviderSettings.resetToOriginal = SETTINGS.resetProvider('gce');
}
開發者ID:emjburns,項目名稱:deck,代碼行數:17,代碼來源:gce.settings.ts

示例5:

import { IProviderSettings, SETTINGS } from '@spinnaker/core';

export interface IKubernetesProviderSettings extends IProviderSettings {
  defaults: {
    account?: string;
    namespace?: string;
    proxy?: string;
    internalDNSNameTemplate?: string;
    instanceLinkTemplate?: string;
    rrb?: boolean;
    apiPrefix?: string;
  };
}

export const KubernetesProviderSettings: IKubernetesProviderSettings = (SETTINGS.providers
  .kubernetes as IKubernetesProviderSettings) || { defaults: {} };
if (KubernetesProviderSettings) {
  KubernetesProviderSettings.resetToOriginal = SETTINGS.resetProvider('kubernetes');
}
開發者ID:emjburns,項目名稱:deck,代碼行數:19,代碼來源:kubernetes.settings.ts

示例6:

export interface IAWSProviderSettings extends IProviderSettings {
  defaults: {
    account?: string;
    region?: string;
    iamRole?: string;
    subnetType?: string;
    vpc?: string;
  };
  defaultSecurityGroups?: string[];
  loadBalancers?: {
    inferInternalFlagFromSubnet: boolean;
    certificateTypes?: string[];
  };
  useAmiBlockDeviceMappings?: boolean;
  classicLaunchLockout?: number;
  classicLaunchWhitelist?: IClassicLaunchWhitelist[];
  metrics?: {
    customNamespaces?: string[];
  };
  minRootVolumeSize?: number;
  disableSpotPricing?: boolean;
}

export const AWSProviderSettings: IAWSProviderSettings = (SETTINGS.providers.aws as IAWSProviderSettings) || {
  defaults: {},
};
if (AWSProviderSettings) {
  AWSProviderSettings.resetToOriginal = SETTINGS.resetProvider('aws');
}
開發者ID:emjburns,項目名稱:deck,代碼行數:29,代碼來源:aws.settings.ts

示例7:

import { IProviderSettings, SETTINGS } from '@spinnaker/core';

export interface ICloudFoundryProviderSettings extends IProviderSettings {
  defaults: {
    account?: string;
  };
}

export const CloudFoundryProviderSettings: ICloudFoundryProviderSettings = (SETTINGS.providers
  .cloudfoundry as ICloudFoundryProviderSettings) || { defaults: {} };
if (CloudFoundryProviderSettings) {
  CloudFoundryProviderSettings.resetToOriginal = SETTINGS.resetProvider('cloudfoundry');
}
開發者ID:emjburns,項目名稱:deck,代碼行數:13,代碼來源:cf.settings.ts

示例8:

import { IProviderSettings, SETTINGS } from '@spinnaker/core';

export interface IOpenStackProviderSettings extends IProviderSettings {
  defaults: {
    account?: string;
    region?: string;
  };
}

export const OpenStackProviderSettings: IOpenStackProviderSettings = (SETTINGS.providers
  .openstack as IOpenStackProviderSettings) || { defaults: {} };
if (OpenStackProviderSettings) {
  OpenStackProviderSettings.resetToOriginal = SETTINGS.resetProvider('openstack');
}
開發者ID:emjburns,項目名稱:deck,代碼行數:14,代碼來源:openstack.settings.ts

示例9:

import { IProviderSettings, SETTINGS } from '@spinnaker/core';

export interface IOracleProviderSettings extends IProviderSettings {
  defaults: {
    account?: string;
    region?: string;
  };
}

export const OracleProviderSettings: IOracleProviderSettings = (SETTINGS.providers
  .oracle as IOracleProviderSettings) || { defaults: {} };
if (OracleProviderSettings) {
  OracleProviderSettings.resetToOriginal = SETTINGS.resetProvider('oracle');
}
開發者ID:emjburns,項目名稱:deck,代碼行數:14,代碼來源:oracle.settings.ts

示例10:

import { IProviderSettings, SETTINGS } from '@spinnaker/core';

export interface IAzureProviderSettings extends IProviderSettings {
  defaults: {
    account?: string;
    region?: string;
  };
}

export const AzureProviderSettings: IAzureProviderSettings = (SETTINGS.providers.azure as IAzureProviderSettings) || {
  defaults: {},
};
if (AzureProviderSettings) {
  AzureProviderSettings.resetToOriginal = SETTINGS.resetProvider('azure');
}
開發者ID:emjburns,項目名稱:deck,代碼行數:15,代碼來源:azure.settings.ts


注:本文中的@spinnaker/core.SETTINGS類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。