configapi

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigEndpoint

func CreateConfigEndpoint(r *app.Router)

func DeleteConfigEndpoint

func DeleteConfigEndpoint(r *app.Router)

func GetConfigByIDEndpoint

func GetConfigByIDEndpoint(r *app.Router)

func GetConfigsEndpoint

func GetConfigsEndpoint(r *app.Router)

func GetFlatConfigEndpoint

func GetFlatConfigEndpoint(grp *app.Router)

GetFlatConfigEndpoint provides access to the UI configuration.

func ListSchemasEndpoint

func ListSchemasEndpoint(grp *app.Router)

func PatchConfigEndpoint

func PatchConfigEndpoint(r *app.Router)

func Setup

func Setup(a *app.App, grp *echo.Group)

Setup configures all endpoints for the configapi.

func TestConfigEndpoint

func TestConfigEndpoint(r *app.Router)

func UpdateConfigEndpoint

func UpdateConfigEndpoint(r *app.Router)

Types

type CreateConfigRequest

type CreateConfigRequest struct {
	Config map[string]interface{} `json:"config"`
}

type CreateConfigResponse

type CreateConfigResponse struct {
	ID      string `json:"id"`
	Warning string `json:"warning,omitempty"`
}

type DeleteConfigResponse

type DeleteConfigResponse struct {
	ID      string `json:"id"`
	Warning string `json:"warning,omitempty"`
}

type GetConfigByIDResponse

type GetConfigByIDResponse struct {
	Config map[string]interface{} `json:"config"`
}

type GetConfigsResponse

type GetConfigsResponse struct {
	Configs map[string]map[string]interface{} `json:"configs"`
}

type ListSchemasResponse

type ListSchemasResponse struct {
	Schemas []SchemaModel `json:"schemas"`
}

type PatchConfigRequest

type PatchConfigRequest struct {
	Config map[string]interface{} `json:"config"`
}

type PatchConfigResponse

type PatchConfigResponse struct {
	ID      string `json:"id"`
	Warning string `json:"warning,omitempty"`
}

type SchemaModel

type SchemaModel struct {
	runtime.Schema
	Options []conf.OptionSpec `json:"options"`
}

type TestConfigRequest

type TestConfigRequest struct {
	Config     map[string]interface{} `json:"config"`
	TestConfig map[string]interface{} `json:"testConfig"`
}

type UpdateConfigRequest

type UpdateConfigRequest struct {
	Config map[string]interface{} `json:"config"`
}

type UpdateConfigResponse

type UpdateConfigResponse struct {
	ID      string `json:"id"`
	Warning string `json:"warning,omitempty"`
}

Jump to

Keyboard shortcuts

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