|
@@ -101,6 +101,12 @@ func (p *Plugin) IsV1() bool {
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// ScopedPath returns the path scoped to the plugin's rootfs.
|
|
|
|
+// For v1 plugins, this always returns the path unchanged as v1 plugins run directly on the host.
|
|
|
|
+func (p *Plugin) ScopedPath(s string) string {
|
|
|
|
+ return s
|
|
|
|
+}
|
|
|
|
+
|
|
// NewLocalPlugin creates a new local plugin.
|
|
// NewLocalPlugin creates a new local plugin.
|
|
func NewLocalPlugin(name, addr string) *Plugin {
|
|
func NewLocalPlugin(name, addr string) *Plugin {
|
|
return &Plugin{
|
|
return &Plugin{
|