MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / PluginName

Method PluginName

cli/internal/specs/v0/source.go:27–32  ·  view source on GitHub ↗

PluginName returns the name of the plugin from the connection string variable. Note that `Connection` gets string replaced with the actual connection value during the sync process, so calling this function will only work before the sync process starts.

()

Source from the content-addressed store, hash-verified

25// Note that `Connection` gets string replaced with the actual connection value during the sync
26// process, so calling this function will only work before the sync process starts.
27func (b *BackendOptions) PluginName() string {
28 if b == nil || !strings.HasPrefix(b.Connection, "@@plugins.") {
29 return ""
30 }
31 return strings.Split(b.Connection, ".")[1]
32}
33
34// Source plugin spec
35type Source struct {

Callers 2

syncFunction · 0.80

Calls

no outgoing calls

Tested by 1