mcu

package
v0.0.0-...-2a34177 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoManifest = fmt.Errorf("ErrNoManifest")
)

Functions

func AddFileToZip

func AddFileToZip(zipWriter *zip.Writer, name string, dir string) error

func BuildOverrideZip

func BuildOverrideZip(prefix string, zipFiles []*zip.File) (*schema.ModuleType, error)

func DownloadFile

func DownloadFile(url string) (*os.File, int, string, error)

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 FileExists(name string) bool

func GetCurseDownloadURL

func GetCurseDownloadURL(project, file int) string

func GetCurseModule

func GetCurseModule(file schema.CurseFile) (*schema.ModuleType, error)

func GetCurseURL

func GetCurseURL(project, file int) (string, error)

func ImportPackage

func ImportPackage(in string, out string) error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL