mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
10 lines
238 B
Go
10 lines
238 B
Go
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
|
|
}
|