Help us shape the future of Go! Take the 2026 Go Developer Survey

api

command
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

README

Build Status codecov Go Report Card codebeat badge

Monocular API

The API is a golang HTTP RESTFul server. It abstracts away Helm Chart Repository data and provides a simple, idiomatic HTTP interface for search and discovery functionality. E.g.:

  • search for official community "stable" and "incubator" charts
  • get detailed version information on particular repo/charts
  • browse charts in a repo

All commands and relative directories below assume a current working directory at the API source code root, i.e.:

  • $GOPATH/src/github.com/kubernetes-helm/monocular/src/api/

Building Monocular

Makefile provides a convenience for building locally:

  • make build

The resulting will be placed inside rootfs/usr/bin, which is not coincidentally where Dockerfile assumes a monocular executable will be when building images.

Building Docker Images

To build a docker image locally:

  • make docker-build

The image will be tagged as bitnami/monocular-api:latest by default. Set IMAGE_REPO and IMAGE_TAG to override this.

Running Monocular

To launch without building:

$ PORT=8080 go run main.go
serving monocular at http://127.0.0.1:8080

Updating the API specification using swagger

Monocular uses go-swagger to define and generate the RESTFul server code. Makefile provides a convenience for generating server stub code:

  • make swagger-serverstub

Testing the API

  • make test

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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