github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/provider/azure/export_test.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package azure
     5  
     6  import (
     7  	"github.com/juju/juju/environs"
     8  	"github.com/juju/juju/storage"
     9  )
    10  
    11  func ForceVolumeSourceTokenRefresh(vs storage.VolumeSource) error {
    12  	return ForceTokenRefresh(vs.(*azureVolumeSource).env)
    13  }
    14  
    15  func ForceTokenRefresh(env environs.Environ) error {
    16  	return env.(*azureEnviron).config.token.Refresh()
    17  }