Documentation ¶
Overview ¶
Package components provides bk component clients.
Index ¶
- Constants
- func GetClient() *resty.Client
- func RequestIDValue(ctx context.Context) string
- func SetRequestIDHeaderValue(req *http.Request, id string)
- func UnmarshalBKResult(resp *resty.Response, data interface{}) error
- func WithRequestIDValue(ctx context.Context, id string) context.Context
- type BKResult
Constants ¶
View Source
const ( // BKAPIRequestIDHeader 蓝鲸网关的请求ID BKAPIRequestIDHeader = "X-Bkapi-Request-Id" // RequestIDHeaderKey 请求ID的Header Key RequestIDHeaderKey = "X-Request-Id" )
Variables ¶
This section is empty.
Functions ¶
func SetRequestIDHeaderValue ¶
SetRequestIDHeaderValue 设置 RequestId 值到头部
func UnmarshalBKResult ¶
func UnmarshalBKResult(resp *resty.Response, data interface{}) error
UnmarshalBKResult 反序列化为蓝鲸返回规范
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package bcs provides bcs api client.
|
Package bcs provides bcs api client. |
Package bkcmdb provides bkcmdb client.
|
Package bkcmdb provides bkcmdb client. |
Package bknotice provides bknotice client.
|
Package bknotice provides bknotice client. |
Package bkpaas provides bkpaas auth client.
|
Package bkpaas provides bkpaas auth client. |
Package gse provides gse api client.
|
Package gse provides gse api client. |
Package itsm xxx
|
Package itsm xxx |
Click to show internal directories.
Click to hide internal directories.