Salta al contenuto principale
Versione: Successivo

Class: ConfigBuilder

Helper configuration builder constructor, used to build the configuration for testing or programatically creating a configuration.

Constructors

constructor

new ConfigBuilder(config?)

Parameters

NameType
config?Partial<ConfigYaml>

Defined in

builder.ts:21

Properties

config

Private config: ConfigYaml

Defined in

builder.ts:19

Methods

addAuth

addAuth(auth): ConfigBuilder

Parameters

NameType
authPartial<any>

Returns

ConfigBuilder

Defined in

builder.ts:45


addLogger

addLogger(log): ConfigBuilder

Parameters

NameType
logLoggerConfItem

Returns

ConfigBuilder

Defined in

builder.ts:50


addPackageAccess

addPackageAccess(pattern, pkgAccess): ConfigBuilder

Parameters

NameType
patternstring
pkgAccessPackageAccessYaml

Returns

ConfigBuilder

Defined in

builder.ts:29


addSecurity

addSecurity(security): ConfigBuilder

Parameters

NameType
securityPartial<Security>

Returns

ConfigBuilder

Defined in

builder.ts:40


addStorage

addStorage(storage): ConfigBuilder

Parameters

NameType
storagestring | object

Returns

ConfigBuilder

Defined in

builder.ts:55


addUplink(id, uplink): ConfigBuilder

Parameters

NameType
idstring
uplinkUpLinkConf

Returns

ConfigBuilder

Defined in

builder.ts:35


getAsYaml

getAsYaml(): string

Returns

string

Defined in

builder.ts:68


getConfig

getConfig(): ConfigYaml

Returns

ConfigYaml

Defined in

builder.ts:64


build

Static build(config?): ConfigBuilder

Parameters

NameType
config?Partial<ConfigYaml>

Returns

ConfigBuilder

Defined in

builder.ts:25