Documentation
¶
Index ¶
- Constants
- Variables
- type Acl
- type Client
- type DynSec
- func (ds *DynSec) AddBaseClient(clientName, password, clientId string) error
- func (ds *DynSec) AddBaseGroup(groupName string) error
- func (ds *DynSec) AddClient(clientName, password, clientID, textName, textdescription string, ...) error
- func (ds *DynSec) AddGroup(groupName string, roleName []string, rolePriority []int) error
- func (ds *DynSec) AddRole(roleName, textName, textdescription string, aclType []string, topic []string, ...) error
- func (ds *DynSec) DeleteClient(clientName string) error
- func (ds *DynSec) DeleteGroup(groupName string) error
- func (ds *DynSec) DeleteRole(roleName string) error
- func (ds *DynSec) DisableClient(clientName string) error
- func (ds *DynSec) EnableClient(clientName string) error
- func (ds *DynSec) ExistClient(clientName string) (bool, error)
- func (ds *DynSec) ExistGroup(groupName string) (bool, error)
- func (ds *DynSec) ExistRole(roleName string) (bool, error)
- func (ds *DynSec) GetClient(clientName string) (Client, error)
- func (ds *DynSec) GetClientJson(clientName string) (string, error)
- func (ds *DynSec) GetRoleJson(roleName string) ([]byte, error)
- func (ds *DynSec) SetTimeout(timeout time.Duration)
- type DynSecCommand
- func (dsc *DynSecCommand) Acl(aclType, topic string, priority int, allow bool) Acl
- func (dsc *DynSecCommand) AddClient(clientName, password, clientID, textName, textdescription string, ...) ([]byte, error)
- func (dsc *DynSecCommand) AddGroup(groupName string, roleName []string, rolePriority []int) ([]byte, error)
- func (dsc *DynSecCommand) AddRole(roleName, textName, textdescription string, acls []Acl) ([]byte, error)
- func (dsc *DynSecCommand) DeleteClient(clientName string) ([]byte, error)
- func (dsc *DynSecCommand) DeleteGroup(groupName string) ([]byte, error)
- func (dsc *DynSecCommand) DeleteRole(roleName string) ([]byte, error)
- func (dsc *DynSecCommand) DisableClient(clientName string) ([]byte, error)
- func (dsc *DynSecCommand) EnableClient(clientName string) ([]byte, error)
- func (dsc *DynSecCommand) GetClient(clientName string) ([]byte, error)
- func (dsc *DynSecCommand) GetGroup(groupName string) ([]byte, error)
- func (dsc *DynSecCommand) GetRole(roleName string) ([]byte, error)
Constants ¶
View Source
const ( ////// acltypes PubSend = "publishClientSend" PubReceive = "publishClientReceive" SubPattern = "subscribePattern" SubLiteral = "subscribeLiteral" UnsubPattern = "unsubscribePattern" UnsubLiteral = "unsubscribeLiteral" )
Variables ¶
View Source
var AclType = struct { PublishClientSend string PublishClientReceive string SubscribeLiteral string SubscribePattern string UnsubscribeLiteral string UnsubscribePattern string }{ PublishClientSend: "publishClientSend", PublishClientReceive: "publishClientReceive", SubscribeLiteral: "subscribeLiteral", SubscribePattern: "subscribePattern", UnsubscribeLiteral: "unsubscribeLiteral", UnsubscribePattern: "unsubscribePattern", }
Functions ¶
This section is empty.
Types ¶
type DynSec ¶
type DynSec struct {
// contains filtered or unexported fields
}
func NewDynSecClient ¶ added in v0.0.4
NewDynSecClient
func (*DynSec) AddBaseClient ¶ added in v0.0.3
AddBaseClient
func (*DynSec) AddBaseGroup ¶ added in v0.0.4
AddBaseGroup
func (*DynSec) AddClient ¶
func (ds *DynSec) AddClient(clientName, password, clientID, textName, textdescription string, roleName []string, rolePriority []int, groupName []string, groupPriority []int) error
AddClient
func (*DynSec) AddRole ¶
func (ds *DynSec) AddRole(roleName, textName, textdescription string, aclType []string, topic []string, priority []int, allow []bool) error
AddRole
func (*DynSec) DeleteClient ¶ added in v0.0.3
DeleteClient
func (*DynSec) DeleteGroup ¶ added in v0.0.4
DeleteGroup
func (*DynSec) DeleteRole ¶ added in v0.0.6
DeleteRole
func (*DynSec) DisableClient ¶ added in v0.0.3
DisableClient
func (*DynSec) EnableClient ¶ added in v0.0.3
EnableClient
func (*DynSec) ExistClient ¶
ExistClient
func (*DynSec) GetClientJson ¶ added in v0.0.3
GetClientJson
func (*DynSec) GetRoleJson ¶ added in v0.0.4
GetRole
func (*DynSec) SetTimeout ¶ added in v0.0.3
SetTimeout Millisecond
type DynSecCommand ¶ added in v0.0.5
type DynSecCommand struct { }
func (*DynSecCommand) Acl ¶ added in v0.0.5
func (dsc *DynSecCommand) Acl(aclType, topic string, priority int, allow bool) Acl
Acls
func (*DynSecCommand) AddClient ¶ added in v0.0.5
func (dsc *DynSecCommand) AddClient(clientName, password, clientID, textName, textdescription string, roleName []string, rolePriority []int, groupName []string, groupPriority []int) ([]byte, error)
AddClient
func (*DynSecCommand) AddGroup ¶ added in v0.0.5
func (dsc *DynSecCommand) AddGroup(groupName string, roleName []string, rolePriority []int) ([]byte, error)
AddGroup
func (*DynSecCommand) AddRole ¶ added in v0.0.5
func (dsc *DynSecCommand) AddRole(roleName, textName, textdescription string, acls []Acl) ([]byte, error)
AddRole
func (*DynSecCommand) DeleteClient ¶ added in v0.0.5
func (dsc *DynSecCommand) DeleteClient(clientName string) ([]byte, error)
DeleteClient command
func (*DynSecCommand) DeleteGroup ¶ added in v0.0.5
func (dsc *DynSecCommand) DeleteGroup(groupName string) ([]byte, error)
DeleteGroup command
func (*DynSecCommand) DeleteRole ¶ added in v0.0.6
func (dsc *DynSecCommand) DeleteRole(roleName string) ([]byte, error)
DeleteRole command
func (*DynSecCommand) DisableClient ¶ added in v0.0.5
func (dsc *DynSecCommand) DisableClient(clientName string) ([]byte, error)
DisableClient
func (*DynSecCommand) EnableClient ¶ added in v0.0.5
func (dsc *DynSecCommand) EnableClient(clientName string) ([]byte, error)
EnableClient
func (*DynSecCommand) GetClient ¶ added in v0.0.5
func (dsc *DynSecCommand) GetClient(clientName string) ([]byte, error)
GetClient command
Click to show internal directories.
Click to hide internal directories.