add Module method for module name only
This commit is contained in:
parent
92db96f783
commit
87f23d9719
|
@ -184,3 +184,9 @@ func (m *Module) formatWithPrefix(hostPrefix string, preserveCase bool) string {
|
||||||
}
|
}
|
||||||
return str
|
return str
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Module returns just the registry ID of the module, without a hostname or
|
||||||
|
// suffix.
|
||||||
|
func (m *Module) Module() string {
|
||||||
|
return fmt.Sprintf("%s/%s/%s", m.RawNamespace, m.RawName, m.RawProvider)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue