biz

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Perm         = &permBiz{}
	ErrForbidden = web.NewError(http.StatusForbidden)
)

Perm return a perm biz instance.

View Source
var Chart = newChartBiz()

Chart return a chart biz instance.

View Source
var Event = &eventBiz{}

Event return a event biz instance.

View Source
var Metric = &metricBiz{
	api: lazy.Value{
		New: func() (interface{}, error) {
			setting, err := Setting.Get()
			if err != nil {
				return nil, err
			}

			client, err := pclient.NewClient(pclient.Config{Address: setting.Metrics.Prometheus})
			if err != nil {
				return nil, err
			}

			return papi.NewAPI(client), nil
		},
	},
}

Metric return a metric biz instance.

View Source
var Registry = &registryBiz{}
View Source
var Role = &roleBiz{}

Role return a role biz instance.

View Source
var Setting = &settingBiz{}

Setting return a setting biz instance.

View Source
var Stack = &stackBiz{}

Stack return a stack biz instance.

View Source
var Template = &templateBiz{}

Template return a service template biz instance.

View Source
var User = &userBiz{} // nolint: golint

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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