func (p *Plugin) BasePath() string {
	return p.Rootfs
}
BasePath returns the path to which all paths returned by the plugin are relative to.
For Plugin objects this returns the host path of the plugin container's rootfs.
package v2
import (
	"fmt"
	"strings"
	"sync"
	"github.com/docker/distribution/digest"
	"github.com/docker/docker/api/types"
	"github.com/docker/docker/pkg/plugingetter"
	"github.com/docker/docker/pkg/plugins"
)
type Plugin struct {
	mu              sync.RWMutex
	PluginObj       types.Plugin `json:"plugin"`  
	pClient         *plugins.Client
	refCount        int
	PropagatedMount string  
	Rootfs          string  
	Config   digest.Digest
	Blobsums []digest.Digest
}
const defaultPluginRuntimeDestination = "/run/docker/plugins"
type ErrInadequateCapability struct {
	cap string
}
func (e ErrInadequateCapability) Error() string {
	return fmt.Sprintf("plugin does not provide %q capability", e.cap)
}