security

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPasswd  = "123456"
	ActiveStatus   = "Active"
	DisabledStatus = "Disabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityRoleService

type SecurityRoleService client.Service

func NewSecurityRoleService

func NewSecurityRoleService(c *client.Client) *SecurityRoleService

func (*SecurityRoleService) Create

func (s *SecurityRoleService) Create(role security.Role) error

func (*SecurityRoleService) Delete

func (s *SecurityRoleService) Delete(id string) error

func (*SecurityRoleService) GetById

func (s *SecurityRoleService) GetById(id string) (*security.Role, error)

func (*SecurityRoleService) List

func (s *SecurityRoleService) List() ([]*security.Role, error)

func (*SecurityRoleService) Update

func (s *SecurityRoleService) Update(id string, role security.Role) error

type SecurityService

type SecurityService struct {
	Role *SecurityRoleService
	User *SecurityUserService
	// contains filtered or unexported fields
}

func NewSecurityService

func NewSecurityService(c *client.Client) *SecurityService

type SecurityUserService

type SecurityUserService client.Service

func NewSecurityUserService

func NewSecurityUserService(c *client.Client) *SecurityUserService

func (*SecurityUserService) Create

func (s *SecurityUserService) Create(user security.User) error

func (*SecurityUserService) Delete

func (s *SecurityUserService) Delete(id string) error

func (*SecurityUserService) Get

func (s *SecurityUserService) Get(id string) (*security.User, error)

func (*SecurityUserService) List

func (s *SecurityUserService) List() ([]*security.User, error)

func (*SecurityUserService) Update

func (s *SecurityUserService) Update(id string, user security.User) error

Jump to

Keyboard shortcuts

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