github.com/devdivbcp/moby@v17.12.0-ce-rc1.0.20200726071732-2d4bfdc789ad+incompatible/pkg/homedir/homedir_others.go (about)

     1  // +build !linux
     2  
     3  package homedir // import "github.com/docker/docker/pkg/homedir"
     4  
     5  import (
     6  	"errors"
     7  )
     8  
     9  // GetStatic is not needed for non-linux systems.
    10  // (Precisely, it is needed only for glibc-based linux systems.)
    11  func GetStatic() (string, error) {
    12  	return "", errors.New("homedir.GetStatic() is not supported on this system")
    13  }
    14  
    15  // GetRuntimeDir is unsupported on non-linux system.
    16  func GetRuntimeDir() (string, error) {
    17  	return "", errors.New("homedir.GetRuntimeDir() is not supported on this system")
    18  }
    19  
    20  // StickRuntimeDirContents is unsupported on non-linux system.
    21  func StickRuntimeDirContents(files []string) ([]string, error) {
    22  	return nil, errors.New("homedir.StickRuntimeDirContents() is not supported on this system")
    23  }
    24  
    25  // GetDataHome is unsupported on non-linux system.
    26  func GetDataHome() (string, error) {
    27  	return "", errors.New("homedir.GetDataHome() is not supported on this system")
    28  }
    29  
    30  // GetConfigHome is unsupported on non-linux system.
    31  func GetConfigHome() (string, error) {
    32  	return "", errors.New("homedir.GetConfigHome() is not supported on this system")
    33  }