summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
Commit message (Collapse)AuthorAgeFilesLines
* make GetChannelByName take teamId first (#9134)Jesse Hallam2018-07-201-6/+9
| | | | | | | | | | | | | | * make GetChannelByName take teamId first I think it is more natural to accept `teamId`, then `channelName`, given the pattern followed by other Plugin API methods and even the SQL Store itself. The App layer seems unusual in accepting `channelName` first. This also re-generates the mocks fixing the parameter order for the recently added `UserStatus` APIs. * add GetChannelByNameForTeamName
* MM-10254 Add plugin APIs for getting/updating user statuses (#9101)Joram Wilander2018-07-161-0/+10
| | | | | | | | * Add plugin APIs for getting/updating user statuses * Add and update tests * Updates per feedback
* MM-11292: clean up plugins GoDoc (#9109)Jesse Hallam2018-07-131-2/+3
| | | | | | | | | | | | | | | | | | | * clean up plugins GoDoc: - eliminate plugin.NewBlankContext() as unnecessary - export ValidIdRegex as a string vs. the less readable var - add/update various documentation strings - hide everything by default, except where used by client plugins or the mattermost-server. The exception to this rule are the `*(Args|Returns)` structs which must be public for go-plugin, but are now prefixed with `Z_` with a warning not to use. - include a top-level example to get plugin authors started This is not a breaking change for existing plugins compiled against plugins-v2. * remove commented out ServeHTTPResponseWriter * update examples to match developer docs * add missing plugin/doc.go license header
* First batch of new plugin api methods (#9022)Daniel Schalla2018-07-061-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | update api mocks Generated new hooks ChannelHasJoinedChannel Implementation User Left Team/Channel Hook; User Joined Team Hook Implementation Update RPC Client and Mocks gofmt go tests fix Add Config API Methods codegne Add Channel Has Been Created Hook Fix ChannelHasBeenCreated hook fix missing context param fix duplicate hooks; remove redudandcy
* MM-11029 Adding plugin logging functionality. (#9034)Christopher Speller2018-07-031-0/+24
| | | | | | | | | | | | * Capturing stdout, stderr of plugins in logs. * Cleanup go-plugin debug logs. * Adding logging to plugin API * Generating mocks. * godoc convention
* MM-9674 Add plugin API for publishing custom WebSocket events (#8999)Joram Wilander2018-06-271-0/+6
| | | | | | | | * Add plugin API for publishing custom WebSocket events * Add clearer payload comment * Update comment
* MM-10702 Moving plugins to use hashicorp go-plugin. (#8978)Christopher Speller2018-06-251-8/+10
| | | | | | * Moving plugins to use hashicorp go-plugin. * Tweaks from feedback.
* MM-8678: add CUD support for channel members via plugins (#8565)Jesse Hallam2018-04-061-0/+12
| | | | | | | | | | | | * add CUD support for channel members via plugins This effectively exposes AddChannelMember, UpdateChannelMemberRoles, UpdateChannelMemberNotifyProps and LeaveChannel via the plugin API. It also modifies the semantics of AddChannelMember to explicitly allow for an empty user requestor, left as such for now via the plugin API. * change the signature of AddChannelMember to accept a channel id instead of a channel
* Add plugin slash command support (#7941)Chris2017-12-081-0/+7
| | | | | | | | * add plugin slash command support * remove unused string * rebase
* Add GetChannelMember method to plugin API (#7930)Joram Wilander2017-12-051-0/+3
|
* PLT-8131 (part2) Add plugin key value store support (#7902)Joram Wilander2017-11-271-1/+15
| | | | | | | | * Add plugin key value store support * Add localization strings * Updates per feedback
* more plugin doc updates (#7767)Chris2017-11-031-2/+4
|
* Add some plugin docs (#7757)Chris2017-11-021-0/+2
| | | | | | | | | | * add some plugin docs * one more comment * spacing * example simplification
* add missing license headers, test to makefile (#7711)Chris2017-10-251-0/+3
|
* plugin CRUD operations for users, posts, channels, and teams (#7479)Chris2017-09-211-2/+56
|
* Renaming repoChristopher Speller2017-09-061-1/+1
|
* add client4 apis needed for jira plugin (#7292)Chris2017-08-281-0/+16
|
* PLT-7407: Back-end plugin mechanism (#7177)Chris2017-08-161-0/+7
* begin backend plugin wip * flesh out rpcplugin. everything done except for minor supervisor stubs * done with basic plugin infrastructure * simplify tests * remove unused test lines