mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-02-16 17:42:20 +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
|
Modify(*specs.Spec) error
|
||||||
}
|
}
|
||||||
|
|
||||||
//go:generate moq -stub -out spec_mock.go . Spec
|
|
||||||
// Spec defines the operations to be performed on an OCI specification
|
// Spec defines the operations to be performed on an OCI specification
|
||||||
|
//
|
||||||
|
//go:generate moq -stub -out spec_mock.go . Spec
|
||||||
type Spec interface {
|
type Spec interface {
|
||||||
Load() (*specs.Spec, error)
|
Load() (*specs.Spec, error)
|
||||||
Flush() error
|
Flush() error
|
||||||
|
@ -16,8 +16,9 @@
|
|||||||
|
|
||||||
package constraints
|
package constraints
|
||||||
|
|
||||||
//go:generate moq -stub -out constraint_mock.go . Constraint
|
|
||||||
// Constraint represents a constraint that is to be evaluated
|
// Constraint represents a constraint that is to be evaluated
|
||||||
|
//
|
||||||
|
//go:generate moq -stub -out constraint_mock.go . Constraint
|
||||||
type Constraint interface {
|
type Constraint interface {
|
||||||
String() string
|
String() string
|
||||||
Assert() error
|
Assert() error
|
||||||
|
@ -23,8 +23,9 @@ import (
|
|||||||
"golang.org/x/mod/semver"
|
"golang.org/x/mod/semver"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:generate moq -stub -out property_mock.go . Property
|
|
||||||
// Property represents a property that is used to check requirements
|
// Property represents a property that is used to check requirements
|
||||||
|
//
|
||||||
|
//go:generate moq -stub -out property_mock.go . Property
|
||||||
type Property interface {
|
type Property interface {
|
||||||
Name() string
|
Name() string
|
||||||
Value() (string, error)
|
Value() (string, error)
|
||||||
|
Loading…
Reference in New Issue
Block a user