Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { CreateImmutableRule(ctx context.Context, ir *model.ImmutableRule) (int64, error) UpdateImmutableRule(ctx context.Context, projectID int64, ir *model.ImmutableRule) error ToggleImmutableRule(ctx context.Context, id int64, status bool) error GetImmutableRule(ctx context.Context, id int64) (*model.ImmutableRule, error) Count(ctx context.Context, query *q.Query) (int64, error) ListImmutableRules(ctx context.Context, query *q.Query) ([]*model.ImmutableRule, error) DeleteImmutableRule(ctx context.Context, id int64) error }
DAO defines the interface to access the ImmutableRule data model
Click to show internal directories.
Click to hide internal directories.