github.com/MaximeAubanel/moby@v1.13.1/volume/volume_unsupported.go (about)

     1  // +build !linux
     2  
     3  package volume
     4  
     5  import (
     6  	"fmt"
     7  	"runtime"
     8  
     9  	mounttypes "github.com/docker/docker/api/types/mount"
    10  )
    11  
    12  // ConvertTmpfsOptions converts *mounttypes.TmpfsOptions to the raw option string
    13  // for mount(2).
    14  func ConvertTmpfsOptions(opt *mounttypes.TmpfsOptions, readOnly bool) (string, error) {
    15  	return "", fmt.Errorf("%s does not support tmpfs", runtime.GOOS)
    16  }