github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/pkg/homedir/homedir_others.go (about)

     1  //go:build !linux
     2  
     3  package homedir // import "github.com/Prakhar-Agarwal-byte/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  }
    28  
    29  // GetLibHome is unsupported on non-linux system.
    30  func GetLibHome() (string, error) {
    31  	return "", errors.New("homedir.GetLibHome() is not supported on this system")
    32  }