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

     1  // Copyright 2018 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package bakerystorage
     5  
     6  import (
     7  	"time"
     8  )
     9  
    10  // ExpireAfter returns the expire after target for an ExpirableStorage
    11  func ExpireAfter(s ExpirableStorage) time.Duration {
    12  	return s.(*storage).expireAfter
    13  }