File: criu_unsupported.go

package info (click to toggle)
golang-github-checkpoint-restore-go-criu 7.2.0%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 1,796 kB
  • sloc: makefile: 231; ansic: 195; python: 137; sh: 110
file content (18 lines) | stat: -rw-r--r-- 307 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//go:build !linux
// +build !linux

package utils

import "fmt"

func CheckForCriu(version int) error {
	return fmt.Errorf("CRIU not supported on this platform")
}

func IsMemTrack() bool {
	return false
}

func GetCriuVersion() (int, error) {
	return 0, fmt.Errorf("CRIU not supported in this platform")
}