2021-08-23 09:14:53 -04:00
|
|
|
//go:build !linux
|
2016-12-16 04:50:14 -05:00
|
|
|
// +build !linux
|
|
|
|
|
2018-02-05 16:05:59 -05:00
|
|
|
package homedir // import "github.com/docker/docker/pkg/homedir"
|
2016-12-16 04:50:14 -05:00
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
2018-10-15 03:52:53 -04:00
|
|
|
// GetRuntimeDir is unsupported on non-linux system.
|
|
|
|
func GetRuntimeDir() (string, error) {
|
|
|
|
return "", errors.New("homedir.GetRuntimeDir() is not supported on this system")
|
|
|
|
}
|
|
|
|
|
|
|
|
// StickRuntimeDirContents is unsupported on non-linux system.
|
|
|
|
func StickRuntimeDirContents(files []string) ([]string, error) {
|
|
|
|
return nil, errors.New("homedir.StickRuntimeDirContents() is not supported on this system")
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetDataHome is unsupported on non-linux system.
|
|
|
|
func GetDataHome() (string, error) {
|
|
|
|
return "", errors.New("homedir.GetDataHome() is not supported on this system")
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetConfigHome is unsupported on non-linux system.
|
|
|
|
func GetConfigHome() (string, error) {
|
|
|
|
return "", errors.New("homedir.GetConfigHome() is not supported on this system")
|
|
|
|
}
|