drivers: fix func naming

This commit is contained in:
Nick Ethier
2019-01-16 22:01:18 -05:00
parent 994c66f7d7
commit 82d16f8f6c
10 changed files with 10 additions and 10 deletions

View File

@@ -271,7 +271,7 @@ func (d *Driver) RecoverTask(handle *drivers.TaskHandle) error {
if err != nil {
return err
}
return d.recoverPre09task(handle.Config, reattachConfig)
return d.recoverPre09Task(handle.Config, reattachConfig)
}
// If already attached to handle there's nothing to recover.

View File

@@ -10,7 +10,7 @@ import (
"github.com/hashicorp/nomad/plugins/drivers"
)
func (d *Driver) recoverPre09task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
func (d *Driver) recoverPre09Task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
config.ID = fmt.Sprintf("pre09-%s", uuid.Generate())
exec, pluginClient, err := executor.ReattachToPre09Executor(reattach,
d.logger.With("task_name", config.Name, "alloc_id", config.AllocID))

View File

@@ -259,7 +259,7 @@ func (d *Driver) RecoverTask(handle *drivers.TaskHandle) error {
if err != nil {
return err
}
return d.recoverPre09task(handle.Config, reattachConfig)
return d.recoverPre09Task(handle.Config, reattachConfig)
}
// If already attached to handle there's nothing to recover.

View File

@@ -10,7 +10,7 @@ import (
"github.com/hashicorp/nomad/plugins/drivers"
)
func (d *Driver) recoverPre09task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
func (d *Driver) recoverPre09Task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
config.ID = fmt.Sprintf("pre09-%s", uuid.Generate())
exec, pluginClient, err := executor.ReattachToPre09Executor(reattach,
d.logger.With("task_name", config.Name, "alloc_id", config.AllocID))

View File

@@ -257,7 +257,7 @@ func (d *Driver) RecoverTask(handle *drivers.TaskHandle) error {
if err != nil {
return err
}
return d.recoverPre09task(handle.Config, reattachConfig)
return d.recoverPre09Task(handle.Config, reattachConfig)
}
// If already attached to handle there's nothing to recover.

View File

@@ -10,7 +10,7 @@ import (
"github.com/hashicorp/nomad/plugins/drivers"
)
func (d *Driver) recoverPre09task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
func (d *Driver) recoverPre09Task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
config.ID = fmt.Sprintf("pre09-%s", uuid.Generate())
exec, pluginClient, err := executor.ReattachToPre09Executor(reattach,
d.logger.With("task_name", config.Name, "alloc_id", config.AllocID))

View File

@@ -263,7 +263,7 @@ func (d *Driver) RecoverTask(handle *drivers.TaskHandle) error {
if err != nil {
return err
}
return d.recoverPre0_9Task(handle.Config, reattachConfig)
return d.recoverPre09Task(handle.Config, reattachConfig)
}
// If already attached to handle there's nothing to recover.

View File

@@ -10,7 +10,7 @@ import (
"github.com/hashicorp/nomad/plugins/drivers"
)
func (d *Driver) recoverPre09task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
func (d *Driver) recoverPre09Task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
config.ID = fmt.Sprintf("pre09-%s", uuid.Generate())
exec, pluginClient, err := executor.ReattachToPre09Executor(reattach,
d.logger.With("task_name", config.Name, "alloc_id", config.AllocID))

View File

@@ -370,7 +370,7 @@ func (d *Driver) RecoverTask(handle *drivers.TaskHandle) error {
if err != nil {
return err
}
return d.recoverPre09task(handle.Config, reattachConfig)
return d.recoverPre09Task(handle.Config, reattachConfig)
}
// If already attached to handle there's nothing to recover.

View File

@@ -10,7 +10,7 @@ import (
"github.com/hashicorp/nomad/plugins/drivers"
)
func (d *Driver) recoverPre09task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
func (d *Driver) recoverPre09Task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
config.ID = fmt.Sprintf("pre09-%s", uuid.Generate())
exec, pluginClient, err := executor.ReattachToPre09Executor(reattach,
d.logger.With("task_name", config.Name, "alloc_id", config.AllocID))