store

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthStore

type AuthStore struct {
	Backend auth.IStore

	ControlType string
	Storage     *Storage
	Loaded      bool
}

func (*AuthStore) GetStore

func (y *AuthStore) GetStore() auth.IStore

func (*AuthStore) Install

func (y *AuthStore) Install(args ...any) error

func (*AuthStore) SetBackend

func (y *AuthStore) SetBackend(backend auth.IStore)

func (*AuthStore) Uninstall

func (y *AuthStore) Uninstall() error

type Storage

type Storage struct {
	Users     []auth.IUserAuthInfo
	Resources []auth.IResourceInfo
}

type StorageABAC

type StorageABAC struct {
	Users     []auth.UserAuthInfoABAC `mapstructure:"users"`
	Resources []auth.ResourceInfoABAC `mapstructure:"resources"`
}

StorageABAC is a temporary struct for unmarshaling ABAC configuration.

func (*StorageABAC) SetDefaults

func (c *StorageABAC) SetDefaults() map[string]any

func (*StorageABAC) SetEnvBindings

func (c *StorageABAC) SetEnvBindings() map[string]string

type StorageRBAC

type StorageRBAC struct {
	Users     []auth.UserAuthInfoRBAC `mapstructure:"users"`
	Resources []auth.ResourceInfoRBAC `mapstructure:"resources"`
}

StorageRBAC is a temporary struct for unmarshaling RBAC configuration.

func (*StorageRBAC) SetDefaults

func (c *StorageRBAC) SetDefaults() map[string]any

func (*StorageRBAC) SetEnvBindings

func (c *StorageRBAC) SetEnvBindings() map[string]string

Jump to

Keyboard shortcuts

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