mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
[no-relnotes] Update moq to use rm and goimports
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -19,7 +19,7 @@ package oci
|
||||
// Runtime is an interface for a runtime shim. The Exec method accepts a list
|
||||
// of command line arguments, and returns an error / nil.
|
||||
//
|
||||
//go:generate moq -rm -stub -out runtime_mock.go . Runtime
|
||||
//go:generate moq -rm -fmt=goimports -stub -out runtime_mock.go . Runtime
|
||||
type Runtime interface {
|
||||
Exec([]string) error
|
||||
String() string
|
||||
|
||||
@@ -33,7 +33,7 @@ type SpecModifier interface {
|
||||
|
||||
// Spec defines the operations to be performed on an OCI specification
|
||||
//
|
||||
//go:generate moq -stub -out spec_mock.go . Spec
|
||||
//go:generate moq -rm -fmt=goimports -stub -out spec_mock.go . Spec
|
||||
type Spec interface {
|
||||
Load() (*specs.Spec, error)
|
||||
Flush() error
|
||||
|
||||
Reference in New Issue
Block a user