Add 'environment' package
This commit adds a new environment package that manages all calls to the underlying operating system.
This commit is contained in:
parent
822c70cd69
commit
f19619ef9f
60 changed files with 539 additions and 308 deletions
|
|
@ -4,12 +4,14 @@ package hostname
|
|||
import (
|
||||
"os"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
|
||||
"github.com/Showmax/go-fqdn"
|
||||
)
|
||||
|
||||
// FQDN attempts to return the fully qualified domain name of the host system.
|
||||
// If an error occurs, may fall back to the empty string.
|
||||
func FQDN() string {
|
||||
func FQDN(env environment.Environment) string {
|
||||
// TODO: Pass this through!
|
||||
|
||||
// try the hostname function
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue