github.com/hernad/nomad@v1.6.112/helper/pluginutils/catalog/register_testing.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  //go:build !release
     5  // +build !release
     6  
     7  package catalog
     8  
     9  import "github.com/hernad/nomad/drivers/mock"
    10  
    11  // Register the mock driver with the builtin driver plugin catalog. All builtin
    12  // plugins that are intended for production use should be registered in
    13  // register.go as this file is not built as part of a release.
    14  func init() {
    15  	Register(mock.PluginID, mock.PluginConfig)
    16  }