bscp

package module
v0.0.0-...-6ed4abe Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 12 Imported by: 0

README

蓝鲸服务配置中心.png


licenseRelease Version BK Pipelines Status PRs Welcome

EnglishDocs

蓝鲸服务配置中心(BlueKing Service Configuration Provider)是为业务提供服务配置管理功能,平台与蓝鲸其它产品打通,为业务提供一站式解决方案。 平台以业务作为顶层设计,隔离各个业务的服务配置,使用蓝鲸权限中心做服务级别的权限管控,支持业务传统与容器模式的业务配置托管,目前支持文件型配置与键值(KV)型配置。

Overview

使用BSCP能做什么?

  • 业务进程与配置文件分离
  • 配置版本管理和热更新
  • 全时灰度控制
  • 模板化管理配置
  • 支持 文件、KV、表格类型配置
  • 提供容器、主机、SDK、API、流水线插件等多种消费方式

了解BSCP更详细功能,请参考蓝鲸服务配置中心白皮书

Getting Started

Contributing

对于项目感兴趣,想一起贡献并完善项目请参阅contributing

腾讯开源激励计划 鼓励开发者的参与和贡献,期待你的加入。

Support

FAQ

BlueKing Community

  • BK-BCS:蓝鲸容器管理平台是以容器技术为基础,为微服务业务提供编排管理的基础服务平台。
  • BK-CMDB:蓝鲸配置平台(蓝鲸CMDB)是一个面向资产及应用的企业级配置管理平台。
  • BK-CI:蓝鲸持续集成平台是一个开源的持续集成和持续交付系统,可以轻松将你的研发流程呈现到你面前。
  • BK-PaaS:蓝鲸PaaS平台是一个开放式的开发平台,让开发者可以方便快捷地创建、开发、部署和管理SaaS应用。
  • BK-JOB:蓝鲸作业平台(Job)是一套运维脚本管理系统,具备海量任务并发处理能力。
  • BK-SOPS:标准运维(SOPS)是通过可视化的图形界面进行任务流程编排和执行的系统,是蓝鲸体系中一款轻量级的调度编排类SaaS产品

License

bk-bscp是基于MIT协议, 详细请参考LICENSE

Documentation

Overview

Package bscp use embed ui

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbedWeb

type EmbedWeb struct {
	// contains filtered or unexported fields
}

EmbedWeb ..

func NewEmbedWeb

func NewEmbedWeb() *EmbedWeb

NewEmbedWeb 初始化模版和fs

func (*EmbedWeb) FaviconHandler

func (e *EmbedWeb) FaviconHandler(w http.ResponseWriter, r *http.Request)

FaviconHandler favicon Handler

func (*EmbedWeb) Render403Handler

func (e *EmbedWeb) Render403Handler(conf *IndexConfig) http.Handler

Render403Handler 403.html 页面

func (*EmbedWeb) RenderIndexHandler

func (e *EmbedWeb) RenderIndexHandler(conf *IndexConfig) http.Handler

RenderIndexHandler vue html 模板渲染

func (*EmbedWeb) StaticFileHandler

func (e *EmbedWeb) StaticFileHandler(prefix string) http.Handler

StaticFileHandler 静态文件处理函数

type EmbedWebServer

type EmbedWebServer interface {
	RenderIndexHandler(conf *IndexConfig) http.Handler
	Render403Handler(conf *IndexConfig) http.Handler
	FaviconHandler(w http.ResponseWriter, r *http.Request)
	StaticFileHandler(prefix string) http.Handler
}

EmbedWebServer 前端 web server

type IndexConfig

type IndexConfig struct {
	RunEnv               string
	StaticURL            string
	IAMHost              string
	CMDBHost             string
	APIURL               string
	SiteURL              string // vue 路由前缀
	EnableBKNotice       bool   // 是否启用蓝鲸通知中心
	Helper               string
	ProxyAPI             bool
	GrpcAddr             string // feed-server grpc 地址
	HttpAddr             string // feed-server http 地址
	BKSharedResBaseJSURL string // 规则是${bkSharedResUrl}/${目录名 aka app_code}/base.js
	NodeManHost          string
	UserManHost          string
}

IndexConfig 前端配置

Directories

Path Synopsis
cmd
api-server
Package main is the entry point of the API server.
Package main is the entry point of the API server.
api-server/app
Package app NOTES
Package app NOTES
api-server/cmd
Package cmd provides operations for init and upgrading the bk-apigateway resources
Package cmd provides operations for init and upgrading the bk-apigateway resources
api-server/options
Package options NOTES
Package options NOTES
api-server/service
Package service NOTES
Package service NOTES
auth-server
Package main This is the entry point for the authentication server, providing authentication services.
Package main This is the entry point for the authentication server, providing authentication services.
auth-server/app
Package app NOTES
Package app NOTES
auth-server/cmd
Package cmd provides operations for upgrading the permission model.
Package cmd provides operations for upgrading the permission model.
auth-server/options
Package options NOTES
Package options NOTES
auth-server/service
Package service NOTES
Package service NOTES
auth-server/service/auth
Package auth NOTES
Package auth NOTES
auth-server/service/iam
Package iam NOTES
Package iam NOTES
auth-server/service/initial
Package initial NOTES
Package initial NOTES
cache-service
The main package is the entry point for the Cache Service, providing caching functionality.
The main package is the entry point for the Cache Service, providing caching functionality.
cache-service/app
Package app NOTES
Package app NOTES
cache-service/options
Package options NOTES
Package options NOTES
cache-service/service
Package service NOTES
Package service NOTES
cache-service/service/cache/client
Package client NOTES
Package client NOTES
cache-service/service/cache/event
Package event handle client metric
Package event handle client metric
cache-service/service/cache/keys
Package keys is for the cache keys
Package keys is for the cache keys
config-server
Package The main package serves as the entry point for the configuration server.
Package The main package serves as the entry point for the configuration server.
config-server/app
Package app NOTES
Package app NOTES
config-server/options
Package options NOTES
Package options NOTES
config-server/service
Package service NOTES
Package service NOTES
data-service
main ...
main ...
data-service/app
Package app NOTES
Package app NOTES
data-service/cmd
Package cmd provides command-line operations for upgrading and rolling back database table structures.
Package cmd provides command-line operations for upgrading and rolling back database table structures.
data-service/db-migration
Package dbmigration is for db migration operations
Package dbmigration is for db migration operations
data-service/db-migration/migrations
Package migrations init schema
Package migrations init schema
data-service/db-migration/migrator
Package migrator is the manager of db migrations
Package migrator is the manager of db migrations
data-service/options
Package options NOTES
Package options NOTES
data-service/service
Package service NOTES
Package service NOTES
data-service/service/crontab
Package crontab example Synchronize the online status of the client
Package crontab example Synchronize the online status of the client
feed-proxy
Package main is the entry point of the application and contains the main logic of the application.
Package main is the entry point of the application and contains the main logic of the application.
feed-proxy/app
Package app NOTES
Package app NOTES
feed-proxy/options
Package options NOTES
Package options NOTES
feed-proxy/proxy/grpc
Package grpc NOTES
Package grpc NOTES
feed-proxy/proxy/http
Package http NOTES
Package http NOTES
feed-proxy/service
Package service NOTES
Package service NOTES
feed-server
Package main is the entry point of the application and contains the main logic of the application.
Package main is the entry point of the application and contains the main logic of the application.
feed-server/app
Package app NOTES
Package app NOTES
feed-server/bll
Package bll business logical layer which implements all the logical operations.
Package bll business logical layer which implements all the logical operations.
feed-server/bll/asyncdownload
Package asyncdownload NOTES
Package asyncdownload NOTES
feed-server/bll/auth
Package auth NOTES
Package auth NOTES
feed-server/bll/client-set
Package clientset provides a collection of clients for communication with external services.
Package clientset provides a collection of clients for communication with external services.
feed-server/bll/eventc
Package eventc eventc ...
Package eventc eventc ...
feed-server/bll/lcache
Package lcache provides a cache library for storing and retrieving data.
Package lcache provides a cache library for storing and retrieving data.
feed-server/bll/observer
Package observer NOTES
Package observer NOTES
feed-server/bll/release
Package release NOTES
Package release NOTES
feed-server/bll/types
Package types NOTES
Package types NOTES
feed-server/options
Package options NOTES
Package options NOTES
feed-server/service
Package service NOTES
Package service NOTES
ui
main ...
main ...
ui/service
Package service provides functionality for displaying the UI interface.
Package service provides functionality for displaying the UI interface.
vault-server
main ...
main ...
vault-server/app
Package app NOTES
Package app NOTES
vault-server/options
Package options NOTES
Package options NOTES
vault-server/service
Package service provides the functionality for the service layer
Package service provides the functionality for the service layer
vault-server/vault-plugins
Package service encapsulates Vault secret plugins and provides key-value storage and PKI storage functionality.
Package service encapsulates Vault secret plugins and provides key-value storage and PKI storage functionality.
vault-server/vault-plugins/service
Package service encapsulates Vault secret plugins and provides key-value storage and PKI storage functionality.
Package service encapsulates Vault secret plugins and provides key-value storage and PKI storage functionality.
main ...
Package docs xxx
Package docs xxx
internal
audit
Package audit is for audit operation
Package audit is for audit operation
audit/routematch
Package routematch is for route match operation
Package routematch is for route match operation
components
Package components provides bk component clients.
Package components provides bk component clients.
components/bcs
Package bcs provides bcs api client.
Package bcs provides bcs api client.
components/bkcmdb
Package bkcmdb provides bkcmdb client.
Package bkcmdb provides bkcmdb client.
components/bknotice
Package bknotice provides bknotice client.
Package bknotice provides bknotice client.
components/bkpaas
Package bkpaas provides bkpaas auth client.
Package bkpaas provides bkpaas auth client.
components/gse
Package gse provides gse api client.
Package gse provides gse api client.
components/itsm
Package itsm xxx
Package itsm xxx
criteria/constant
Package constant is for constant
Package constant is for constant
dal/bedis
Package bedis means bscp redis client package
Package bedis means bscp redis client package
dal/dao
Package dao NOTES
Package dao NOTES
dal/gen
Package gen contains code generated by gorm.io/gen
Package gen contains code generated by gorm.io/gen
dal/orm
Package orm NOTES
Package orm NOTES
dal/repository
Package repository is interface and its implementation for different repositories
Package repository is interface and its implementation for different repositories
dal/sharding
Package sharding NOTES
Package sharding NOTES
dal/utils
Package utils xxx
Package utils xxx
dal/vault
Package vault NOTES
Package vault NOTES
event
Package event NOTES
Package event NOTES
iam/apigw
Package apigw document sync gateway
Package apigw document sync gateway
iam/auth
Package auth NOTES
Package auth NOTES
ratelimiter
Package ratelimiter provides custom rate limiter
Package ratelimiter provides custom rate limiter
rest/view
Package view provides a simple way to create HTTP handlers that implement the http.Handler interface.
Package view provides a simple way to create HTTP handlers that implement the http.Handler interface.
rest/view/modifier
Package modifier is the interface used to modify response
Package modifier is the interface used to modify response
rest/view/webannotation
Package webannotation webannotation
Package webannotation webannotation
runtime/archive
Package archive xxx
Package archive xxx
runtime/brpc
Package brpc NOTES
Package brpc NOTES
runtime/ctl
Package ctl NOTES
Package ctl NOTES
runtime/ctl/cmd
Package cmd NOTES
Package cmd NOTES
runtime/flags
Package flags NOTES
Package flags NOTES
runtime/grpcgw
Package grpcgw is a grpc-gateway wrapper
Package grpcgw is a grpc-gateway wrapper
runtime/gwparser
Package gwparser NOTES
Package gwparser NOTES
runtime/handler
Package handler NOTES
Package handler NOTES
runtime/lock
Package lock NOTES
Package lock NOTES
runtime/natsort
Package natsort Natural sorting
Package natsort Natural sorting
runtime/shutdown
Package shutdown NOTES
Package shutdown NOTES
search
Package search provides custom search functions.
Package search provides custom search functions.
serviced
Package serviced NOTES
Package serviced NOTES
space
Package space provides bscp space manager.
Package space provides bscp space manager.
thirdparty/esb/bklogin
Package bklogin NOTES
Package bklogin NOTES
thirdparty/esb/client
Package client NOTES
Package client NOTES
thirdparty/esb/cmdb
Package cmdb NOTES
Package cmdb NOTES
thirdparty/esb/types
Package types NOTES
Package types NOTES
thirdparty/repo
Package repo provides bkrepo client.
Package repo provides bkrepo client.
tmplprocess
Package tmplprocess is used for template process
Package tmplprocess is used for template process
pkg module
protocol Module
scripts
gen
Package main is the entry of the gorm/gen code generator.
Package main is the entry of the gorm/gen code generator.
migrations/itsm
Package itsm 在 ITSM 注册服务,包括:创建命名空间、更新命名空间、删除命名空间, 允许重复执行
Package itsm 在 ITSM 注册服务,包括:创建命名空间、更新命名空间、删除命名空间, 允许重复执行
test
benchmark/case/api-server
Package main xxx
Package main xxx
benchmark/run
Package run NOTES
Package run NOTES
client
Package client NOTES
Package client NOTES
client/cache
Package cache NOTES
Package cache NOTES
client/feed
Package feed NOTES
Package feed NOTES
mock/repo
Package main xxx
Package main xxx
mock/repo/app
Package app NOTES
Package app NOTES
mock/repo/options
Package options NOTES
Package options NOTES
mock/repo/service
Package service NOTES
Package service NOTES
suite
Package suite NOTES
Package suite NOTES
suite/tools
Package main is used as the entry of the suit-test tool
Package main is used as the entry of the suit-test tool
unit
Package unit xxx
Package unit xxx
util
Package util is a tool for test
Package util is a tool for test

Jump to

Keyboard shortcuts

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