garm-provider-edge-connect/internal/client/models.go
Manuel Ganter 0839b62b84
Some checks failed
Go Tests / go-tests (push) Failing after 1m25s
feat(client): IPCEICIS-5755 introduced api calls against edge conenct
2025-09-02 16:16:34 +02:00

50 lines
1.3 KiB
Go

package client
type NewAppInstanceInput struct {
Region string `json:"region"`
AppInst AppInstance `json:"appinst"`
}
type AppInstance struct {
Key AppInstanceKey `json:"key"`
AppKey AppKey `json:"app_key"`
Flavor Flavor `json:"flavor"`
}
type AppInstanceKey struct {
Organization string `json:"organization"`
Name string `json:"name"`
CloudletKey CloudletKey `json:"cloudlet_key"`
}
type CloudletKey struct {
Organization string `json:"organization"`
Name string `json:"name"`
}
type AppKey struct {
Organization string `json:"organization"`
Name string `json:"name"`
Version string `json:"version"`
}
type Flavor struct {
Name string `json:"name"`
}
type NewAppInput struct {
Region string `json:"region"`
App App `json:"app"`
}
type App struct {
Key AppKey `json:"key"`
Deployment string `json:"deployment"`
ImageType string `json:"image_type"`
ImagePath string `json:"image_path"`
AllowServerless bool `json:"allow_serverless"`
DefaultFlavor Flavor `json:"defaultFlavor"`
ServerlessConfig any `json:"serverless_config"`
DeploymentGenerator string `json:"deployment_generator"`
DeploymentManifest string `json:"deployment_manifest"`
}