dataplane

package
v0.0.0-...-b7d53eb Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPlane

type DataPlane struct {
	Echo      *echo.Echo
	Logger    echo.Logger
	Encryptor crypto.Encryptor
	Hasher    crypto.Hasher
	Repo      repo.Repo
	Enforcer  repo.Enforcer
	Validator *validator.Validate
}

DataPlane represents the data plane struct

func MustNewDataPlane

func MustNewDataPlane() *DataPlane

MustNewDataPlane creates a new DataPlane, otherwise panic

func (*DataPlane) CreateFact

func (dp *DataPlane) CreateFact(c echo.Context) error

CreateFact godoc @tags Fact @summary Create a fact @description create a fact @id create-fact @accept json @produce json @security ApiKeyAuth @param createFact body apimodel.CreateFact true "Create Fact Parameters" @success 200 {object} apimodel.Fact @failure 400 {object} echo.HTTPError @failure 500 {object} echo.HTTPError @router /facts [post]

func (*DataPlane) CreateFactType

func (dp *DataPlane) CreateFactType(c echo.Context) error

CreateFactType godoc @tags Fact @summary Create a fact type @description create a fact type @id create-fact-type @accept json @produce json @security ApiKeyAuth @param createFact body apimodel.CreateFactType true "Create Fact Type Parameters" @success 200 {object} apimodel.CreateFactType @failure 400 {object} echo.HTTPError @failure 500 {object} echo.HTTPError @router /fact_types [post]

func (*DataPlane) CreateScope

func (dp *DataPlane) CreateScope(c echo.Context) error

CreateScope godoc @tags Scope @summary Create a scope @description Create a scope @id create-scope @accept json @produce json @security ApiKeyAuth @param createScope body apimodel.CreateScope true "Create Scope parameters" @success 200 {object} apimodel.Scope @failure 400 {object} echo.HTTPError @failure 500 {object} echo.HTTPError @router /scopes [post]

func (*DataPlane) Healthz

func (dp *DataPlane) Healthz(c echo.Context) error

Healthz godoc @tags Healthz @summary Show the health of the dataplane @description Show the health of the dataplane @id healthz @produce json @success 200 {object} apimodel.Healthz @failure 500 {object} echo.HTTPError @router /healthz [get]

func (*DataPlane) QueryFactTypes

func (dp *DataPlane) QueryFactTypes(c echo.Context) error

QueryFactTypes godoc @tags Fact @summary Query fact types @description Query fact types @id show-fact-types @produce json @security ApiKeyAuth @param slug query string false "Fact Type Slug" @param builtin query boolean false "Builtin Fact Type Slug" @success 200 {object} []apimodel.FactType @failure 400 {object} echo.HTTPError @failure 500 {object} echo.HTTPError @router /fact_types [get]

func (*DataPlane) QueryScopes

func (dp *DataPlane) QueryScopes(c echo.Context) error

QueryScopes godoc @tags Scope @summary Query scopes @description Query scopes @id query-scopes @produce json @security ApiKeyAuth @param custom_id query string false "get scopes by custom_id" @success 200 {object} []apimodel.Scope @failure 400 {object} echo.HTTPError @failure 404 {object} echo.HTTPError @failure 500 {object} echo.HTTPError @router /scopes [get]

func (*DataPlane) ShowFact

func (dp *DataPlane) ShowFact(c echo.Context) error

ShowFact godoc @tags Fact @summary Show a fact @description Show a fact by ID @id show-fact-by-id @accept json @produce json @security ApiKeyAuth @param id path string true "Fact ID" @success 200 {object} apimodel.Fact @failure 400 {object} echo.HTTPError @failure 500 {object} echo.HTTPError @router /facts/{id} [get]

func (*DataPlane) Start

func (dp *DataPlane) Start()

Start starts the data plane server

func (*DataPlane) Stop

func (dp *DataPlane) Stop()

Stop will do some cleanup when shutdown

Jump to

Keyboard shortcuts

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