sql

package
v5.0.0-...-2679821 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDAO

func NewDAO(db *gorm.DB) policy.DAO

Types

type Manager

type Manager interface {
	WithContext(ctx context.Context) ladon.Manager
	ladon.Manager
	ladon.Warden
}

func NewManager

func NewManager(db *gorm.DB) Manager

NewManager initializes a new SQLManager for given db instance.

type ScanPolicy

type ScanPolicy struct {
	ID          string                          `gorm:"column:id"`
	Description string                          `gorm:"column:description;"`
	Subject     string                          `gorm:"column:subject;"`
	Resource    string                          `gorm:"column:resource;"`
	Action      string                          `gorm:"column:action;"`
	Effect      idm.PolicyEffect                `gorm:"column:effect;"`
	Conditions  map[string]*idm.PolicyCondition `gorm:"column:conditions;serializer:json;"`
}

Jump to

Keyboard shortcuts

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