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 (*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 模板渲染
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 地址
NodeManHost string
UserManHost string
}
IndexConfig 前端配置
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
api-server
command
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
command
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
command
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
command
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
command
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
command
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
command
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
command
main ...
|
main ... |
|
ui/service
Package service provides functionality for displaying the UI interface.
|
Package service provides functionality for displaying the UI interface. |
|
vault-server
command
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
command
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. |
|
vault-server/vault-sidecar
command
main ...
|
main ... |
|
vault-server/vault
module
|
|
|
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 |
|
components/itsm/api
Package itsm xxx
|
Package itsm xxx |
|
components/itsm/v2
Package itsm xxx
|
Package itsm xxx |
|
components/itsm/v4
Package itsmv4 xxx
|
Package itsmv4 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 |
|
i18n/translations
Package translations is used to generate translations for different languages
|
Package translations is used to generate translations for different languages |
|
iam/apigw
Package apigw document sync gateway
|
Package apigw document sync gateway |
|
iam/auth
Package auth NOTES
|
Package auth NOTES |
|
logger
Package logger 提供日志功能
|
Package logger 提供日志功能 |
|
processor/cmdb
Package cmdb provides cmdb service.
|
Package cmdb provides cmdb service. |
|
processor/gse
Package gse provides gse service.
|
Package gse provides gse service. |
|
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. |
|
task
* Tencent is pleased to support the open source community by making Blueking Container Service available.
|
* Tencent is pleased to support the open source community by making Blueking Container Service available. |
|
task/step/hello
* Tencent is pleased to support the open source community by making Blueking Container Service available.
|
* Tencent is pleased to support the open source community by making Blueking Container Service available. |
|
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
|
|
|
example
command
|
|
|
scripts
|
|
|
gen
command
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
command
Package main xxx
|
Package main xxx |
|
benchmark/run
Package run NOTES
|
Package run NOTES |
|
benchmark/tools/gen-data
command
|
|
|
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
command
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
command
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 |
Click to show internal directories.
Click to hide internal directories.
