github.com/docker/engine@v22.0.0-20211208180946-d456264580cf+incompatible/layer/filestore_unix.go (about)

     1  //go:build !windows
     2  // +build !windows
     3  
     4  package layer // import "github.com/docker/docker/layer"
     5  
     6  import "runtime"
     7  
     8  // setOS writes the "os" file to the layer filestore
     9  func (fm *fileMetadataTransaction) setOS(os string) error {
    10  	return nil
    11  }
    12  
    13  // getOS reads the "os" file from the layer filestore
    14  func (fms *fileMetadataStore) getOS(layer ChainID) (string, error) {
    15  	return runtime.GOOS, nil
    16  }