mirror of
https://github.com/FlipsideCrypto/convox.git
synced 2026-02-06 10:56:56 +00:00
55 lines
1.3 KiB
Go
55 lines
1.3 KiB
Go
package structs
|
|
|
|
type Resource struct {
|
|
Name string `json:"name"`
|
|
Parameters map[string]string `json:"parameters,omitempty"`
|
|
Status string `json:"status,omitempty"`
|
|
Type string `json:"type"`
|
|
Url string `json:"url"`
|
|
|
|
Apps Apps `json:"apps,omitempty"`
|
|
}
|
|
|
|
type Resources []Resource
|
|
|
|
func (rs Resources) Less(i, j int) bool {
|
|
return rs[i].Name < rs[j].Name
|
|
}
|
|
|
|
type ResourceType struct {
|
|
Name string `json:"name"`
|
|
Parameters ResourceParameters `json:"parameters"`
|
|
}
|
|
|
|
type ResourceTypes []ResourceType
|
|
|
|
func (rts ResourceTypes) Less(i, j int) bool {
|
|
return rts[i].Name < rts[j].Name
|
|
}
|
|
|
|
type ResourceParameter struct {
|
|
Default string `json:"default"`
|
|
Description string `json:"description"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type ResourceParameters []ResourceParameter
|
|
|
|
func (rps ResourceParameters) Less(i, j int) bool {
|
|
return rps[i].Name < rps[j].Name
|
|
}
|
|
|
|
type ResourceConsoleOptions struct {
|
|
Height *int `header:"Height"`
|
|
Width *int `header:"Width"`
|
|
}
|
|
|
|
type ResourceCreateOptions struct {
|
|
Name *string `param:"name"`
|
|
Parameters map[string]string `param:"parameters"`
|
|
}
|
|
|
|
type ResourceUpdateOptions struct {
|
|
Parameters map[string]string `param:"parameters"`
|
|
}
|