module

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchModule

func FetchModule(source string, wg *sync.WaitGroup)

FetchModule downloads the remote module source if necessary. Meant to be run in a goroutine.

func GetSourceDir

func GetSourceDir(source string) string

GetSourcePath gets a unique local source directory name. For local modules, it use the local directory

func IsLocal

func IsLocal(source string) bool

IsLocal uses the go-getter FileDetector to check if source is a file

func ParseModuleConfig

func ParseModuleConfig(source string) (moduleconfig.ModuleConfig, error)

ParseModuleConfig loads the local config file for a module and parses the yaml

Types

This section is empty.

Jump to

Keyboard shortcuts

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