Versions in this module Expand all Collapse all v1 v1.0.0 Dec 20, 2022 Changes in this version + var DefaultModuleConfig = Config + var ErrNotExist = errors.New("module does not exist") + func ApplyProjectConfigDefaults(cfg config.Provider, mod Module) error + func IsNotExist(err error) bool + type Client struct + GoModulesFilename string + func NewClient(cfg ClientConfig) *Client + func (c *Client) Clean(pattern string) error + func (c *Client) Get(args ...string) error + func (c *Client) Graph(w io.Writer) error + func (c *Client) Init(path string) error + func (c *Client) Tidy() error + func (c *Client) Vendor() error + func (c *Client) Verify(clean bool) error + func (h *Client) Collect() (ModulesConfig, error) + type ClientConfig struct + CacheDir string + Environment string + Exec *hexec.Exec + Fs afero.Fs + HookBeforeFinalize func(m *ModulesConfig) error + IgnoreVendor glob.Glob + Logger loggers.Logger + ModuleConfig Config + ThemesDir string + WorkingDir string + type Config struct + HugoVersion HugoVersion + Imports []Import + Mounts []Mount + NoProxy string + NoVendor string + Params map[string]any + Private string + Proxy string + Replacements []string + VendorClosest bool + Workspace string + func DecodeConfig(cfg config.Provider) (Config, error) + type HugoVersion struct + Extended bool + Max hugo.VersionString + Min hugo.VersionString + func (v HugoVersion) IsValid() bool + func (v HugoVersion) String() string + type Import struct + Disable bool + IgnoreConfig bool + IgnoreImports bool + Mounts []Mount + NoMounts bool + NoVendor bool + Path string + type Module interface + Cfg func() config.Provider + Config func() Config + ConfigFilenames func() []string + Dir func() string + Disabled func() bool + IsGoMod func() bool + Mounts func() []Mount + Owner func() Module + Path func() string + Replace func() Module + Time func() time.Time + Vendor func() bool + Version func() string + Watch func() bool + func CreateProjectModule(cfg config.Provider) (Module, error) + type Modules []Module + type ModulesConfig struct + ActiveModules Modules + AllModules Modules + GoModulesFilename string + type Mount struct + ExcludeFiles any + IncludeFiles any + Lang string + Source string + Target string + func (m Mount) Component() string + func (m Mount) ComponentAndName() (string, string)