github.com/Cloud-Foundations/Dominator@v0.3.4/lib/image/packageutil/api.go (about)

     1  package packageutil
     2  
     3  import (
     4  	"io"
     5  
     6  	"github.com/Cloud-Foundations/Dominator/lib/image"
     7  )
     8  
     9  // GetPackageList will get the list of packages using the specified packager
    10  // function.
    11  // The packager function must support the "list" and "show-size-multiplier"
    12  // commands.
    13  func GetPackageList(packager func(cmd string, w io.Writer) error) (
    14  	[]image.Package, error) {
    15  	return getPackageList(packager)
    16  }