Documentation ¶
Index ¶
- type DataPlane
- func (dp *DataPlane) CheckBlindIndexExists(c echo.Context, blindIndex string, opt *apimodel.GetFactSearch) (bool, []string, error)
- func (dp *DataPlane) CheckExactMatch(c echo.Context, query string, opt *apimodel.GetFactSearch) (bool, []string, error)
- func (dp *DataPlane) CreateFact(c echo.Context) error
- func (dp *DataPlane) CreateScope(c echo.Context) error
- func (dp *DataPlane) DestroyFact(c echo.Context) error
- func (dp *DataPlane) GenerateBlindIndex(data string, domain string) string
- func (dp *DataPlane) GenerateBlindIndexes(data string, domain string) []string
- func (dp *DataPlane) Healthz(c echo.Context) error
- func (dp *DataPlane) PreprocessData(data string) string
- func (dp *DataPlane) QueryScopes(c echo.Context) error
- func (dp *DataPlane) Search(c echo.Context) error
- func (dp *DataPlane) ShowFact(c echo.Context) error
- func (dp *DataPlane) Start()
- func (dp *DataPlane) Stop()
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 Filter *bloom.BloomFilter }
DataPlane represents the data plane struct
func MustNewDataPlane ¶
func MustNewDataPlane() *DataPlane
MustNewDataPlane creates a new DataPlane, otherwise panic
func (*DataPlane) CheckBlindIndexExists ¶
func (*DataPlane) CheckExactMatch ¶
func (*DataPlane) CreateFact ¶
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) CreateScope ¶
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) DestroyFact ¶
func (*DataPlane) GenerateBlindIndex ¶
func (*DataPlane) GenerateBlindIndexes ¶
func (*DataPlane) Healthz ¶
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) PreprocessData ¶
func (*DataPlane) QueryScopes ¶
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 ¶
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]