mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
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
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
//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"))
|
||||
}
|
||||
Reference in New Issue
Block a user