Files
pmg/truststore/truststore_unsupported.go
T
Abhisek DattaandGitHub 4f0db15ede feat: Add opt-in support for proxy CA cert installation (#318)
* feat: Add opt-in support for proxy CA cert installation

* fix: Code review fixes

* fix: Code review fixes

* fix: Code review fixes

* fix: Code review fixes

* fix: Code review fixes

* docs: Add limitation for MacOS MDM script
2026-06-03 23:15:02 +05:30

25 lines
867 B
Go

//go:build !darwin && !linux && !windows
// +build !darwin,!linux,!windows
package truststore
import (
"errors"
"github.com/safedep/dry/usefulerror"
"github.com/safedep/pmg/errcodes"
)
func installPlatform(_ []byte, _ Scope) error { return unsupportedPlatformError() }
func uninstallPlatform(_ string, _ Scope) error { return unsupportedPlatformError() }
func statusPlatform(_ string) (bool, bool, error) { return false, false, unsupportedPlatformError() }
func userScopeSupportedPlatform() bool { return false }
func unsupportedPlatformError() error {
return usefulerror.NewUsefulError().
WithCode(errcodes.UnsupportedPlatform).
WithHumanError("trust store operations are not supported on this platform").
WithHelp("Use PMG's default env-var trust injection, or install the CA manually").
Wrap(errors.New("unsupported platform"))
}