github.com/rumpl/bof@v23.0.0-rc.2+incompatible/pkg/plugins/discovery_windows.go (about)

     1  package plugins // import "github.com/docker/docker/pkg/plugins"
     2  
     3  import (
     4  	"os"
     5  	"path/filepath"
     6  )
     7  
     8  var globalSpecsPaths = []string{filepath.Join(os.Getenv("programdata"), "docker", "plugins")}
     9  
    10  // SpecsPaths returns
    11  // { "%programdata%\docker\plugins" } on Windows,
    12  // { "/etc/docker/plugins", "/usr/lib/docker/plugins" } on Unix in non-rootless mode,
    13  // { "$XDG_CONFIG_HOME/docker/plugins", "$HOME/.local/lib/docker/plugins" } on Unix in rootless mode
    14  // with fallback to the corresponding path in non-rootless mode if $XDG_CONFIG_HOME or $HOME is not set.
    15  func SpecsPaths() []string {
    16  	return globalSpecsPaths
    17  }