repo

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACIRepository

type ACIRepository struct {
	// contains filtered or unexported fields
}

func NewACIRepository

func NewACIRepository(dialector gorm.Dialector) *ACIRepository

func (*ACIRepository) CheckByRoleId

func (a *ACIRepository) CheckByRoleId(ctx context.Context, roleId string, resource string, payload string) (bool, error)

func (*ACIRepository) CheckByUserId

func (a *ACIRepository) CheckByUserId(ctx context.Context, userId string, resource string, payload string) (bool, error)

func (*ACIRepository) Create

func (a *ACIRepository) Create(ctx context.Context, aci *domain.ACI) error

func (*ACIRepository) Delete added in v0.1.11

func (a *ACIRepository) Delete(ctx context.Context, id string) error

func (*ACIRepository) GetById

func (a *ACIRepository) GetById(ctx context.Context, id string) (*domain.ACI, error)

func (*ACIRepository) GetByPayload

func (a *ACIRepository) GetByPayload(ctx context.Context, payload string) ([]*domain.ACI, error)

func (*ACIRepository) GetByResource

func (a *ACIRepository) GetByResource(ctx context.Context, resource string) ([]*domain.ACI, error)

func (*ACIRepository) GetByRoleId

func (a *ACIRepository) GetByRoleId(ctx context.Context, roleId string) ([]*domain.ACI, error)

func (*ACIRepository) GetByUserId

func (a *ACIRepository) GetByUserId(ctx context.Context, userId string) ([]*domain.ACI, error)

func (*ACIRepository) GetResourcesByUserIdAndPayload added in v0.1.13

func (a *ACIRepository) GetResourcesByUserIdAndPayload(ctx context.Context, userId string, payload string) ([]*domain.ACI, error)

func (*ACIRepository) GetResourcesByUserIdAndResource added in v0.2.2

func (a *ACIRepository) GetResourcesByUserIdAndResource(ctx context.Context, userId string, resource string) ([]*domain.ACI, error)

func (*ACIRepository) List added in v0.1.8

func (*ACIRepository) Update added in v0.1.11

func (a *ACIRepository) Update(ctx context.Context, aci *domain.ACI) error

Jump to

Keyboard shortcuts

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