native

package
v1.27.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type ElasticsearchAPIMetadata

type ElasticsearchAPIMetadata struct {
	Name    string   `json:"name"`
	Methods []string `json:"methods"`
	Path    string   `json:"path"`
}

type ElasticsearchAPIMetadataList

type ElasticsearchAPIMetadataList []ElasticsearchAPIMetadata

func (ElasticsearchAPIMetadataList) GetNames

func (list ElasticsearchAPIMetadataList) GetNames() []string

type NativeRealm

type NativeRealm struct {
}

func (*NativeRealm) Authenticate

func (r *NativeRealm) Authenticate(username, password string) (bool, *rbac.User, error)

func (*NativeRealm) Authorize

func (r *NativeRealm) Authorize(user *rbac.User) (bool, error)

func (*NativeRealm) GetType

func (r *NativeRealm) GetType() string

type Role

type Role struct {
}

func (*Role) Create

func (dal *Role) Create(role *rbac.Role) (string, error)

func (*Role) Delete

func (dal *Role) Delete(id string) error

func (*Role) Get

func (dal *Role) Get(id string) (rbac.Role, error)

func (*Role) GetBy

func (dal *Role) GetBy(field string, value interface{}) (rbac.Role, error)

func (*Role) Search

func (dal *Role) Search(keyword string, from, size int) (orm.Result, error)

func (*Role) Update

func (dal *Role) Update(role *rbac.Role) error

type User

type User struct {
}

func (*User) Create

func (dal *User) Create(user *rbac.User) (string, error)

func (*User) Delete

func (dal *User) Delete(id string) error

func (*User) Get

func (dal *User) Get(id string) (rbac.User, error)

func (*User) GetBy

func (dal *User) GetBy(field string, value interface{}) (*rbac.User, error)

func (*User) Search

func (dal *User) Search(keyword string, from, size int) (orm.Result, error)

func (*User) Update

func (dal *User) Update(user *rbac.User) error

Jump to

Keyboard shortcuts

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