Documentation
¶
Index ¶
- Constants
- Variables
- func ConnectAPI(url, srvtopic string) *nats.Conn
- func EntityRegister(server, identity string, token APIToken, roles, groups, queue string, ...) (passCd string, status int)
- func EntityRemove(server, identity string, token APIToken) (resp string, status int)
- func EntityRetrieve(server, identity string, token APIToken) (resp string, status int)
- func EntityUpdate(server, identity string, token APIToken, body []byte) (resp string, status int)
- func GenKey() *ecc.KeyPair
- func GetSessionKey(token string) *ecc.KeyPair
- func InitChannel(server, ch string, token APIToken, create bool) (string, error)
- func RelationRegister(server, identity string, token APIToken, mode string) (resp string, status int)
- func RelationRemove(server, identity string, token APIToken) (resp string, status int)
- func RelationRetrieve(server, identity string, token APIToken) (resp string, status int)
- func SCCheckAndResolve(server, channel string, token APIToken, rdid string) (string, error)
- func SecureChannelPublish(msg []byte, server string, channel string, token APIToken, rdid string, ...) error
- func SecureChannelQueueSubscribe(server, channel, queue string, token APIToken, rdid string, cb nats.MsgHandler) (*nats.Subscription, error)
- func SecureChannelRequest(server, subj, rdid string, token APIToken, data []byte, timeout time.Duration) (*nats.Msg, error)
- func SetAspect(dopts Dopts, val string)
- func SetContentType(dopts Dopts, val string)
- func SetCount(dopts Dopts, val string)
- func SetDocId(dopts Dopts, val string)
- func SetDomain(dopts Dopts, val string)
- func SetEncryptDataPKey(dopts Dopts, val string)
- func SetEntity(dopts Dopts, val string)
- func SetEntityAccess(dopts Dopts, val string)
- func SetExpiry(dopts Dopts, val string)
- func SetGroups(dopts Dopts, val string)
- func SetMatch(dopts Dopts, val string)
- func SetNoHeaders(dopts Dopts, val string)
- func SetRDID(dopts Dopts, val string)
- func SetRoles(dopts Dopts, val string)
- func SetSecureHeader(dopts Dopts, val string)
- func SetTag(dopts Dopts, val string)
- func SetTemplateClass(dopts Dopts, val string)
- func SetTemplateIDs(dopts Dopts, val string)
- func SetTimestamp(dopts Dopts, val string)
- func SetVal(dopts Dopts, val string)
- func SetWithHeaders(dopts Dopts, val string)
- func SetupSecureChannels(server string, channelList []string, token APIToken, create bool) map[string]string
- func SysAdminRegister(server, identity, passCode string, token APIToken, roles, groups string) (passCd string, status int)
- func TemplateRegister(server, tname, tclass, tsource string, token APIToken) (resp string, status int)
- func TemplateRetrieve(server, tname, tclass string, token APIToken) (resp string, status int)
- type ACTemplate
- type APIToken
- type CFSLConfig
- type Dopts
- type NATSReqHeader
- type NATSRequest
- type NATSResponse
- type NATSResponseHeader
- type NATSSCData
- type TokenKeyCache
Constants ¶
View Source
const DefaultServer = "disp-requests"
Variables ¶
Functions ¶
func ConnectAPI ¶
func EntityRegister ¶
func EntityRemove ¶ added in v0.0.17
func EntityRetrieve ¶
func EntityUpdate ¶ added in v0.0.16
func GetSessionKey ¶ added in v0.0.11
func InitChannel ¶ added in v0.0.9
///////////////////////////////// SECURE CHANNELS ////////////// //
func RelationRegister ¶
func RelationRemove ¶ added in v0.0.18
func RelationRetrieve ¶ added in v0.0.8
func SCCheckAndResolve ¶ added in v0.0.11
func SecureChannelPublish ¶ added in v0.0.8
func SecureChannelQueueSubscribe ¶ added in v0.0.8
func SecureChannelQueueSubscribe(server, channel, queue string, token APIToken, rdid string, cb nats.MsgHandler) (*nats.Subscription, error)
func SecureChannelRequest ¶ added in v0.0.9
func SetContentType ¶ added in v0.0.11
func SetEncryptDataPKey ¶
func SetEntityAccess ¶ added in v0.0.2
func SetNoHeaders ¶
func SetSecureHeader ¶ added in v0.0.20
func SetTemplateClass ¶ added in v0.0.29
func SetTemplateIDs ¶ added in v0.0.28
func SetTimestamp ¶
func SetWithHeaders ¶
func SetupSecureChannels ¶ added in v0.0.9
func SysAdminRegister ¶
func TemplateRegister ¶ added in v0.0.23
Types ¶
type ACTemplate ¶ added in v0.0.24
type ACTemplate struct {
Template header `json:"template"`
}
type CFSLConfig ¶ added in v0.0.11
type CFSLConfig struct {
User string `json:"user"`
//Token APIToken `json:"token"`
Company string `json:"company"`
Email string `json:"email"`
Os string `json:"os"`
Expiration uint64 `json:"expiration"`
License string `json:"license"`
ServerType string `json:"serverType"`
MaxInstances int `json:"maxinstances"`
MaxFSMemory int `json:"maxfsmemory"`
MaxNumFS int `json:"maxnumFS"`
}
func CFSInit ¶ added in v0.0.11
func CFSInit(server string, body []byte) *CFSLConfig
func GetCFSLicense ¶ added in v0.0.11
func GetCFSLicense(server string, token APIToken, body []byte) *CFSLConfig
type NATSReqHeader ¶
type NATSRequest ¶
type NATSRequest struct {
Header NATSReqHeader `json:"header"`
Body []byte `json:"body"`
}
type NATSResponse ¶
type NATSResponse struct {
Header NATSResponseHeader `json:"header"`
Response []byte `json:"response"`
}
func SessionKeyNilError ¶ added in v0.0.11
func SessionKeyNilError() *NATSResponse
type NATSResponseHeader ¶
type NATSResponseHeader struct {
Created bool `json:"created,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
Path string `json:"path,omitempty"`
Doc string `json:"docId,omitempty"`
DocVersion string `json:"docVersion,omitempty"`
Status int `json:"status"`
ErrorStr string `json:"error_str,omitempty"`
ServerID string `json:"serverID,omitempty"`
Chunks int `json:"chunks,omitempty"`
EncryptedHdr []byte `json:"encrypted_hdr,omitempty"`
}
type NATSSCData ¶ added in v0.0.8
type NATSSCData struct {
}
type TokenKeyCache ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.