@backstage/catalog-model
Home > @backstage/catalog-model
Types and validators that help describe the model of a Backstage Catalog
Classes
Class |
Description |
---|---|
Contains various helper validation and normalization functions that can be composed to form a Validator. | |
Sets a default namespace if none was set. | |
Ensures that the format of individual fields of the entity envelope is valid. | |
DefaultParentPolicy is an EntityPolicy that updates group entities with a parent of last resort. This ensures that, while we preserve any existing group hierarchies, we can guarantee that there is a single global root of the group hierarchy. | |
Contains validation functions that match the Kubernetes spec, usable to build a catalog that is compatible with those rule sets. | |
Ensures that there are no foreign root fields in the entity. | |
Ensures that the entity spec is valid according to a schema. |
Functions
Function |
Description |
---|---|
Creates a validation function that takes some arbitrary data, and either returns that data cast to an EntityEnvelope (or the given subtype) if it matches that schema, or throws a describing the errors. | |
Creates a validation function that takes some arbitrary data, and either returns that data cast to a | |
Creates a validation function that takes some arbitrary data, and either returns that data cast to an Entity (or the given subtype) if it matches that schema, or throws a describing the errors. | |
Extracts the kind, namespace and name that form the compound entity ref triplet of the given entity. | |
Returns the source code location of the Entity, to the extent that one exists. | |
Creates a Validators object from | |
Parses an entity reference, either on string or compound form, and returns a structure with a name, and optional kind and namespace. | |
Parses a string form location reference. | |
Takes an entity or entity name/reference, and returns the string form of an entity ref. | |
Turns a location ref into its string form. |
Interfaces
Interface |
Description |
---|---|
Backstage API kind Entity. APIs describe the interfaces for Components to communicate. | |
Backstage catalog Component kind Entity. Represents a single, individual piece of software. | |
Backstage Domain kind Entity. Domains group Systems together. | |
Backstage catalog Group kind Entity. | |
Backstage catalog Location kind Entity. | |
Backstage catalog Resource kind Entity. Represents infrastructure required to operate Components. | |
Backstage catalog System kind Entity. Systems group Components, Resources and APIs together. | |
Backstage catalog User kind Entity. |
Variables
Variable |
Description |
---|---|
Annotation for linking to entity edit page from catalog pages. | |
Annotation for specifying the Certificate Authority of an API server for a Kubernetes cluster | |
Annotation for specifying the API server of a Kubernetes cluster | |
Annotation for specifying the auth provider for a Kubernetes cluster | |
Entity annotation containing the location from which the entity is sourced. | |
Entity annotation containing the originally sourced location which ultimately led to this entity being ingested. | |
Entity annotation pointing to the source (e.g. source code repository root or similar) for this entity. | |
Annotation for linking to entity page from catalog pages. | |
The namespace that entities without an explicit namespace fall into. | |
Provides helpers for enforcing a set of EntityPolicy in an | |
A relation of an API being consumed, typically by a component. Reversed direction of RELATION_CONSUMES_API. | |
A relation from an API to its provider entity (typically a component). Reversed direction of RELATION_PROVIDES_API. | |
A relation from a child to a parent entity, used for example to describe the organizational structure between groups. Reversed direction of RELATION_PARENT_OF. | |
A relation with an API entity, typically from a component. Reversed direction of RELATION_API_CONSUMED_BY. | |
A relation denoting a reverse dependency by another entity. Reversed direction of RELATION_DEPENDS_ON. | |
A relation denoting a dependency on another entity. Reversed direction of RELATION_DEPENDENCY_OF. | |
A relation from a group to its member, typically a user in a group. Reversed direction of RELATION_MEMBER_OF. | |
A relation from a containing entity to a contained entity. Reversed direction of RELATION_PART_OF. | |
A membership relation, typically for users in a group. Reversed direction of RELATION_HAS_MEMBER. | |
An ownership relation where the owner is usually an organizational entity (user or group), and the other entity can be anything. Reversed direction of RELATION_OWNER_OF. | |
A relationship from an owner to the owned entity. Reversed direction of RELATION_OWNED_BY. | |
A parent/child relation to build up a tree, used for example to describe the organizational structure between groups. Reversed direction of RELATION_CHILD_OF. | |
A part/whole relation, typically for components in a system and systems in a domain. Reversed direction of RELATION_HAS_PART. | |
A relation from an API provider entity (typically a component) to the API. Reversed direction of RELATION_API_PROVIDED_BY. | |
Type Aliases
Type Alias |
Description |
---|---|
All parts of a complete entity ref, forming a full kind-namespace-name triplet. | |
The parts of the format that's common to all versions/kinds of entity. | |
The envelope skeleton parts of an entity - whatever is necessary to be able to give it a ref and pass to further validation / policy checking. | |
A link to external information that is related to the entity. | |
Metadata fields common to all versions/kinds of entity. | |
A policy for validation or mutation to be applied to entities as they are entering the system. | |
A relation of a specific type to another entity in the catalog. | |
Validates entities of a certain kind. | |
Type alias for implementing validators of various entity objects. |