Documentation ¶
Index ¶
- func GETCategory(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func GETIndex(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func GETProduct(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Initialize() (err error)
- type Manifest
- type Product
- type ResponseFormat
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GETCategory ¶
func GETCategory(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
GETCategory endpoint for get categories by Name
func GETIndex ¶
func GETIndex(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
GETIndex is root endpoint for get System info
func GETProduct ¶
func GETProduct(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
GETProduct endpoint for get product by name
Types ¶
type Product ¶
type Product struct { Service map[string]Stack `json:"service"` Manifest Manifest `json:"manifest"` }
Product response struct
func (*Product) UnmarshalYAML ¶
UnmarshalYAML for handling dynamic Orcinus.yml
type ResponseFormat ¶
type ResponseFormat struct {
Stack []Product `json:"stack"`
}
ResponseFormat response struct
func (*ResponseFormat) AddItem ¶
func (r *ResponseFormat) AddItem(i Product) []Product
AddItem service to ResponseFormat
Click to show internal directories.
Click to hide internal directories.