2024-07-13 00:48:01 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "os"
|
|
|
|
|
|
|
|
type config struct {
|
|
|
|
HostName string
|
|
|
|
AppName string
|
|
|
|
PrivateKey string
|
|
|
|
}
|
|
|
|
|
|
|
|
func readConfig() config {
|
|
|
|
return config{
|
2024-07-13 01:23:30 +00:00
|
|
|
HostName: os.Getenv("INPUT_HOST"),
|
|
|
|
AppName: os.Getenv("INPUT_APP"),
|
|
|
|
PrivateKey: os.Getenv("INPUT_PRIVATE_KEY"),
|
2024-07-13 00:48:01 +00:00
|
|
|
}
|
|
|
|
}
|