Documentation ¶
Index ¶
- type ConfigFileArr
- type ConfigReleaseArr
- type HTTPServer
- func (h *HTTPServer) BatchDeleteConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) ClientGetConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) ClientWatchConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) CreateConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) CreateConfigFileGroup(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) CreateConfigFileTemplate(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) DeleteConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) DeleteConfigFileGroup(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) DeleteConfigFileReleases(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) ExportConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) GetAllConfigEncryptAlgorithms(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) GetAllConfigFileTemplates(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) GetClientAccessServer(ws *restful.WebService, include []string) error
- func (h *HTTPServer) GetConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) GetConfigFileMetadataList(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) GetConfigFileRelease(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) GetConfigFileReleaseHistory(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) GetConfigFileReleaseVersions(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) GetConfigFileReleases(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) GetConsoleAccessServer(include []string) (*restful.WebService, error)
- func (h *HTTPServer) ImportConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) PublishConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) QueryConfigFileGroups(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) RollbackConfigFileReleases(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) SearchConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) UpdateConfigFile(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) UpdateConfigFileGroup(req *restful.Request, rsp *restful.Response)
- func (h *HTTPServer) UpsertAndReleaseConfigFile(req *restful.Request, rsp *restful.Response)
- type NamespaceArr
- type ServiceAliasArr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFileArr ¶
type ConfigFileArr []*apiconfig.ConfigFile
ConfigFileArr 配置文件数组定义
func (*ConfigFileArr) ProtoMessage ¶
func (*ConfigFileArr) ProtoMessage()
ProtoMessage proto message
type ConfigReleaseArr ¶
type ConfigReleaseArr []*apiservice.ConfigRelease
ConfigReleaseArr 发布规则数组定义
func (*ConfigReleaseArr) ProtoMessage ¶
func (*ConfigReleaseArr) ProtoMessage()
ProtoMessage return proto message
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer
func NewServer ¶
func NewServer( maintainServer admin.AdminOperateServer, namespaceServer namespace.NamespaceOperateServer, configServer config.ConfigCenterServer) *HTTPServer
NewServer 创建配置中心的 HttpServer
func (*HTTPServer) BatchDeleteConfigFile ¶
func (h *HTTPServer) BatchDeleteConfigFile(req *restful.Request, rsp *restful.Response)
BatchDeleteConfigFile 批量删除配置文件
func (*HTTPServer) ClientGetConfigFile ¶
func (h *HTTPServer) ClientGetConfigFile(req *restful.Request, rsp *restful.Response)
func (*HTTPServer) ClientWatchConfigFile ¶
func (h *HTTPServer) ClientWatchConfigFile(req *restful.Request, rsp *restful.Response)
func (*HTTPServer) CreateConfigFile ¶
func (h *HTTPServer) CreateConfigFile(req *restful.Request, rsp *restful.Response)
CreateConfigFile 创建配置文件
func (*HTTPServer) CreateConfigFileGroup ¶
func (h *HTTPServer) CreateConfigFileGroup(req *restful.Request, rsp *restful.Response)
CreateConfigFileGroup 创建配置文件组
func (*HTTPServer) CreateConfigFileTemplate ¶
func (h *HTTPServer) CreateConfigFileTemplate(req *restful.Request, rsp *restful.Response)
CreateConfigFileTemplate create config file template
func (*HTTPServer) DeleteConfigFile ¶
func (h *HTTPServer) DeleteConfigFile(req *restful.Request, rsp *restful.Response)
DeleteConfigFile 删除单个配置文件,删除配置文件也会删除配置文件发布内容,客户端将获取不到配置文件
func (*HTTPServer) DeleteConfigFileGroup ¶
func (h *HTTPServer) DeleteConfigFileGroup(req *restful.Request, rsp *restful.Response)
DeleteConfigFileGroup 删除配置文件组
func (*HTTPServer) DeleteConfigFileReleases ¶
func (h *HTTPServer) DeleteConfigFileReleases(req *restful.Request, rsp *restful.Response)
DeleteConfigFileReleases
func (*HTTPServer) ExportConfigFile ¶
func (h *HTTPServer) ExportConfigFile(req *restful.Request, rsp *restful.Response)
ExportConfigFile 导出配置文件
func (*HTTPServer) GetAllConfigEncryptAlgorithms ¶
func (h *HTTPServer) GetAllConfigEncryptAlgorithms(req *restful.Request, rsp *restful.Response)
GetAllConfigEncryptAlgorithm get all config encrypt algorithm
func (*HTTPServer) GetAllConfigFileTemplates ¶
func (h *HTTPServer) GetAllConfigFileTemplates(req *restful.Request, rsp *restful.Response)
GetAllConfigFileTemplates get all config file template
func (*HTTPServer) GetClientAccessServer ¶
func (h *HTTPServer) GetClientAccessServer(ws *restful.WebService, include []string) error
GetClientAccessServer 获取配置中心接口
func (*HTTPServer) GetConfigFile ¶
func (h *HTTPServer) GetConfigFile(req *restful.Request, rsp *restful.Response)
GetConfigFile 获取单个配置文件
func (*HTTPServer) GetConfigFileMetadataList ¶
func (h *HTTPServer) GetConfigFileMetadataList(req *restful.Request, rsp *restful.Response)
GetConfigFileMetadataList 统一发现接口
func (*HTTPServer) GetConfigFileRelease ¶
func (h *HTTPServer) GetConfigFileRelease(req *restful.Request, rsp *restful.Response)
GetConfigFileRelease 获取配置文件最后一次发布内容
func (*HTTPServer) GetConfigFileReleaseHistory ¶
func (h *HTTPServer) GetConfigFileReleaseHistory(req *restful.Request, rsp *restful.Response)
GetConfigFileReleaseHistory 获取配置文件发布历史,按照发布时间倒序排序
func (*HTTPServer) GetConfigFileReleaseVersions ¶
func (h *HTTPServer) GetConfigFileReleaseVersions(req *restful.Request, rsp *restful.Response)
GetConfigFileReleaseVersions 获取配置文件最后一次发布内容
func (*HTTPServer) GetConfigFileReleases ¶
func (h *HTTPServer) GetConfigFileReleases(req *restful.Request, rsp *restful.Response)
GetConfigFileReleases 获取配置文件最后一次发布内容
func (*HTTPServer) GetConsoleAccessServer ¶
func (h *HTTPServer) GetConsoleAccessServer(include []string) (*restful.WebService, error)
GetConfigAccessServer 获取配置中心接口
func (*HTTPServer) ImportConfigFile ¶
func (h *HTTPServer) ImportConfigFile(req *restful.Request, rsp *restful.Response)
ImportConfigFile 导入配置文件
func (*HTTPServer) PublishConfigFile ¶
func (h *HTTPServer) PublishConfigFile(req *restful.Request, rsp *restful.Response)
PublishConfigFile 发布配置文件
func (*HTTPServer) QueryConfigFileGroups ¶
func (h *HTTPServer) QueryConfigFileGroups(req *restful.Request, rsp *restful.Response)
QueryConfigFileGroups 查询配置文件组,group 模糊搜索
func (*HTTPServer) RollbackConfigFileReleases ¶
func (h *HTTPServer) RollbackConfigFileReleases(req *restful.Request, rsp *restful.Response)
RollbackConfigFileReleases 获取配置文件最后一次发布内容
func (*HTTPServer) SearchConfigFile ¶
func (h *HTTPServer) SearchConfigFile(req *restful.Request, rsp *restful.Response)
SearchConfigFile 按照 group 和 name 模糊搜索配置文件,按照 tag 搜索,多个tag之间或的关系
func (*HTTPServer) UpdateConfigFile ¶
func (h *HTTPServer) UpdateConfigFile(req *restful.Request, rsp *restful.Response)
UpdateConfigFile 更新配置文件
func (*HTTPServer) UpdateConfigFileGroup ¶
func (h *HTTPServer) UpdateConfigFileGroup(req *restful.Request, rsp *restful.Response)
UpdateConfigFileGroup 更新配置文件组,只能更新 comment
func (*HTTPServer) UpsertAndReleaseConfigFile ¶
func (h *HTTPServer) UpsertAndReleaseConfigFile(req *restful.Request, rsp *restful.Response)
UpsertAndReleaseConfigFile
type NamespaceArr ¶
NamespaceArr 命名空间数组定义
func (*NamespaceArr) ProtoMessage ¶
func (*NamespaceArr) ProtoMessage()
ProtoMessage return proto message
type ServiceAliasArr ¶
type ServiceAliasArr []*apiservice.ServiceAlias
ServiceAliasArr 服务实例数组定义
func (*ServiceAliasArr) ProtoMessage ¶
func (*ServiceAliasArr) ProtoMessage()
ProtoMessage proto message