configInfo

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchReleaseMethod

func BatchReleaseMethod(c *gin.Context)

@Tags Config @Summary batch Release Method Config @Description TODO: unimplemented @Produce application/json @Success 200 {object} string @Router /config/api/resource/method/publish [put] BatchReleaseMethod Batch Release Method Config

func BatchReleasePluginGroup

func BatchReleasePluginGroup(c *gin.Context)

@Tags Config @Summary batch Release PluginGroup Config @Description publish the PluginGroup from the unpublished space to the published space. @Produce application/json @Success 200 {object} string @Router /config/api/plugin_group/publish [put] BatchReleasePluginGroup Batch Release PluginGroup Config

func BatchReleaseResource

func BatchReleaseResource(c *gin.Context)

@Tags Config @Summary publish all configuration information @Description publish resources from unpublished spaces to published spaces @Produce application/json @Success 200 {object} string @Router /config/api/resource/publish [put] BatchReleaseResource Publish all configuration information

func CreateCluster

func CreateCluster(c *gin.Context)

@Tags Config @Summary create cluster @Description Create a cluster by passing the YAML/JSON configuration for the cluster through the form's content field. @Accept application/x-www-form-urlencoded @Produce application/json @Param content formData string true "Cluster content" @Success 200 {object} string @Failure 200 {object} string @Router /config/api/cluster [put] CreateCluster create a cluster

func CreateListener

func CreateListener(c *gin.Context)

@Tags Config @Summary create a Listener @Description pass the YAML/JSON for the Listener through the form's content field to create the Listener. @Accept application/x-www-form-urlencoded @Produce application/json @Param content formData string true "Listener content" @Success 200 {object} string @Failure 200 {object} string @Router /config/api/listener [put] CreateListener create a Listener

func CreateMethodInfo

func CreateMethodInfo(c *gin.Context)

@Tags Config @Summary create method @Description create a method under the specified resource, where content is the YAML for Method. @Accept application/x-www-form-urlencoded @Produce application/json @Param resourceId query int true "ResourceID" @Param content formData string true "Method YAML" @Param unpublished formData string false "1: unpublished; 0 or empty: published" @Success 200 {object} string @Router /config/api/resource/method [post] CreateMethodInfo create method

func CreateResourceInfo

func CreateResourceInfo(c *gin.Context)

@Tags Config @Summary create resource @Description create a resource by passing the Resource's YAML via the form's content field (simultaneously writing to the staging area and production area). @Accept application/x-www-form-urlencoded @Produce application/json @Param content formData string true "Resource YAML" @Param unpublished formData string false "1: unpublished; 0 or empty: published" @Success 200 {object} string @Failure 200 {object} string @Router /config/api/resource [post] CreateResourceInfo create resource

func DeleteCluster

func DeleteCluster(c *gin.Context)

@Tags Config @Summary delete cluster @Description delete cluster according to cluster ID @Produce application/json @Param id query string true "Cluster ID" @Success 200 {object} string @Router /config/api/cluster [delete] DeleteCluster delete resource

func DeleteListener

func DeleteListener(c *gin.Context)

@Tags Config @Summary delete Listener @Description delete the Listener based on the name @Produce application/json @Param name query string true "Listener id" @Success 200 {object} string @Router /config/api/listener [delete] DeleteListener delete Listener

func DeleteMethodInfo

func DeleteMethodInfo(c *gin.Context)

@Tags Config @Summary delete method @Description Deleting a method under a resource, where `unpublished` equals 1 indicates removing the configuration for unpublished spaces (requires checking published spaces). @Produce application/json @Param resourceId query int true "ResourceID" @Param methodId query int true "MethodID" @Param unpublished formData string false "1: unpublished; 0 or empty: published" @Success 200 {object} string @Router /config/api/resource/method [delete] DeleteResourceInfo delete method

func DeleteResourceInfo

func DeleteResourceInfo(c *gin.Context)

@Tags Config @Summary delete resource @Description delete resources by ID. When unpublished is 1, this indicates deleting configurations for unpublished spaces (requires checking published spaces). @Produce application/json @Param resourceId query int true "resource ID" @Param unpublished formData string false "1: unpublished; 0 or empty: published" @Success 200 {object} string @Router /config/api/resource [delete] DeleteResourceInfo delete resource

func DetailCluster

func DetailCluster(c *gin.Context)

@Tags Config @Summary get cluster detail @Description get cluster detail according to cluster ID @Produce application/json @Param id query string true "Cluster ID" @Success 200 {object} string @Router /config/api/cluster/detail [get] DetailCluster get cluster detail

func DetailListener

func DetailListener(c *gin.Context)

@Tags Config @Summary get Listener detail @Description get Listener details based on name @Produce application/json @Param name query string true "Listener name" @Success 200 {object} string @Router /config/api/listener/detail [get] DetailListener get Listener detail

func GetBaseInfo

func GetBaseInfo(c *gin.Context)

@Tags Config @Summary get basic configuration of Pixiu @Description get pixiu base info such as name,desc @Produce application/json @Success 200 {string} string "YAML content" @Router /config/api/base [get] GetBaseInfo get pixiu base info such as name,desc

func GetClusterList

func GetClusterList(c *gin.Context)

@Tags Config @Summary get cluster list @Description get all clusters' info @Produce application/json @Success 200 {object} string @Router /config/api/cluster/list [get] GetClusterList get all cluster list

func GetListenerList

func GetListenerList(c *gin.Context)

@Tags Config @Summary get all Listener list @Description get all Listener list @Produce application/json @Success 200 {object} string @Router /config/api/listener/list [get] GetListenerList get all Listener list

func GetMethodDetail

func GetMethodDetail(c *gin.Context)

@Tags Config @Summary get method detail with yml @Description get method details based on resourceId and methodId, returning YAML. @Produce application/json @Param resourceId query int true "resource ID" @Param methodId query int true "method ID" @Param unpublished formData string false "1: unpublished; 0 or empty: published" @Success 200 {string} string "YAML content" @Router /config/api/resource/method/detail [get] GetMethodDetail get method detail with yml

func GetMethodList

func GetMethodList(c *gin.Context)

@Tags Config @Summary get all method list below one resource @Description get the list of methods under the specified resource @Produce application/json @Param resourceId query int true "resource ID" @Param unpublished formData string false "1: unpublished; 0 or empty: published" @Success 200 {string} string "JSON array" @Router /config/api/resource/method/list [get] GetMethodList get all method list below one resource

func GetResourceDetail

func GetResourceDetail(c *gin.Context)

@Tags Config @Summary get resource detail with yml @Description get resource details according to resource ID and return the YAML @Produce application/json @Param resourceId query int true "ResourceID" @Param unpublished formData string false "1: unpublished; 0 or empty: published" @Success 200 {string} string "YAML content" @Router /config/api/resource/detail [get] GetResourceDetail get resource detail with yml

func GetResourceList

func GetResourceList(c *gin.Context)

@Tags Config @Summary get all resource list @Description Retrieve the list of resources. Use the unpublished parameter to control whether to include unpublished or published resources. @Produce application/json @Param unpublished formData string false "1: unpublished; 0 or empty: published" @Success 200 {string} string "JSON array" @Router /config/api/resource/list [get] GetResourceList get all resource list

func ModifyMethodInfo

func ModifyMethodInfo(c *gin.Context)

@Tags Config @Summary modify method @Description Modify the specified method, where content is the YAML for Method. @Accept application/x-www-form-urlencoded @Produce application/json @Param resourceId query int true "ResourceID" @Param methodId query int false "MethodID" @Param content formData string true "Method YAML" @Param unpublished formData string false "1: unpublished; 0 or empty: published" @Success 200 {object} string @Router /config/api/resource/method [put] ModifyMethodInfo modify method

func ModifyResourceInfo

func ModifyResourceInfo(c *gin.Context)

@Tags Config @Summary modify resource @Description modify resource content, where content is the YAML of the Resource. Use resourceId to specify the resource to be modified. @Accept application/x-www-form-urlencoded @Produce application/json @Param resourceId query int false "resource ID" @Param content formData string true "Resource YAML" @Param unpublished formData string false "1: unpublished; 0 or empty: published" @Success 200 {object} string @Router /config/api/resource [put] ModifyResourceInfo modify resource

func SetBaseInfo

func SetBaseInfo(c *gin.Context)

@Tags Config @Summary modify pixiu base info such as name,desc @Description Pass YAML content through the form's content field to set basic information. @Accept application/x-www-form-urlencoded @Produce application/json @Param content formData string true "YAML content" @Success 200 {object} string @Failure 200 {object} string @Router /config/api/base/ [post] @Router /config/api/base/ [put] SetBaseInfo modify pixiu base info such as name,desc

func UpdateCluster

func UpdateCluster(c *gin.Context)

@Tags Config @Summary update cluster @Description pass the Cluster's YAML/JSON via the form's content field to update the cluster. @Accept application/x-www-form-urlencoded @Produce application/json @Param content formData string true "Cluster content" @Success 200 {object} string @Failure 200 {object} string @Router /config/api/cluster [post] UpdateCluster update cluster

func UpdateListener

func UpdateListener(c *gin.Context)

@Tags Config @Summary update Listener @Description pass the YAML/JSON for the Listener through the form's content field to update the Listener. @Accept application/x-www-form-urlencoded @Produce application/json @Param content formData string true "Listener content" @Success 200 {object} string @Failure 200 {object} string @Router /config/api/listener [post] UpdateListener update Listener

Types

This section is empty.

Jump to

Keyboard shortcuts

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