docs/content/en/extensions/adapters/_index.md
Adapters allow Meshery to interface with the different cloud native infrastructure. Review the list of all available Meshery Adapters. See the Meshery Architecture diagrams for visuals on how adapters relate to other Meshery components. Meshery upholds the following guiding principles for adapter design:
Meshery communicates with adapters over gRPC. Adapters establish communication with the cloud native infrastructure. Adapters have a predefined set of operations which are grouped based on predefined operation types.
The predefined operation types are:
Common libraries are used to avoid code duplication and apply DRY.
The code hierarchy is pluggable and independent from one another. There can be N number of packages depending upon the use case.
errors/ - holds the implementations and the error handlers and error codes which are used across projects.logger/ - holds the implementations of logging handler and custom attributes to add if any.utils/ - holds all the utility functions that are specific to meshery projects and are to be used generically across all of them.tracing/ - holds the implementations of tracing handlers with different tracing providers like jaeger,newrelic, etc.Each package inside a meshkit is a handler interface implementation, the implementation could be from any third-party packages.
This section contains a high level overview of the meshery-adapter-library, its purpose and architecture. For details, the reader is referred to the documentation and the code in the repository.
The main purpose of the meshery-adapter-library is to:
Figure: Displaying Meshery Adapter library architecture along with an example of integration
The library consists of interfaces and default implementations for the main and common functionality of an adapter. It also provides a mini-framework that runs the gRPC adapter service, calling the functions of handlers injected by the adapter code. This is represented in an UML-ish style in the figure pictured. The library is used in all of Meshery's adapters.