github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/homedir/homedir_others.go (about) 1 // +build !linux 2 3 package homedir // import "github.com/demonoid81/moby/pkg/homedir" 4 5 import ( 6 "errors" 7 ) 8 9 // GetRuntimeDir is unsupported on non-linux system. 10 func GetRuntimeDir() (string, error) { 11 return "", errors.New("homedir.GetRuntimeDir() is not supported on this system") 12 } 13 14 // StickRuntimeDirContents is unsupported on non-linux system. 15 func StickRuntimeDirContents(files []string) ([]string, error) { 16 return nil, errors.New("homedir.StickRuntimeDirContents() is not supported on this system") 17 } 18 19 // GetDataHome is unsupported on non-linux system. 20 func GetDataHome() (string, error) { 21 return "", errors.New("homedir.GetDataHome() is not supported on this system") 22 } 23 24 // GetConfigHome is unsupported on non-linux system. 25 func GetConfigHome() (string, error) { 26 return "", errors.New("homedir.GetConfigHome() is not supported on this system") 27 }