f-11: code: change struct name
All checks were successful
Pre Release Workflow / set-release-target (push) Successful in 1s
Pre Release Workflow / build (agent, amd64, linux) (push) Successful in 1m17s
Pre Release Workflow / build (db, amd64, linux) (push) Successful in 1m45s
Pre Release Workflow / build (meta_cli, amd64, linux) (push) Successful in 1m29s
Pre Release Workflow / build (metadata, amd64, linux) (push) Successful in 1m45s
Pre Release Workflow / prerelease (push) Successful in 11s

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-01-07 21:10:37 +01:00
commit 9780947805
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
3 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ var (
func main() {
flag.Parse()
metadata.StartServer(metadata.Config{
metadata.StartServer(metadata.ServerConfig{
Netns: *netns_name,
Iface: *iface,
Port: *port,

View file

@ -23,7 +23,7 @@ func getIP(r *http.Request) string {
return ip
}
func getFromDB(config Config) NoCloudData {
func getFromDB(config ServerConfig) NoCloudData {
var netns_name string
var port int
var iface string
@ -92,7 +92,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
}
}
func StartServer(config Config) {
func StartServer(config ServerConfig) {
data = getFromDB(config)
if data.NetNs != "" {

View file

@ -10,7 +10,7 @@ type NoCloudData struct {
Port int
}
type Config struct {
type ServerConfig struct {
Netns string
File string
Iface string