Class: ConfigBuilder
Helper configuration builder constructor, used to build the configuration for testing or programatically creating a configuration.
Constructors
constructor
• new ConfigBuilder(config?
)
Parameters
Name | Type |
---|---|
config? | Partial <ConfigYaml > |
Defined in
Properties
config
• Private
config: ConfigYaml
Defined in
Methods
addAuth
▸ addAuth(auth
): ConfigBuilder
Parameters
Name | Type |
---|---|
auth | Partial <any > |
Returns
Defined in
addLogger
▸ addLogger(log
): ConfigBuilder
Parameters
Name | Type |
---|---|
log | LoggerConfItem |
Returns
Defined in
addPackageAccess
▸ addPackageAccess(pattern
, pkgAccess
): ConfigBuilder
Parameters
Name | Type |
---|---|
pattern | string |
pkgAccess | PackageAccessYaml |
Returns
Defined in
addSecurity
▸ addSecurity(security
): ConfigBuilder
Parameters
Name | Type |
---|---|
security | Partial <Security > |
Returns
Defined in
addStorage
▸ addStorage(storage
): ConfigBuilder
Parameters
Name | Type |
---|---|
storage | string | object |
Returns
Defined in
addUplink
▸ addUplink(id
, uplink
): ConfigBuilder
Parameters
Name | Type |
---|---|
id | string |
uplink | UpLinkConf |
Returns
Defined in
getAsYaml
▸ getAsYaml(): string
Returns
string
Defined in
getConfig
▸ getConfig(): ConfigYaml
Returns
ConfigYaml
Defined in
build
▸ Static
build(config?
): ConfigBuilder
Parameters
Name | Type |
---|---|
config? | Partial <ConfigYaml > |