Documentation ¶
Index ¶
- func CreatePolicy(ctx context.Context, p *models.RetentionPolicy) (int64, error)
- func DeletePolicy(ctx context.Context, id int64) error
- func GetPolicy(ctx context.Context, id int64) (*models.RetentionPolicy, error)
- func ListPolicies(ctx context.Context, query *q.Query) ([]*models.RetentionPolicy, error)
- func UpdatePolicy(ctx context.Context, p *models.RetentionPolicy, cols ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePolicy ¶
CreatePolicy Create Policy
func DeletePolicy ¶
DeletePolicy Update Policy
func ListPolicies ¶
ListPolicies list retention policy by query
func UpdatePolicy ¶
UpdatePolicy Update Policy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.