bazaar

package
v0.2.50 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig() (*bazaarConfig, error)

Types

type API

type API interface {
	Charts() http.Handler
	ListCharts(w http.ResponseWriter, r *http.Request) error
	SaveChart(w http.ResponseWriter, r *http.Request) error
	DeleteChart(w http.ResponseWriter, r *http.Request) error
}

func NewAPI

func NewAPI(repo repository.Repository, kiboshConfig *KiboshConfig, logger *logrus.Logger) API

type DisplayChart

type DisplayChart struct {
	Name    string   `json:"name"`
	Plans   []string `json:"plans"`
	Version string   `json:"version"`
}

type DisplayResponse

type DisplayResponse struct {
	Message string `json:"message"`
}

type KiboshConfig

type KiboshConfig struct {
	Server string `envconfig:"KIBOSH_SERVER" required:"true"`
	User   string `envconfig:"KIBOSH_USER_NAME" required:"true"`
	Pass   string `envconfig:"KIBOSH_USER_PASSWORD" required:"true"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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