functions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2015 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Functions specifies a list of server functions, split out into different files based on API tree. Because the description of each function already exists in the dictionary package, until such a time as the dictionary is removed, the purpose of a function will be documented in the dictionary package, not here. We do, however document the message we expect to recieve for each function. All input messages are shared.Message messages.

Functions specifies a list of server functions, split out into different files based on API tree. Because the description of each function already exists in the dictionary package, until such a time as the dictionary is removed, the purpose of a function will be documented in the dictionary package, not here. We do, however document the message we expect to recieve for each function. All input messages are shared.Message messages.

Functions specifies a list of server functions, split out into different files based on API tree. Because the description of each function already exists in the dictionary package, until such a time as the dictionary is removed, the purpose of a function will be documented in the dictionary package, not here. We do, however document the message we expect to recieve for each function. All input messages are shared.Message messages.

Functions specifies a list of server functions, split out into different files based on API tree. Because the description of each function already exists in the dictionary package, until such a time as the dictionary is removed, the purpose of a function will be documented in the dictionary package, not here. We do, however document the message we expect to recieve for each function. All input messages are shared.Message messages.

Functions specifies a list of server functions, split out into different files based on API tree. Because the description of each function already exists in the dictionary package, until such a time as the dictionary is removed, the purpose of a function will be documented in the dictionary package, not here. We do, however document the message we expect to recieve for each function. All input messages are shared.Message messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminNew

func AdminNew(cfg *shared.Config, r shared.Request)

User.Name => name

func AdminSuper

func AdminSuper(cfg *shared.Config, r shared.Request)

User.Name => name Key.GroupPriv => Copy of the supergroup private key, encrypted with the public key of the target admin

func ClientGetSecret

func ClientGetSecret(cfg *shared.Config, r shared.Request)

func ClientRegister

func ClientRegister(cfg *shared.Config, r shared.Request)

User.Name => name User.Password => encrypted password User.Key => public part of local key

func GetCA

func GetCA(cfg *shared.Config, r shared.Request)

func GroupDel

func GroupDel(cfg *shared.Config, r shared.Request)

User.Group => group name User.Admin => group type

func GroupList

func GroupList(cfg *shared.Config, r shared.Request)

No input

func GroupNew

func GroupNew(cfg *shared.Config, r shared.Request)

User.Group => group name User.Admin => group type Key.GroupPub => Public key for group Key.GroupPriv => Private key for group, encrypted with the super public key

func GroupPrivKey

func GroupPrivKey(cfg *shared.Config, r shared.Request)

User.Group => group name User.Admin => admin/client group

func GroupPubKey

func GroupPubKey(cfg *shared.Config, r shared.Request)

User.Group => group name User.Admin => admin/client group

func SecretAssignGroup

func SecretAssignGroup(cfg *shared.Config, r shared.Request)

User.Group => group name User.Admin => admin/client group Key.Name => secret name Key.Key => secret key encoded with the public key of the target group key.Path => secret path (non-admin group only)

func SecretAssignUser

func SecretAssignUser(cfg *shared.Config, r shared.Request)

User.Name => user name User.Admin => admin/client user Key.Name => secret name Key.Key => secret key encoded with the public key of the target user key.Path => secret path (non-admin users only)

func SecretDel

func SecretDel(cfg *shared.Config, r shared.Request)

Key.Name => name

func SecretGet

func SecretGet(cfg *shared.Config, r shared.Request)

Key.Name => secret name

func SecretList

func SecretList(cfg *shared.Config, r shared.Request)

No input

func SecretListGroup

func SecretListGroup(cfg *shared.Config, r shared.Request)

User.Group => group name User.Admin => admin/client group

func SecretListUser

func SecretListUser(cfg *shared.Config, r shared.Request)

User.Name => name User.Admin => admin/client user

func SecretNew

func SecretNew(cfg *shared.Config, r shared.Request)

Key.Name => name Key.Secret => encrypted payload Key.Key => unique encryption key for payload encrypted with the supergroup pubkey Key.UserKey => copy of above key, encrypted with admin local key

func SecretPrivKey

func SecretPrivKey(cfg *shared.Config, r shared.Request)

Key.Name => secret name

func SecretPubKey

func SecretPubKey(cfg *shared.Config, r shared.Request)

Key.Name => secret name

func SecretRemoveGroup

func SecretRemoveGroup(cfg *shared.Config, r shared.Request)

User.Group => group name User.Admin => admin/client group Key.Name => secret name

func SecretRemoveUser

func SecretRemoveUser(cfg *shared.Config, r shared.Request)

User.Name => user name User.Admin => admin/client user Key.Name => secret name

func SecretUpdate

func SecretUpdate(cfg *shared.Config, r shared.Request)

Key.Name => name Key.Secret => encrypted payload

func SetPubkey

func SetPubkey(cfg *shared.Config, r shared.Request)

User.Key => public part of local key

func SetSuperKey

func SetSuperKey(cfg *shared.Config, r shared.Request)

Key.GroupPub => supergroup public key Key.GroupPriv => supergroup private key encrypted by the calling admin

func SuperPubKey

func SuperPubKey(cfg *shared.Config, r shared.Request)

No input

func UserDel

func UserDel(cfg *shared.Config, r shared.Request)

User.Name => name User.Admin => admin/client user

func UserGroupAssign

func UserGroupAssign(cfg *shared.Config, r shared.Request)

This function relies on the client sending a pre-encrypted group key. We can't do this on the server as it would involve having the ability to decrypt keys.

User.Name => name User.Admin => admin/client user User.Group => name of group Key.GroupPriv => Copy of the group private key, encrypted with the public key of the target admin

func UserList

func UserList(cfg *shared.Config, r shared.Request)

User.Admin => admin/client users

func UserPass

func UserPass(cfg *shared.Config, r shared.Request)

User.Password => new password.

func UserPubKey

func UserPubKey(cfg *shared.Config, r shared.Request)

User.Name => user name User.Admin => admin/client user

Types

This section is empty.

Jump to

Keyboard shortcuts

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