Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

484 B
Raw Blame
//go:build !unix

package agenthelper

import (
	"errors"
	"os"
)

func openFileNoFollow(string) (*os.File, error) {
	return nil, errors.New("privileged update activation is supported only on Unix")
}

func StrictRootOwnedFile(*os.File) error {
	return errors.New("root ownership validation is supported only on Unix")
}

func FileOwnedByUID(uint32) func(*os.File) error {
	return func(*os.File) error {
		return errors.New("file ownership validation is supported only on Unix")
	}
}