MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / getPlugin

Method getPlugin

internal/cnpi/plugin/client/client.go:38–47  ·  view source on GitHub ↗
(pluginName string)

Source from the content-addressed store, hash-verified

36}
37
38func (data *data) getPlugin(pluginName string) (connection.Interface, error) {
39 for idx := range data.plugins {
40 plugin := data.plugins[idx]
41 if plugin.Name() == pluginName {
42 return plugin, nil
43 }
44 }
45
46 return nil, ErrPluginNotLoaded
47}
48
49func (data *data) MetadataList() []connection.Metadata {
50 result := make([]connection.Metadata, len(data.plugins))

Callers 2

innerBackupMethod · 0.95
HasPluginMethod · 0.95

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected