2020-04-30 13:13:00 +00:00
|
|
|
package volumewatcher
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/nomad/nomad/structs"
|
|
|
|
)
|
|
|
|
|
2020-08-06 18:31:18 +00:00
|
|
|
// CSIVolumeRPC is a minimal interface of the Server, intended as an aid
|
2020-04-30 13:13:00 +00:00
|
|
|
// for testing logic surrounding server-to-server or server-to-client
|
|
|
|
// RPC calls and to avoid circular references between the nomad
|
|
|
|
// package and the volumewatcher
|
2020-08-06 18:31:18 +00:00
|
|
|
type CSIVolumeRPC interface {
|
|
|
|
Unpublish(args *structs.CSIVolumeUnpublishRequest, reply *structs.CSIVolumeUnpublishResponse) error
|
2020-04-30 13:13:00 +00:00
|
|
|
}
|