Versions in this module Expand all Collapse all v0 v0.1.1 Nov 14, 2023 v0.1.0 Oct 2, 2023 Changes in this version + var ErrInvalidModuleSource = errors.New("not a valid registry module source") + var InvalidHostString = "<invalid host>" + var NameRe = regexp.MustCompile("^" + nameSubRe + "$") + var ProviderRe = regexp.MustCompile("^" + providerSubRe + "$") + var PublicRegistryHost = NewFriendlyHost("registry.terraform.io") + type FriendlyHost struct + Raw string + func NewFriendlyHost(host string) *FriendlyHost + func ParseFriendlyHost(source string) (host *FriendlyHost, rest string) + func (h *FriendlyHost) Display() string + func (h *FriendlyHost) Equal(other *FriendlyHost) bool + func (h *FriendlyHost) Normalized() string + func (h *FriendlyHost) String() string + func (h *FriendlyHost) Valid() bool + type Module struct + RawHost *FriendlyHost + RawName string + RawNamespace string + RawProvider string + RawSubmodule string + func ModuleFromModuleSourceAddr(addr addrs.ModuleSourceRegistry) *Module + func ModuleFromRegistryPackageAddr(addr addrs.ModuleRegistryPackage) *Module + func NewModule(host, namespace, name, provider, submodule string) (*Module, error) + func ParseModuleSource(source string) (*Module, error) + func (m *Module) Display() string + func (m *Module) Equal(other *Module) bool + func (m *Module) Host() *FriendlyHost + func (m *Module) Module() string + func (m *Module) Normalized() string + func (m *Module) String() string + func (m *Module) SvcHost() (svchost.Hostname, error)