Documentation ¶
Index ¶
- Variables
- func AddFileToZip(zipWriter *zip.Writer, name string, dir string) error
- func BuildOverrideZip(prefix string, zipFiles []*zip.File) (*schema.ModuleType, error)
- func DownloadFile(url string) (*os.File, int, string, error)
- func FileExists(name string) bool
- func GetCurseDownloadURL(project, file int) string
- func GetCurseModule(file schema.CurseFile) (*schema.ModuleType, error)
- func GetCurseURL(project, file int) (string, error)
- func ImportPackage(in string, out string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoManifest = fmt.Errorf("ErrNoManifest")
)
Functions ¶
func BuildOverrideZip ¶
func DownloadFile ¶
DownloadFile fetches the contents of a url to a temporary file and returns a handle to the file (that should be closed on the receiver's side) as well as its length and md5 checksum.
func FileExists ¶
func GetCurseDownloadURL ¶
func GetCurseModule ¶
func GetCurseModule(file schema.CurseFile) (*schema.ModuleType, error)
func GetCurseURL ¶
func ImportPackage ¶
ImportPackage is the main entry point into the actual process. Cobra has already vetted the basics of our parameters, so we can get right to business.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.