mirror of
https://github.com/FlipsideCrypto/convox.git
synced 2026-02-06 19:07:13 +00:00
30 lines
716 B
Go
30 lines
716 B
Go
package structs
|
|
|
|
type App struct {
|
|
Generation string `json:"generation,omitempty"`
|
|
Locked bool `json:"locked"`
|
|
Name string `json:"name"`
|
|
Release string `json:"release"`
|
|
Router string `json:"router"`
|
|
Status string `json:"status"`
|
|
|
|
Outputs map[string]string `json:"-"`
|
|
Parameters map[string]string `json:"parameters"`
|
|
Tags map[string]string `json:"-"`
|
|
}
|
|
|
|
type Apps []App
|
|
|
|
type AppCreateOptions struct {
|
|
Generation *string `default:"2" flag:"generation,g" param:"generation"`
|
|
}
|
|
|
|
type AppUpdateOptions struct {
|
|
Lock *bool `param:"lock"`
|
|
Parameters map[string]string `param:"parameters"`
|
|
}
|
|
|
|
func (a Apps) Less(i, j int) bool {
|
|
return a[i].Name < a[j].Name
|
|
}
|