Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
27bdc7d2
Unverified
Commit
27bdc7d2
authored
5 years ago
by
Danielle Lancashire
Browse files
Options
Download
Email Patches
Plain Diff
dynamicplugins: Improve documentation
parent
e61a55bd
Branches unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/dynamicplugins/registry.go
+10
-1
client/dynamicplugins/registry.go
with
10 additions
and
1 deletion
+10
-1
client/dynamicplugins/registry.go
+
10
-
1
View file @
27bdc7d2
// dynamicplugins is a package that manages dynamic plugins in Nomad.
// It exposes a reg
package
dynamicplugins
import
(
...
...
@@ -38,6 +40,7 @@ func NewRegistry(dispensers map[string]PluginDispenser) Registry {
}
}
// PluginInfo is the metadata that is stored by the registry for a given plugin.
type
PluginInfo
struct
{
Name
string
Type
string
...
...
@@ -56,10 +59,16 @@ type PluginConnectionInfo struct {
SocketPath
string
}
// EventType is the enum of events that will be emitted by a Registry's
// PluginsUpdatedCh.
type
EventType
string
const
(
EventTypeRegistered
EventType
=
"registered"
// EventTypeRegistered is emited by the Registry when a new plugin has been
// registered.
EventTypeRegistered
EventType
=
"registered"
// EventTypeDeregistered is emited by the Registry when a plugin has been
// removed.
EventTypeDeregistered
EventType
=
"deregistered"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help