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

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