Documentation
¶
Index ¶
- Constants
- func BRCreate(key, value, configType string) error
- func BRGetMethodList(resourceId string, unpublished bool) ([]string, []string, error)
- func BRGetPluginGroupList(unpublished bool) ([]string, []string, error)
- func BRGetResourceList(unpublished bool) ([]string, []string, error)
- func BRUpdate(key, value string) error
- func BizBatchCreateResourceMethod(resourceId string, methods []config.Method, unpublished bool) error
- func BizCreateCluster(res *config.Cluster) error
- func BizCreateListener(res *config.Listener) error
- func BizDeleteCluster(id string) error
- func BizDeleteListener(name string) error
- func BizDeleteMethodInfo(resourceId string, methodId string, unpublished bool) error
- func BizDeleteResourceInfo(id string, unpublished bool) error
- func BizGetBaseInfo() (*adminconfig.BaseInfo, error)
- func BizGetCluster(id string) (string, error)
- func BizGetClusters() ([]config.Cluster, error)
- func BizGetListener(name string) (string, error)
- func BizGetListeners() ([]config.Listener, error)
- func BizGetMethodDetail(resourceId string, methodId string, unpublished bool) (string, error)
- func BizGetMethodList(resourceId string, unpublished bool) ([]config.Method, error)
- func BizGetResourceDetail(id string, unpublished bool) (string, error)
- func BizGetResourceList(unpublished bool) ([]config.Resource, error)
- func BizSetBaseInfo(info *adminconfig.BaseInfo, created bool) error
- func BizSetResourceInfo(res *config.Resource, created, unpublished bool) error
- func BizSetResourceMethod(resourceId string, method *config.Method, created, unpublished bool) error
- func BizUpdateCluster(res *config.Cluster) error
- func BizUpdateListener(res *config.Listener) error
Constants ¶
const ( Base = "base" Resources = "resources" Method = "method" ResourceID = "resourceId" ClusterID = "clusterId" Listener = "listener" MethodID = "methodId" PluginGroup = "pluginGroup" Plugin = "plugin" Filter = "filter" Ratelimit = "ratelimit" Clusters = "clusters" Listeners = "listeners" Unpublished = "unpublished" ErrID = -1 )
Variables ¶
This section is empty.
Functions ¶
func BRGetMethodList ¶
BRGetMethodList GetMethodList
func BRGetPluginGroupList ¶
BRGetPluginGroupList GetPluginGroupList
func BRGetResourceList ¶
BRGetResourceList GetResourceList
func BizBatchCreateResourceMethod ¶
func BizBatchCreateResourceMethod(resourceId string, methods []config.Method, unpublished bool) error
BizBatchCreateResourceMethod batch create method below one resource
func BizCreateCluster ¶
BizCreateCluster create cluster
func BizCreateListener ¶
BizCreateListener create Listener
func BizDeleteListener ¶
BizDeleteListener delete Listener
func BizDeleteMethodInfo ¶
BizDeleteMethodInfo delete method
func BizDeleteResourceInfo ¶
BizDeleteResourceInfo delete resource
func BizGetBaseInfo ¶
func BizGetBaseInfo() (*adminconfig.BaseInfo, error)
BizGetBaseInfo get base info
func BizGetListeners ¶
BizGetListeners get Listeners
func BizGetMethodDetail ¶
BizGetMethodDetail get method detail
func BizGetMethodList ¶
BizGetMethodList get method list
func BizGetResourceDetail ¶
BizGetResourceDetail get resource detail
func BizGetResourceList ¶
BizGetResourceList get resource list
func BizSetBaseInfo ¶
func BizSetBaseInfo(info *adminconfig.BaseInfo, created bool) error
BizSetBaseInfo create or modify base info
func BizSetResourceInfo ¶
BizSetResourceInfo create resource
func BizSetResourceMethod ¶
func BizSetResourceMethod(resourceId string, method *config.Method, created, unpublished bool) error
BizSetResourceMethod create or update method below specific path
func BizUpdateCluster ¶
BizUpdateCluster create cluster
func BizUpdateListener ¶
BizUpdateListener create Listener
Types ¶
This section is empty.