acl

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package acl provides persistence and access to Access Control List

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDAO

func NewDAO(ctx context.Context, o dao.DAO) (dao.DAO, error)

Types

type DAO

type DAO interface {
	dao.DAO

	Add(interface{}) error
	SetExpiry(sql.Enquirer, time.Time, *ExpirationPeriod) (int64, error)
	Del(sql.Enquirer, *ExpirationPeriod) (numRows int64, e error)
	Search(sql.Enquirer, *[]interface{}, *ExpirationPeriod) error
}

DAO interface

type ExpirationPeriod added in v4.2.0

type ExpirationPeriod struct {
	Start time.Time
	End   time.Time
}

func ReadExpirationPeriod added in v4.2.0

func ReadExpirationPeriod(p ExpirationProvider) *ExpirationPeriod

type ExpirationProvider added in v4.2.0

type ExpirationProvider interface {
	GetExpiredBefore() int64
	GetExpiredAfter() int64
}

Directories

Path Synopsis
Package grpc provides a service for storing and CRUD-ing ACLs
Package grpc provides a service for storing and CRUD-ing ACLs
Package rest is a REST gateway to the grpc ACL service
Package rest is a REST gateway to the grpc ACL service

Jump to

Keyboard shortcuts

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