Documentation ¶
Index ¶
- func NotDeleted(db *gorm.DB) *gorm.DB
- type ActionParams
- type DBClient
- func (db *DBClient) BatchCreateRuleExecRecords(r []RuleExecRecord) error
- func (db *DBClient) CreateRule(r *Rule) error
- func (db *DBClient) CreateRuleExecRecord(r *RuleExecRecord) error
- func (db *DBClient) DeleteRule(id string) error
- func (db *DBClient) GetRule(id string) (*Rule, error)
- func (db *DBClient) ListRuleExecRecords(req *pb.ListRuleExecHistoryRequest) ([]RuleExecRecord, int64, error)
- func (db *DBClient) ListRules(req *pb.ListRulesRequest, withSystem bool) ([]Rule, int64, error)
- func (db *DBClient) UpdateRule(r *Rule) error
- type Env
- type Rule
- type RuleExecRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionParams ¶
type ActionParams pb.ActionParams
func (*ActionParams) Scan ¶
func (p *ActionParams) Scan(value interface{}) error
type DBClient ¶
func (*DBClient) BatchCreateRuleExecRecords ¶
func (db *DBClient) BatchCreateRuleExecRecords(r []RuleExecRecord) error
func (*DBClient) CreateRule ¶
func (*DBClient) CreateRuleExecRecord ¶
func (db *DBClient) CreateRuleExecRecord(r *RuleExecRecord) error
func (*DBClient) DeleteRule ¶
func (*DBClient) ListRuleExecRecords ¶
func (db *DBClient) ListRuleExecRecords(req *pb.ListRuleExecHistoryRequest) ([]RuleExecRecord, int64, error)
func (*DBClient) UpdateRule ¶
type Rule ¶
type RuleExecRecord ¶
type RuleExecRecord struct { ID string `gorm:"primary_key"` CreatedAt time.Time UpdatedAt time.Time Scope string ScopeID string RuleID string Code string Env Env Succeed *bool ActionOutput string SoftDeletedAt uint64 Actor string }
func (RuleExecRecord) TableName ¶
func (RuleExecRecord) TableName() string
Click to show internal directories.
Click to hide internal directories.