Documentation
¶
Index ¶
- type AttachmentDownload
- type AttachmentUpload
- type IssueCreateData
- type IssueUpdateData
- type Priority
- type Project
- type Redmine
- func (r *Redmine) AttachmensUpload(userID int64, uploads []UploadData) ([]AttachmentUpload, error)
- func (r *Redmine) AttachmentsDownload(downloads []int64) ([]AttachmentDownload, error)
- func (r *Redmine) IssueCreate(userID int64, issue IssueCreateData) (int64, error)
- func (r *Redmine) IssueURL(issueID int64) string
- func (r *Redmine) IssueUpdate(userID, issueID int64, d IssueUpdateData) error
- func (r *Redmine) PrioritiesGet() ([]Priority, error)
- func (r *Redmine) ProjectGetByIdentifier(identifier string) (Project, error)
- func (r *Redmine) ProjectsGet() (map[int64]Project, error)
- func (r *Redmine) UserAuthCheck(key string) (int64, error)
- func (r *Redmine) UserMembershipsGet(id int64) ([]misc.IDName, error)
- func (r *Redmine) UsersGet() (map[int64]User, error)
- type UploadData
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentDownload ¶
type AttachmentUpload ¶
type AttachmentUpload rdmn.AttachmentUploadObject
type IssueCreateData ¶
type IssueUpdateData ¶
type IssueUpdateData struct { Notes string Attachments []AttachmentUpload }
type Redmine ¶
type Redmine struct {
// contains filtered or unexported fields
}
Redmine it is a module context structure
func (*Redmine) AttachmensUpload ¶
func (r *Redmine) AttachmensUpload(userID int64, uploads []UploadData) ([]AttachmentUpload, error)
func (*Redmine) AttachmentsDownload ¶
func (r *Redmine) AttachmentsDownload(downloads []int64) ([]AttachmentDownload, error)
func (*Redmine) IssueCreate ¶
func (r *Redmine) IssueCreate(userID int64, issue IssueCreateData) (int64, error)
IssueCreate creates new issue in Redmine. New issue ID will be returned
func (*Redmine) IssueUpdate ¶
func (r *Redmine) IssueUpdate(userID, issueID int64, d IssueUpdateData) error
func (*Redmine) PrioritiesGet ¶
PrioritiesGet gets active issue priorities from nxs-chat-redmine plugin (additional API method)
func (*Redmine) ProjectGetByIdentifier ¶
func (*Redmine) ProjectsGet ¶
ProjectsGet gets all active project
func (*Redmine) UserAuthCheck ¶
UserAuthCheck checks Redmine API key correct. Function returns User ID on success.
func (*Redmine) UserMembershipsGet ¶
type UploadData ¶
Click to show internal directories.
Click to hide internal directories.