Numerous Problems Multiplied
    Wondering what’s next for npm?Check out our public roadmap! »

    @codefresh-io/internal-service-config

    1.0.3 • Public • Published

    Internal Service Config

    This package provides all internal services names and their configurations.

    Available services names

    Note: DO NOT FORGET TO UPDATE THIS LIST AFTER ADDING NEW SERVICE CONFIGS.
    account-refferals
    api
    charts-manager
    cluster-provider
    context-manager
    dind-provider
    kube-integration
    payments
    pipeline-manager
    runtime-environment-manager
    hermes
    

    Services configs resolution

    Services configs are resolved from file names in camel case inside the ./services dir.

    For example, these files:

    api.js
    charts-manager.js
    pipeline-manager.js
    trigger-manager.js
    

    Will become:

    { 
        services: { 
            api: { uri: 'local.codefresh.io', port: 9007, protocol: 'http' },
            chartsManager: { uri: 'local.codefresh.io', port: 9009, protocol: 'http' },
            pipelineManager: { uri: 'local.codefresh.io', port: 9010, protocol: 'http' },
            triggerManager: { uri: 'local.codefresh.io', port: 9011, protocol: 'http' } 
        } 
    }
    

    Usage

    Retrieving service config

    Using @codefresh-io/internal-service-config:

    const { services } = require('@codefresh-io/internal-service-config');
    
    const pipelineManagerConfig = services.pipelineManager
    

    Keywords

    none

    Install

    npm i @codefresh-io/internal-service-config

    DownloadsWeekly Downloads

    149

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    6.71 kB

    Total Files

    17

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar