MCPcopy
hub / github.com/FiloSottile/age / validPluginName

Function validPluginName

plugin/encode.go:72–83  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

70}
71
72func validPluginName(name string) bool {
73 if name == "" {
74 return false
75 }
76 allowed := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-._"
77 for _, r := range name {
78 if !strings.ContainsRune(allowed, r) {
79 return false
80 }
81 }
82 return true
83}
84
85// EncodeX25519Recipient encodes a native X25519 recipient from a
86// [crypto/ecdh.X25519] public key. It's meant for plugins that implement

Callers 4

EncodeIdentityFunction · 0.85
ParseIdentityFunction · 0.85
EncodeRecipientFunction · 0.85
ParseRecipientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…