Documentation ¶
Index ¶
- Constants
- type Audit
- func (a *Audit) BatchCreateAudit(reqs []apistructs.Audit) error
- func (a *Audit) Create(req apistructs.AuditCreateRequest) error
- func (a *Audit) ExportExcel(ctx context.Context, audits []model.Audit) (io.Reader, string, error)
- func (a *Audit) GetAllAppIdByOrgId(orgId uint64) ([]uint64, error)
- func (a *Audit) GetAllAppIdByProjectIds(projectIds []uint64) ([]uint64, error)
- func (a *Audit) GetAllProjectIdInOrg(orgId uint64) ([]uint64, error)
- func (a *Audit) GetAuditCleanCron(orgID int64) (*apistructs.AuditListCleanCronResponseData, error)
- func (a *Audit) List(ctx context.Context, param *apistructs.AuditsListRequest) (int, []model.Audit, error)
- func (a *Audit) UpdateAuditCleanCron(orgID, interval int64) error
- type Option
Constants ¶
View Source
const ( ErrInvalidOrg = "ErrInvalidOrg" ErrInvalidProjectInOrg = "ErrInvalidProjectInOrg" ErrInvalidAppInOrg = "ErrInvalidAppInOrg" ErrInvalidAppInProject = "ErrInvalidAppInProject" )
audit log err i18n key
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audit ¶
type Audit struct {
// contains filtered or unexported fields
}
Audit 成员操作封装
func (*Audit) BatchCreateAudit ¶
func (a *Audit) BatchCreateAudit(reqs []apistructs.Audit) error
BatchCreateAudit 批量创建审计
func (*Audit) Create ¶
func (a *Audit) Create(req apistructs.AuditCreateRequest) error
Create 创建审计事件
func (*Audit) ExportExcel ¶
ExportExcel 导出审计到excel
func (*Audit) GetAllAppIdByOrgId ¶
GetAllAppIdByOrgId get appIds By OrgId
func (*Audit) GetAllAppIdByProjectIds ¶
GetAllAppIdByProjectIds batch get appId By ProjectIds
func (*Audit) GetAllProjectIdInOrg ¶
GetAllProjectIdInOrg Get all the projectId List in org
func (*Audit) GetAuditCleanCron ¶
func (a *Audit) GetAuditCleanCron(orgID int64) (*apistructs.AuditListCleanCronResponseData, error)
GetAuditCleanCron 获取审计事件周期
func (*Audit) List ¶
func (a *Audit) List(ctx context.Context, param *apistructs.AuditsListRequest) (int, []model.Audit, error)
List Filter Audit Logs By param
func (*Audit) UpdateAuditCleanCron ¶
UpdateAuditCleanCron 更新审计事件周期
Click to show internal directories.
Click to hide internal directories.