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

     1  // Copyright 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package tools
     5  
     6  var (
     7  	FindExecutable                = findExecutable
     8  	CheckToolsSeries              = checkToolsSeries
     9  	ArchiveAndSHA256              = archiveAndSHA256
    10  	WriteMetadataFiles            = &writeMetadataFiles
    11  	CurrentStreamsVersion         = currentStreamsVersion
    12  	MarshalToolsMetadataIndexJSON = marshalToolsMetadataIndexJSON
    13  	GetVersionFromJujud           = getVersionFromJujud
    14  	ExecCommand                   = &execCommand
    15  )
    16  
    17  func VersionsMatchingHash(v *Versions, h string) []string {
    18  	return v.versionsMatchingHash(h)
    19  }