errorbox

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 New

func New(options ...Option) *ErrorBox

New 新建 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

func (eb *ErrorBox) FindAddonByRuntimeID(runtimeID uint64) ([]string, error)

FindAddonByRuntimeID 根据 runtime ID 获取 addon id

func (*ErrorBox) FindRuntimeByPipelineID

func (eb *ErrorBox) FindRuntimeByPipelineID(pipelineID uint64) ([]string, error)

FindRuntimeByPipelineID 根据 pipeline Id获取 runtime id

func (*ErrorBox) List

List 通过参数过滤错误日志

type Option

type Option func(*ErrorBox)

Option 定义 Member 对象配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bdl

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

Jump to

Keyboard shortcuts

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