mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-30 08:16:57 +00:00
48d5a1cd1a
Signed-off-by: Evan Lezar <elezar@nvidia.com>
24 lines
642 B
Go
24 lines
642 B
Go
package specerror
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
rfc2119 "github.com/opencontainers/runtime-tools/error"
|
|
)
|
|
|
|
// define error codes
|
|
const (
|
|
// DefaultRuntimeLinuxSymlinks represents "While creating the container (step 2 in the lifecycle), runtimes MUST create default symlinks if the source file exists after processing `mounts`."
|
|
DefaultRuntimeLinuxSymlinks Code = 0xf001 + iota
|
|
)
|
|
|
|
var (
|
|
devSymbolicLinksRef = func(version string) (reference string, err error) {
|
|
return fmt.Sprintf(referenceTemplate, version, "runtime-linux.md#dev-symbolic-links"), nil
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
register(DefaultRuntimeLinuxSymlinks, rfc2119.Must, devSymbolicLinksRef)
|
|
}
|