dao

package
v0.0.0-...-cc6ace1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePolicy

func CreatePolicy(ctx context.Context, p *models.RetentionPolicy) (int64, error)

CreatePolicy Create Policy

func DeletePolicy

func DeletePolicy(ctx context.Context, id int64) error

DeletePolicy Update Policy

func GetPolicy

func GetPolicy(ctx context.Context, id int64) (*models.RetentionPolicy, error)

GetPolicy Get Policy

func ListPolicies

func ListPolicies(ctx context.Context, query *q.Query) ([]*models.RetentionPolicy, error)

ListPolicies list retention policy by query

func UpdatePolicy

func UpdatePolicy(ctx context.Context, p *models.RetentionPolicy, cols ...string) error

UpdatePolicy Update Policy

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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