mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
plugin/nomad: Add a Nomad plugin (#7467)
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
This commit is contained in:
9
plugin/nomad/ready.go
Normal file
9
plugin/nomad/ready.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package nomad
|
||||
|
||||
// Ready signals when the plugin is ready for use.
|
||||
// In case of Nomad, when the ping to the Nomad API is successful
|
||||
// the plugin is ready.
|
||||
func (n Nomad) Ready() bool {
|
||||
client, _ := n.getClient()
|
||||
return client != nil
|
||||
}
|
||||
Reference in New Issue
Block a user