filestore_unix.go 395 B

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