service

package
v0.0.0-...-519c012 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func Initialize

func Initialize() (err error)

Initialize for initiates service package

Types

type Manifest

type Manifest struct {
	Title string `json:"title"`
}

type Product

type Product struct {
	Service  map[string]Stack `json:"service"`
	Manifest Manifest         `json:"manifest"`
}

Product response struct

func (*Product) UnmarshalYAML

func (e *Product) UnmarshalYAML(unmarshal func(interface{}) error) error

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

type Stack

type Stack struct {
	Image       string   `json:"image"`
	Auth        bool     `json:"auth"`
	Ports       []string `json:"ports"`
	Environment []string `json:"environment"`
	Endpoint    string   `json:"endpoint"`
}

Stack response struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL