Documentation ¶
Index ¶
- type ErrorBox
- func (eb *ErrorBox) BatchCreateErrorLogs(reqs []apistructs.Audit) error
- func (eb *ErrorBox) CreateOrUpdate(req apistructs.ErrorLogCreateRequest) error
- func (eb *ErrorBox) FindAddonByRuntimeID(runtimeID uint64) ([]string, error)
- func (eb *ErrorBox) FindRuntimeByPipelineID(pipelineID uint64) ([]string, error)
- func (eb *ErrorBox) List(param *apistructs.ErrorLogListRequest) ([]model.ErrorLog, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorBox ¶
type ErrorBox struct {
// contains filtered or unexported fields
}
ErrorBox 错误日志操作封装
func (*ErrorBox) BatchCreateErrorLogs ¶
func (eb *ErrorBox) BatchCreateErrorLogs(reqs []apistructs.Audit) error
BatchCreateErrorLogs 批量创建错误日志
func (*ErrorBox) CreateOrUpdate ¶
func (eb *ErrorBox) CreateOrUpdate(req apistructs.ErrorLogCreateRequest) error
CreateOrUpdate 记录或更新错误日志
func (*ErrorBox) FindAddonByRuntimeID ¶
FindAddonByRuntimeID 根据 runtime ID 获取 addon id
func (*ErrorBox) FindRuntimeByPipelineID ¶
FindRuntimeByPipelineID 根据 pipeline Id获取 runtime id
func (*ErrorBox) List ¶
func (eb *ErrorBox) List(param *apistructs.ErrorLogListRequest) ([]model.ErrorLog, error)
List 通过参数过滤错误日志
Click to show internal directories.
Click to hide internal directories.