Documentation
¶
Index ¶
- func SetLogger(lgr *slog.Logger)
- type AccountData
- type AttachmentData
- type Auth
- type Client
- func (c Client) Call(ctx context.Context, method string, request, response interface{}) error
- func (c Client) FilterSearchIssueIDs(ctx context.Context, filter FilterSearchData, pageNumber, perPage int) ([]int, error)
- func (c Client) GetCategoriesForProject(ctx context.Context, projectID int) (ProjectCategoriesResp, error)
- func (c Client) IssueAdd(ctx context.Context, issue IssueData) (int, error)
- func (c Client) IssueAttachmentAdd(ctx context.Context, issueID int, name, fileType string, content io.Reader) (int, error)
- func (c Client) IssueExists(ctx context.Context, issueID int) (bool, error)
- func (c Client) IssueGet(ctx context.Context, issueID int) (IssueData, error)
- func (c Client) IssueNoteAdd(ctx context.Context, issueID int, note IssueNoteData) (int, error)
- func (c Client) IssueUpdate(ctx context.Context, issueID int, issue IssueData) (bool, error)
- func (c Client) Login(ctx context.Context) (LoginResponse, error)
- func (c Client) ProjectGetUsers(ctx context.Context, projectID, access int) ([]AccountData, error)
- func (c Client) ProjectIssues(ctx context.Context, projectID, page, perPage int) ([]IssueData, error)
- func (c Client) ProjectVersionAdd(ctx context.Context, projectID int, name, description string, ...) (int, error)
- func (c Client) ProjectVersionDelete(ctx context.Context, versionID int) error
- func (c Client) ProjectVersionUpdate(ctx context.Context, version ProjectVersionData) error
- func (c Client) ProjectVersionsList(ctx context.Context, projectID int) ([]ProjectVersionData, error)
- func (c Client) ProjectsGetUserAccessible(ctx context.Context) ([]ProjectData, error)
- func (c Client) StatusEnum(ctx context.Context) ([]ObjectRef, error)
- type CustomFieldData
- type FilterCustomField
- type FilterSearchData
- type FilterSearchIssueIDsRequest
- type FilterSearchIssueIDsResponse
- type IssueAddRequest
- type IssueAddResponse
- type IssueAttachmentAddRequest
- type IssueAttachmentAddResponse
- type IssueData
- type IssueExistsRequest
- type IssueExistsResponse
- type IssueGetRequest
- type IssueGetResponse
- type IssueID
- type IssueNoteAddRequest
- type IssueNoteAddResponse
- type IssueNoteData
- type IssueUpdateRequest
- type IssueUpdateResponse
- type LoginRequest
- type LoginResponse
- type NoteData
- type ObjectRef
- type ProjectCategoriesReq
- type ProjectCategoriesResp
- type ProjectData
- type ProjectGetReleasedVersionsRequest
- type ProjectGetReleasedVersionsResponse
- type ProjectGetUnreleasedVersionsRequest
- type ProjectGetUnreleasedVersionsResponse
- type ProjectGetUsersRequest
- type ProjectGetUsersResponse
- type ProjectGetVersionsRequest
- type ProjectGetVersionsResponse
- type ProjectIssuesRequest
- type ProjectIssuesResponse
- type ProjectVersionAddRequest
- type ProjectVersionAddResponse
- type ProjectVersionData
- type ProjectVersionDeleteRequest
- type ProjectVersionDeleteResponse
- type ProjectVersionUpdateRequest
- type ProjectVersionUpdateResponse
- type ProjectsGetUserAccessibleRequest
- type ProjectsGetUserAccessibleResponse
- type Reader
- type RelationshipData
- type StatusEnumRequest
- type StatusEnumResponse
- type Time
- type UserData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountData ¶
type AttachmentData ¶
type AttachmentData struct { ID int `xml:"id,omitempty"` FileName string `xml:"filename,omitempty"` Size int `xml:"size,omitempty"` ContentType string `xml:"content_type,omitempty"` DateSubmitted Time `xml:"date_submitted,omitempty"` DownloadURL string `xml:"download_url,omitempty"` UserID int `xml:"user_id,omitempty"` }
type Client ¶
type Client struct { soaphlp.Caller User AccountData *slog.Logger // contains filtered or unexported fields }
func NewWithHTTPClient ¶
func (Client) FilterSearchIssueIDs ¶
func (Client) GetCategoriesForProject ¶
func (c Client) GetCategoriesForProject(ctx context.Context, projectID int) (ProjectCategoriesResp, error)
GetCategoriesForProject - get the categories belonging to the specified project.
func (Client) IssueAttachmentAdd ¶
func (Client) IssueExists ¶
func (Client) IssueNoteAdd ¶
func (Client) IssueUpdate ¶
func (Client) ProjectGetUsers ¶
func (Client) ProjectIssues ¶
func (Client) ProjectVersionAdd ¶
func (Client) ProjectVersionDelete ¶
func (Client) ProjectVersionUpdate ¶
func (c Client) ProjectVersionUpdate(ctx context.Context, version ProjectVersionData) error
func (Client) ProjectVersionsList ¶
func (Client) ProjectsGetUserAccessible ¶
func (c Client) ProjectsGetUserAccessible(ctx context.Context) ([]ProjectData, error)
type CustomFieldData ¶
type FilterCustomField ¶
type FilterSearchData ¶
type FilterSearchData struct { ProjectID []int `xml:"project_id>integer,omitempty"` Search string `xml:"search,omitempty"` Category []string `xml:"category>string,omitempty"` SeverityID []int `xml:"severity_id>integer,omitempty"` StatusID []int `xml:"status_id>integer,omitempty"` PriorityID []int `xml:"priority_id>integer,omitempty"` ReporterID []int `xml:"reporter_id>integer,omitempty"` HandlerID []int `xml:"handler_id>integer,omitempty"` NoteUserID []int `xml:"note_user_id>integer,omitempty"` ResolutionID []int `xml:"resolution_id>integer,omitempty"` ProductVersion []string `xml:"product_version>string,omitempty"` UserMonitorID []int `xml:"user_monitor_id>integer,omitempty"` HideStatusID []int `xml:"hide_status_id>integer,omitempty"` Sort string `xml:"sort,omitempty"` SortDirection *string `xml:"sort_direction,omitempty"` Sticky *bool `xml:"sticky,omitempty"` ViewStateID []int `xml:"view_state_id>integer,omitempty"` FixedInVersion []string `xml:"fixed_in_version>string,omitempty"` TargetVersion []string `xml:"target_version>string,omitempty"` Platform []string `xml:"platform>string,omitempty"` OS []string `xml:"os>string,omitempty"` OSBuild []string `xml:"os_build>string,omitempty"` StartDay *int `xml:"start_day,omitempty"` StartMonth *int `xml:"start_month,omitempty"` StartYear *int `xml:"start_year,omitempty"` EndDay *int `xml:"end_day,omitempty"` EndMonth *int `xml:"end_month,omitempty"` EndYear *int `xml:"end_year,omitempty"` LastUpdateStartDay *int `xml:"last_update_start_day,omitempty"` LastUpdateStartMonth *int `xml:"last_update_start_month,omitempty"` LastUpdateStartYear *int `xml:"last_update_start_year,omitempty"` LastUpdateEndDay *int `xml:"last_update_end_day,omitempty"` LastUpdateEndMonth *int `xml:"last_update_end_month,omitempty"` LastUpdateEndYear *int `xml:"last_update_end_year,omitempty"` TagString []string `xml:"tag_string,omitempty"` TagSelect []int `xml:"tag_select,omitempty"` CustomFields []FilterCustomField `xml:"custom_fields>FilterCustomField,omitempty"` }
type IssueAddRequest ¶
type IssueAddResponse ¶
type IssueData ¶
type IssueData struct { ID *IssueID `xml:"id,omitempty"` ViewState *ObjectRef `xml:"view_state,omitempty"` LastUpdated *Time `xml:"last_updated,omitempty"` Project *ObjectRef `xml:"project,omitempty"` Category *string `xml:"category,omitempty"` Priority *ObjectRef `xml:"priority,omitempty"` Severity *ObjectRef `xml:"severity,omitempty"` Status *ObjectRef `xml:"status,omitempty"` Reporter *AccountData `xml:"reporter,omitempty"` Summary *string `xml:"summary,omitempty"` Version *string `xml:"version,omitempty"` Build *string `xml:"build,omitempty"` Platform *string `xml:"platform,omitempty"` Os *string `xml:"os,omitempty"` OsBuild *string `xml:"os_build,omitempty"` Reproducibility *ObjectRef `xml:"reproducibility,omitempty"` DateSubmitted *Time `xml:"date_submitted,omitempty"` SponsorshipTotal *int `xml:"sponsorship_total,omitempty"` Handler *AccountData `xml:"handler,omitempty"` Projection *ObjectRef `xml:"projection,omitempty"` ETA *ObjectRef `xml:"eta,omitempty"` Resolution *ObjectRef `xml:"resolution,omitempty"` FixedInVersion *string `xml:"fixed_in_version,omitempty"` TargetVersion *string `xml:"target_version,omitempty"` Description *string `xml:"description,omitempty"` StepsToReproduce *string `xml:"steps_to_reproduce,omitempty"` AdditionalInformation *string `xml:"additional_information,omitempty"` Attachments []AttachmentData `xml:"attachments>item,omitempty"` Relationships []RelationshipData `xml:"relationships>item,omitempty"` Notes []NoteData `xml:"notes>item,omitempty"` CustomFields []CustomFieldData `xml:"custom_fields>item,omitempty"` DueDate *Time `xml:"due_date,omitempty"` Monitors []AccountData `xml:"monitors>item,omitempty"` Sticky *bool `xml:"sticky,omitempty"` Tags []ObjectRef `xml:"tags>item,omitempty"` }
type IssueExistsRequest ¶
type IssueExistsResponse ¶
type IssueExistsResponse struct {
Return bool `xml:"return"`
}
type IssueGetRequest ¶
type IssueGetResponse ¶
type IssueNoteAddRequest ¶
type IssueNoteAddRequest struct { XMLName xml.Name `xml:"http://futureware.biz/mantisconnect mc_issue_note_add"` Auth IssueID IssueID `xml:"issue_id"` Note IssueNoteData `xml:"note"` }
type IssueNoteAddResponse ¶
type IssueNoteData ¶
type IssueNoteData struct { ID *int `xml:"id,omitempty"` Reporter AccountData `xml:"reporter,omitempty"` Text string `xml:"text,omitempty"` ViewState *ObjectRef `xml:"view_state,omitempty"` DateSubmitted Time `xml:"date_submitted,omitempty"` LastModified Time `xml:"last_modified,omitempty"` TimeTracking *int `xml:"time_tracking,omitempty"` NoteType *int `xml:"note_type,omitempty"` NoteAttr string `xml:"note_attr,omitempty"` }
type IssueUpdateRequest ¶
type IssueUpdateResponse ¶
type LoginRequest ¶
type LoginResponse ¶
type NoteData ¶
type NoteData struct { ID int `xml:"id,omitempty"` Reporter AccountData `xml:"reporter,omitempty"` Text string `xml:"text"` ViewState *ObjectRef `xml:"view_state,omitempty"` DateSubmitted Time `xml:"date_submitted,omitempty"` LastModified Time `xml:"last_modified,omitempty"` TimeTracking int `xml:"time_tracking,omitempty"` NoteType int `xml:"note_type,omitempty"` NoteAttr string `xml:"note_attr,omitempty"` }
type ProjectCategoriesReq ¶
type ProjectCategoriesResp ¶
type ProjectData ¶
type ProjectData struct { ID int `xml:"id,omitempty"` Name string `xml:"name,omitempty"` Status *ObjectRef `xml:"status,omitempty"` Enabled bool `xml:"enabled"` ViewState *ObjectRef `xml:"view_state,omitempty"` AccessMin *ObjectRef `xml:"access_min,omitempty"` FilePath string `xml:"file_path,omitempty"` Description string `xml:"description,omitempty"` Subprojects []ProjectData `xml:"subprojects>item,omitempty"` InheritGlobal bool `xml:"inherit_global,omitempty"` }
type ProjectGetReleasedVersionsResponse ¶
type ProjectGetReleasedVersionsResponse struct { XMLName xml.Name `xml:"http://futureware.biz/mantisconnect mc_project_get_released_versionsResponse"` Return []ProjectVersionData `xml:"return>item"` }
type ProjectGetUnreleasedVersionsResponse ¶
type ProjectGetUnreleasedVersionsResponse struct { XMLName xml.Name `xml:"http://futureware.biz/mantisconnect mc_project_get_unreleased_versionsResponse"` Return []ProjectVersionData `xml:"return>item"` }
type ProjectGetUsersRequest ¶
type ProjectGetUsersResponse ¶
type ProjectGetUsersResponse struct { XMLName xml.Name `xml:"http://futureware.biz/mantisconnect mc_project_get_usersResponse"` Users []AccountData `xml:"return>item"` }
type ProjectGetVersionsResponse ¶
type ProjectGetVersionsResponse struct { XMLName xml.Name `xml:"http://futureware.biz/mantisconnect mc_project_get_versionsResponse"` Return []ProjectVersionData `xml:"return>item"` }
type ProjectIssuesRequest ¶
type ProjectIssuesResponse ¶
type ProjectVersionAddRequest ¶
type ProjectVersionAddRequest struct { XMLName xml.Name `xml:"http://futureware.biz/mantisconnect mc_project_version_add"` Auth Version ProjectVersionData `xml:"version"` }
type ProjectVersionData ¶
type ProjectVersionUpdateRequest ¶
type ProjectVersionUpdateRequest struct { XMLName xml.Name `xml:"http://futureware.biz/mantisconnect mc_project_version_update"` Auth VersionID int `xml:"version_id"` Version ProjectVersionData `xml:"version"` }
type ProjectsGetUserAccessibleResponse ¶
type ProjectsGetUserAccessibleResponse struct { XMLName xml.Name `xml:"http://futureware.biz/mantisconnect mc_projects_get_user_accessibleResponse"` Projects []ProjectData `xml:"return>item"` }
type Reader ¶
func (Reader) MarshalXML ¶
type RelationshipData ¶
type StatusEnumRequest ¶
type StatusEnumResponse ¶
type Time ¶
func (*Time) MarshalJSON ¶ added in v0.2.5
func (*Time) MarshalXML ¶ added in v0.2.5
func (*Time) UnmarshalText ¶ added in v0.2.5
func (*Time) UnmarshalXML ¶
type UserData ¶
type UserData struct { Account AccountData `xml:"account_data,omitempty"` AccessLevel int `xml:"access_level,omitempty"` Timezone string `xml:"timezone,omitempty"` }
Click to show internal directories.
Click to hide internal directories.