Documentation
¶
Index ¶
- Constants
- type SecurityRoleService
- func (s *SecurityRoleService) Create(role security.Role) error
- func (s *SecurityRoleService) Delete(id string) error
- func (s *SecurityRoleService) GetById(id string) (*security.Role, error)
- func (s *SecurityRoleService) List() ([]*security.Role, error)
- func (s *SecurityRoleService) Update(id string, role security.Role) error
- type SecurityService
- type SecurityUserService
- func (s *SecurityUserService) Create(user security.User) error
- func (s *SecurityUserService) Delete(id string) error
- func (s *SecurityUserService) Get(id string) (*security.User, error)
- func (s *SecurityUserService) List() ([]*security.User, error)
- func (s *SecurityUserService) Update(id string, user security.User) error
Constants ¶
View Source
const ( DefaultPasswd = "123456" ActiveStatus = "Active" DisabledStatus = "Disabled" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecurityRoleService ¶
func NewSecurityRoleService ¶
func NewSecurityRoleService(c *client.Client) *SecurityRoleService
func (*SecurityRoleService) Delete ¶
func (s *SecurityRoleService) Delete(id string) 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 ¶
func NewSecurityUserService ¶
func NewSecurityUserService(c *client.Client) *SecurityUserService
func (*SecurityUserService) Delete ¶
func (s *SecurityUserService) Delete(id string) error
Click to show internal directories.
Click to hide internal directories.