github.com/hernad/nomad@v1.6.112/nomad/volumewatcher/interfaces.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  package volumewatcher
     5  
     6  import (
     7  	"github.com/hernad/nomad/nomad/structs"
     8  )
     9  
    10  // CSIVolumeRPC is a minimal interface of the Server, intended as an aid
    11  // for testing logic surrounding server-to-server or server-to-client
    12  // RPC calls and to avoid circular references between the nomad
    13  // package and the volumewatcher
    14  type CSIVolumeRPC interface {
    15  	Unpublish(args *structs.CSIVolumeUnpublishRequest, reply *structs.CSIVolumeUnpublishResponse) error
    16  }