mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
3.9 KiB
3.9 KiB
id | title | sidebar_label | sidebar_position | custom_edit_url |
---|---|---|---|---|
ConfigBuilder | Class: ConfigBuilder | ConfigBuilder | 0 | null |
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 > |