Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultCost = 11
)
Variables ¶
This section is empty.
Functions ¶
func GenerateSnapdAuthFiles ¶
func StoreNatsParameters ¶
Types ¶
type PermissionMap ¶
type PermissionMap struct { Allow []string `json:"allow,omitempty"` Deny []string `json:"deny,omitempty"` }
PermissionMap
type Permissions ¶
type Permissions struct { Publish *PermissionsProperty `json:"publish,omitempty"` Subscribe *PermissionsProperty `json:"subscribe,omitempty"` }
Permissions
func NewPerms ¶
func NewPerms(publish *PermissionsProperty, subscribe *PermissionsProperty) *Permissions
Create a new Permissions group (see https://docs.nats.io/nats-server/configuration/securing_nats/authorization#permissions-configuration-map)
type PermissionsProperty ¶
type PermissionsProperty struct { PermissionMap *PermissionMap `json:"permissionMap,omitempty"` Subject []string `json:"subject,omitempty"` }
PermissionsProperty
func NewPermMapPermsProp ¶
func NewPermMapPermsProp(allow []string, deny []string) *PermissionsProperty
Create a new Permissions Property that contains a permissions map (see https://docs.nats.io/nats-server/configuration/securing_nats/authorization#permission-map)
func NewSubjectPermsProp ¶
func NewSubjectPermsProp(subject []string) *PermissionsProperty
Creates a new Permissions Property that contains a list of subjects (see https://docs.nats.io/nats-server/configuration/securing_nats/authorization#permissions-configuration-map)
Click to show internal directories.
Click to hide internal directories.