policy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	common.DefaultDBService
}

func (Policy) Create

func (p Policy) Create(policy *repository.ForgetPolicy, options common.DBOptions) error

func (Policy) Delete

func (p Policy) Delete(id int, options common.DBOptions) error

func (Policy) Get

func (p Policy) Get(id int, options common.DBOptions) (*repository.ForgetPolicy, error)

func (Policy) List

func (p Policy) List(options common.DBOptions) (policies []repository.ForgetPolicy, err error)

func (Policy) Search

func (p Policy) Search(repoId int, path string, options common.DBOptions) (policies []repository.ForgetPolicy, err error)

func (Policy) Update

func (p Policy) Update(policy *repository.ForgetPolicy, options common.DBOptions) error

func (Policy) UpdateField

func (p Policy) UpdateField(id int, fieldName string, value interface{}, options common.DBOptions) error

type Service

type Service interface {
	common.DBService
	Create(policy *repository.ForgetPolicy, options common.DBOptions) error
	List(options common.DBOptions) ([]repository.ForgetPolicy, error)
	Search(repoId int, path string, options common.DBOptions) ([]repository.ForgetPolicy, error)
	Get(id int, options common.DBOptions) (*repository.ForgetPolicy, error)
	Delete(id int, options common.DBOptions) error
	Update(policy *repository.ForgetPolicy, options common.DBOptions) error
	UpdateField(id int, fieldName string, value interface{}, options common.DBOptions) error
}

func GetService

func GetService() Service

Jump to

Keyboard shortcuts

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