com

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdWrapper added in v0.0.20

type IdWrapper struct {
	Id string `json:"id"`
}

type Security

type Security struct {
	// contains filtered or unexported fields
}

func NewSecurity

func NewSecurity(config config.Config) (*Security, error)

func (*Security) CheckBool

func (this *Security) CheckBool(token string, kind string, id string, action model.AuthAction) (allowed bool, err error)

func (*Security) CheckMultiple

func (this *Security) CheckMultiple(token string, kind string, ids []string, action model.AuthAction) (result map[string]bool, err error)

func (*Security) GetAdminUsers added in v0.0.18

func (this *Security) GetAdminUsers(token string, topic string, resourceId string) (admins []string, err error)

func (*Security) GetResourceRights added in v0.0.18

func (this *Security) GetResourceRights(token string, kind string, id string, rights string) (result permmodel.EntryResult, found bool, err error)

func (*Security) ListAccessibleResourceIds added in v0.0.20

func (this *Security) ListAccessibleResourceIds(token string, topic string, limit int64, offset int64, action model.AuthAction) (result []string, err error)

Jump to

Keyboard shortcuts

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