repository

package
v0.0.0-...-833fa1d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package repository implements methods of working with the repository objects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	repository.Repository
}

Repository DAO which provides functionality of working with RBAC roles

func New

func New() *Repository

New role repository

func (*Repository) Count

func (r *Repository) Count(ctx context.Context, filter *authclient.Filter) (int64, error)

Count returns count of records by filter

func (*Repository) Create

func (r *Repository) Create(ctx context.Context, roleObj *model.AuthClient) (string, error)

Create new object into database

func (*Repository) Delete

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

Delete delites record by ID

func (*Repository) FetchList

func (r *Repository) FetchList(ctx context.Context, filter *authclient.Filter) ([]*model.AuthClient, error)

FetchList returns list of RBAC roles by filter

func (*Repository) Get

func (r *Repository) Get(ctx context.Context, id string) (*model.AuthClient, error)

Get returns RBAC role model by ID

func (*Repository) Update

func (r *Repository) Update(ctx context.Context, id string, roleObj *model.AuthClient) error

Update existing object in database

Jump to

Keyboard shortcuts

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