compagnyhelper

command module
v0.0.0-...-026b67d Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

Compagny helper

Go Go Report Card

Tired to find into your bookmarks a corporate link?

Why do not use a helper command line in order to retrieve for example the compagny kibana urls?

How its work

A client cli will contact a server containing all the corporate usefull links

Client configuration

How to install

You may also download the appropriate release for your platform from the releases page.

You need to register the URL of the server, you can configure it in $HOME/.compagnyhelper.yaml

url_server: "http://localhost:8080"

Note: For mac user, as the binary is not signed and notorized you have to authorize it in "Security & Privacy" control panel.

Client Example

Get All application registered:

compagnyhelper get link

Get All application registered in dedicated namespace:

compagnyhelper get link --n dev

Get link of an application:

compagnyhelper get link Kibana --n dev

Describe an application link

compagnyhelper describe link Kibana --n dev

Open application in a borwser

compagnyhelper open link Kibana --n prod

Server launch

Launch the server with following command

compagnyhelper server

Check additional option with -help command

json application sample
{
    "applications": [
        {
            "shortname": "Kibana",
            "appdesc": {
                "longname": "Kibana Dashboard for yourr logs",
                "link": "http://kibana.com",
                "env": "dev"
            }
        },
        {
            "shortname": "Grafana",
            "appdesc": {
                "longname": "Grafana Dashboard for yourr metrics",
                "link": "http://grafana.com",
                "env": "dev"
            }
        },
        {
            "shortname": "Kibana",
            "appdesc": {
                "longname": "Kibana Dashboard for yourr logs",
                "link": "http://kibana.com",
                "env": "prod"
            }
        }
    ]
}
Deployment on Kubernetes
  1. Create the configmap

    kubectl create configmap compagnyhelper-cm --from-file=apps.json --dry-run -o yaml > deployment/configmap.yml
    
  2. Apply the deployment

    kubectl apply -f deployment
    
  3. Create en external service with LB, or ingress, or gateway in order to publish your endpoint

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd is part of the cli Package cmd is part of the cli Package cmd is part of the cli Package cmd is part of the cli
Package cmd is part of the cli Package cmd is part of the cli Package cmd is part of the cli Package cmd is part of the cli
Package configs ...
Package configs ...
internal
link
Package link will find and return information for link from json file
Package link will find and return information for link from json file
log
Package log ...
Package log ...
opentracing
Package opentracing ...
Package opentracing ...
web
Package web will serve the web server part
Package web will serve the web server part

Jump to

Keyboard shortcuts

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