mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Run go fmt
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
2b5eeb8d24
commit
ae2a683929
@ -30,8 +30,9 @@ type SpecModifier interface {
|
||||
Modify(*specs.Spec) error
|
||||
}
|
||||
|
||||
//go:generate moq -stub -out spec_mock.go . Spec
|
||||
// Spec defines the operations to be performed on an OCI specification
|
||||
//
|
||||
//go:generate moq -stub -out spec_mock.go . Spec
|
||||
type Spec interface {
|
||||
Load() (*specs.Spec, error)
|
||||
Flush() error
|
||||
|
@ -16,8 +16,9 @@
|
||||
|
||||
package constraints
|
||||
|
||||
//go:generate moq -stub -out constraint_mock.go . Constraint
|
||||
// Constraint represents a constraint that is to be evaluated
|
||||
//
|
||||
//go:generate moq -stub -out constraint_mock.go . Constraint
|
||||
type Constraint interface {
|
||||
String() string
|
||||
Assert() error
|
||||
|
@ -23,8 +23,9 @@ import (
|
||||
"golang.org/x/mod/semver"
|
||||
)
|
||||
|
||||
//go:generate moq -stub -out property_mock.go . Property
|
||||
// Property represents a property that is used to check requirements
|
||||
//
|
||||
//go:generate moq -stub -out property_mock.go . Property
|
||||
type Property interface {
|
||||
Name() string
|
||||
Value() (string, error)
|
||||
|
Loading…
Reference in New Issue
Block a user