repository

package
v0.0.0-...-454c3e9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	repository.Repository
}

func New

func New() *Repository

New create new repository

func (*Repository) Approve

func (r *Repository) Approve(ctx context.Context, id uint64, message string) error

func (*Repository) Count

func (r *Repository) Count(ctx context.Context, qops ...zone.Option) (count int64, err error)

func (*Repository) Create

func (r *Repository) Create(ctx context.Context, object *models.Zone) (uint64, error)

func (*Repository) Delete

func (r *Repository) Delete(ctx context.Context, id uint64, message string) error

func (*Repository) FetchList

func (r *Repository) FetchList(ctx context.Context, qops ...zone.Option) (list []*models.Zone, err error)

func (*Repository) Get

func (r *Repository) Get(ctx context.Context, id uint64) (*models.Zone, error)

func (*Repository) GetByCodename

func (r *Repository) GetByCodename(ctx context.Context, codename string) (*models.Zone, error)

func (*Repository) Pause

func (r *Repository) Pause(ctx context.Context, id uint64, message string) error

func (*Repository) Reject

func (r *Repository) Reject(ctx context.Context, id uint64, message string) error

func (*Repository) Run

func (r *Repository) Run(ctx context.Context, id uint64, message string) error

func (*Repository) Update

func (r *Repository) Update(ctx context.Context, id uint64, object *models.Zone) error

Jump to

Keyboard shortcuts

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