Documentation ¶
Overview ¶
Package link will find and return information for link from json file
Index ¶
- func Describe(ctx context.Context, env string, app string, serverurl string)
- func Get(ctx context.Context, env string, serverurl string)
- func GetDetail(ctx context.Context, env string, app string, serverurl string)
- func OpenLink(ctx context.Context, env string, app string, serverurl string)
- type Application
- type ObjectLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Describe ¶
Describe retrieve application link(s) availables In cli compagnyhelper describe link grafana -n dev
Types ¶
type Application ¶
type Application struct { Shortname string `json:"shortname"` Desc appdesc `json:"appdesc"` }
Application describe an application
func Retrieve ¶
func Retrieve(ctx context.Context, env string, name string, inputjson string) (result Application, err error)
Retrieve find the app with env and name provided Send longname value
In cli compagnyhelper get link grafana -n dev, output will be Grafana | http://grafana.com \n
In cli compagnyhelper open link grafana -n dev, output will open a browser with url http://grafana.com
In cli compagnyhelper describe link grafana -n dev Grafana | Your dashboard for your metrics | development | http://grafana.com \n
type ObjectLink ¶
type ObjectLink struct {
Applications []Application `json:"applications"`
}
ObjectLink describe multiple applications
func RetrieveAll ¶
RetrieveAll find all links with env Send an array of application struct
In cli compagnyhelper get link -n dev, output will be Grafana \n Kibana \n Prometheus \n
In cli compagnyhelper get link --all, output will be Grafana dev \n Kibana dev \n Grafana prod \n