acl

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

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

Documentation

Overview

Package acl provides persistence and access to Access Control List

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DAO

type DAO interface {
	Migrate(context.Context) error
	Add(context.Context, interface{}) error
	SetExpiry(context.Context, service2.Enquirer, *time.Time, *ExpirationPeriod) (int64, error)
	Del(context.Context, service2.Enquirer, *ExpirationPeriod) (numRows int64, e error)
	Search(context.Context, service2.Enquirer, *[]interface{}, *ExpirationPeriod) error
}

DAO interface

type ExpirationPeriod

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

func ReadExpirationPeriod

func ReadExpirationPeriod(p ExpirationProvider) *ExpirationPeriod

type ExpirationProvider

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

Directories

Path Synopsis
dao
sql
service
Package service provides a GRPC service for storing and CRUD-ing ACLs
Package service provides a GRPC service for storing and CRUD-ing ACLs
service
Package service is a REST gateway to the grpc ACL service
Package service 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