Skip to content

@openfabr/cdf / Exports

@openfabr/cdf

Table of contents

Namespaces

For both project creators and package authors

For project creators

For package authors

For both project creators and package authors

CloudVendor: Object

A list of cloud vendors. The purpose of defining them is to regulate their names throughout the framework and all packages.

Defined in

src/lib/domain.ts:15

ToolingLanguage: Object

A list of IaC languages. The purpose of defining them is to regulate their names throughout the framework and all packages.

Defined in

src/lib/domain.ts:42

ToolingRuntime: Object

A list of IaC runtime. The purpose of defining them is to regulate their names throughout the framework and all packages.

Defined in

src/lib/domain.ts:29

InfraConfig<GC, NC, CC, SC, RC>: Object

Concrete class that models the configuration for an infra project when using a package. It has 5 top-level sections (general, network, components, services and relations), each of which is expected to extended by packages for their own needs.

Usually there is no need to extend this class.

Type parameters

Name Type
GC extends GeneralConfig
NC extends NetworkConfig
CC extends ComponentConfig
SC extends ServiceConfig
RC extends RelationConfig

Defined in

src/lib/config.ts:143

InfraPlan<IPC>: Object

Concrete class that carries both the generated infra baseline and all the outputs as a result.

Usually there is no need to extend this class.

Type parameters

Name Type
IPC extends InfraPlanConstructs

Defined in

src/lib/package.ts:43

RuntimeConfig<SC>: Object

Concrete class for a group of services sharing the same runtime.

Usually there is no need to extend this class.

Type parameters

Name Type
SC extends ServiceConfig

Defined in

src/lib/config.ts:61

TraitConfig<CC>: Object

Concrete class for a group of components sharing the same trait.

Usually there is no need to extend this class.

Type parameters

Name Type
CC extends ComponentConfig

Defined in

src/lib/config.ts:101

ComponentConfig: Object

Interface for a component segment in the configuration. It is expected to be extended by packages to carry detailed information about a particular component type.

Defined in

src/lib/config.ts:134

ConfigError: Object

Interface that offers a configuration error type which optionally indicates which field is the offending one. It is expected to be implemented.

Defined in

src/lib/domain.ts:97

GeneralConfig: Object

Interface for the top-level general section of the configuration. It can be extended by any packages if intended to.

Defined in

src/lib/config.ts:15

ImplError: Object

Interface that offers an implementation error type. It is expected to be implemented.

Defined in

src/lib/domain.ts:107

MessageAware: Object

Interface that offers a message field. It is expected to be implemented.

Defined in

src/lib/domain.ts:87

NameAware: Object

Interface that offers a URL-friendly name field. It is expected to be implemented.

Defined in

src/lib/domain.ts:57

NetworkConfig: Object

Interface for the top-level network section of the configuration. It can be extended by any packages if intended to.

Defined in

src/lib/config.ts:23

PlanError: Object

Interface that offers an planning error type. It is expected to be implemented.

Defined in

src/lib/domain.ts:115

RelationConfig: Object

Interface for a relation segment in the configuration. It is expected to be extended by packages to carry detailed information about a particular relation type.

Defined in

src/lib/config.ts:40

ServiceConfig: Object

Interface for a service segment in the configuration. It is expected to be extended by packages to carry detailed information about a particular service type.

Defined in

src/lib/config.ts:93

SubtypeAware: Object

Interface that offers a subtype field It is expected to be implemented, usually with TypeAware together.

Defined in

src/lib/domain.ts:77

TypeAware: Object

Interface that offers a type field. It is expected to be implemented.

Defined in

src/lib/domain.ts:67

InfraPlanOutputs

Ƭ InfraPlanOutputs: Map<string, any>

Short-hand type representing outputs from the infra baseline generated by a package. It is commonly used for information (such as displaying) purposes.

It should be used as-is. The map structure with any value offers flexibility.

Defined in

src/lib/package.ts:35