github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/state/backups/metadata_nonlinux.go (about)

     1  // Copyright 2014 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  // +build !linux
     5  
     6  package backups
     7  
     8  import (
     9  	"os"
    10  	"time"
    11  )
    12  
    13  // Backups only runs on state machines which only run Ubuntu.
    14  // creationTime is stubbed out here so that the test suite will pass
    15  // on non-linux (e.g. windows, darwin).
    16  
    17  func creationTime(fi os.FileInfo) time.Time {
    18  	return time.Time{}
    19  }