github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/docs/internals/plugins/index.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: Plugins
     4  sidebar_title: Plugins
     5  description: Learn about how external plugins work in Nomad.
     6  ---
     7  
     8  # Plugins
     9  
    10  Nomad 0.9 introduced a plugin framework which allows users to extend the
    11  functionality of some components within Nomad. The design of the plugin system
    12  is inspired by the lessons learned from plugin systems implemented in other
    13  HashiCorp products such as Terraform and Vault.
    14  
    15  The following components are currently pluggable within Nomad:
    16  
    17  - [Task Drivers](/docs/internals/plugins/task-drivers)
    18  - [Devices](/docs/internals/plugins/devices)
    19  
    20  # Architecture
    21  
    22  The Nomad plugin framework uses the [go-plugin][goplugin] project to expose
    23  a language independent plugin interface. Plugins implement a set of gRPC
    24  services and methods which Nomad manages by running the plugin and calling the
    25  implemented RPCs. This means that plugins are free to be implemented in the
    26  author's language of choice.
    27  
    28  To make plugin development easier, a set of go interfaces and structs exist for
    29  each plugin type that abstract away go-plugin and the gRPC interface. The
    30  guides in this documentation reference these abstractions for ease of use.
    31  
    32  [goplugin]: https://github.com/hashicorp/go-plugin