mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
libpod: Add stubs for non-linux builds
Note: this makes info.go linux-only since it mixes linux-specific and generic code. This should be addressed in a separate refactoring PR. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
This commit is contained in:
25
libpod/healthcheck_unsupported.go
Normal file
25
libpod/healthcheck_unsupported.go
Normal file
@ -0,0 +1,25 @@
|
||||
//go:build !linux
|
||||
// +build !linux
|
||||
|
||||
package libpod
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
)
|
||||
|
||||
// createTimer systemd timers for healthchecks of a container
|
||||
func (c *Container) createTimer() error {
|
||||
return errors.New("not implemented (*Container) createTimer")
|
||||
}
|
||||
|
||||
// startTimer starts a systemd timer for the healthchecks
|
||||
func (c *Container) startTimer() error {
|
||||
return errors.New("not implemented (*Container) startTimer")
|
||||
}
|
||||
|
||||
// removeTransientFiles removes the systemd timer and unit files
|
||||
// for the container
|
||||
func (c *Container) removeTransientFiles(ctx context.Context) error {
|
||||
return errors.New("not implemented (*Container) removeTransientFiles")
|
||||
}
|
Reference in New Issue
Block a user