MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / isSOPSEncrypted

Function isSOPSEncrypted

internal/ui/components/config_wizard.go:48–51  ·  view source on GitHub ↗

(removed) FilepathBase is removed in favor of filepath.Dir which is OS-agnostic isSOPSEncrypted checks if a config file appears to be SOPS encrypted.

(path string, data []byte)

Source from the content-addressed store, hash-verified

46
47// isSOPSEncrypted checks if a config file appears to be SOPS encrypted.
48func isSOPSEncrypted(path string, data []byte) bool {
49 // Use the config package's SOPS detection logic
50 return config.IsSOPSEncrypted(path, data)
51}
52
53// findSOPSRule walks up parent directories to find a .sops.yaml, returns true if found.
54func findSOPSRule(startDir string) bool {

Callers 2

NewConfigWizardPageFunction · 0.85

Calls 1

IsSOPSEncryptedFunction · 0.92

Tested by

no test coverage detected