forked from mattermost/mattermost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add client4 apis needed for jira plugin (mattermost#7292)
- Loading branch information
Showing
5 changed files
with
212 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
package plugin | ||
|
||
import ( | ||
"github.com/mattermost/platform/model" | ||
) | ||
|
||
type API interface { | ||
// LoadPluginConfiguration loads the plugin's configuration. dest should be a pointer to a | ||
// struct that the configuration JSON can be unmarshalled to. | ||
LoadPluginConfiguration(dest interface{}) error | ||
|
||
// GetTeamByName gets a team by its name. | ||
GetTeamByName(name string) (*model.Team, *model.AppError) | ||
|
||
// GetUserByUsername gets a user by their username. | ||
GetUserByUsername(name string) (*model.User, *model.AppError) | ||
|
||
// GetChannelByName gets a channel by its name. | ||
GetChannelByName(name, teamId string) (*model.Channel, *model.AppError) | ||
|
||
// CreatePost creates a post. | ||
CreatePost(post *model.Post) (*model.Post, *model.AppError) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters