()
| 64 | } |
| 65 | |
| 66 | func pluginCoords() pluginCoordinates { |
| 67 | p := defaultPlugin |
| 68 | if v := os.Getenv(envPluginRegistry); v != "" { |
| 69 | p.Registry = v |
| 70 | } |
| 71 | if v := os.Getenv(envPluginPath); v != "" { |
| 72 | p.Path = v |
| 73 | } |
| 74 | if v := os.Getenv(envPluginVersion); v != "" { |
| 75 | p.Version = v |
| 76 | } |
| 77 | return p |
| 78 | } |
| 79 | |
| 80 | // sourceVersion is one entry of the platform destination's `source_versions` |
| 81 | // spec field — the source plugin path+version the platform gates on. JSON tags |
no outgoing calls
no test coverage detected