Documentation
¶
Index ¶
- Constants
- func NewErr(statusCode int, systemCode, message, internal string, isFatal bool) domain.IError
- func NewJIRAProvider(httpClient *http.Client) provider.Provider
- type AccessibleResourcesRequest
- type AccessibleResourcesResponse
- type Client
- func (c *Client) CreateIssue(request *CreateIssueRequest) (*CreateIssueResponse, domain.IError)
- func (c *Client) GetAccessibleResources(request *AccessibleResourcesRequest) (*AccessibleResourcesResponse, domain.IError)
- func (c *Client) GetProjects(request *GetProjectsRequest) ([]Project, domain.IError)
- type CloudIDInfo
- type CreateIssueRequest
- type CreateIssueResponse
- type Fields
- type GetProjectsRequest
- type GetProjectsResponse
- type IssueType
- type OptValueResponse
- type Opts
- type Payload
- type Project
- type ProjectKeyInfo
- type Rel
- type Reporter
- type Site
- type Value
- type Values
Constants ¶
View Source
const ProviderType = domain.ProviderType("jira")
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessibleResourcesRequest ¶
type AccessibleResourcesRequest struct {
BearerToken string
}
type AccessibleResourcesResponse ¶
type AccessibleResourcesResponse []Site
type Client ¶
type Client struct {
HTTPClient provider.IHTTPClient
}
func (*Client) CreateIssue ¶
func (c *Client) CreateIssue(request *CreateIssueRequest) (*CreateIssueResponse, domain.IError)
func (*Client) GetAccessibleResources ¶
func (c *Client) GetAccessibleResources(request *AccessibleResourcesRequest) (*AccessibleResourcesResponse, domain.IError)
func (*Client) GetProjects ¶
func (c *Client) GetProjects(request *GetProjectsRequest) ([]Project, domain.IError)
type CloudIDInfo ¶ added in v1.1.0
type CloudIDInfo struct {
ProjectKey []Value `json:"project_key" mapstructure:"project_key"`
}
type CreateIssueRequest ¶
type CreateIssueResponse ¶
type GetProjectsRequest ¶
type GetProjectsResponse ¶
type OptValueResponse ¶
type Opts ¶
type Opts struct {
Secret *domain.NotifierSecret
ProjectKey string `mapstructure:"project_key"`
IssueType string `mapstructure:"issue_type"`
CloudID string `mapstructure:"cloud_id"`
ReporterID string `mapstructure:"reporter_id"`
}
Opts defines JIRA specific options.
type Payload ¶
type Payload struct {
Summary string `json:"summary"`
Description map[string]interface{} `json:"description"`
}
Payload defines the primary content payload for the JIRA provider.
type Project ¶
type Project struct {
Expand string `json:"expand"`
Self string `json:"self"`
ID string `json:"id"`
Key string `json:"key"`
IssueTypes []IssueType `json:"issueTypes"`
Name string `json:"name"`
AvatarUrls struct {
Four8X48 string `json:"48x48"`
Two4X24 string `json:"24x24"`
One6X16 string `json:"16x16"`
Three2X32 string `json:"32x32"`
} `json:"avatarUrls"`
ProjectTypeKey string `json:"projectTypeKey"`
Simplified bool `json:"simplified"`
Style string `json:"style"`
IsPrivate bool `json:"isPrivate"`
Properties struct{} `json:"properties"`
}
type ProjectKeyInfo ¶ added in v1.1.0
type ProjectKeyInfo struct {
IssueType []Value `json:"issue_type" mapstructure:"issue_type"`
}
type Rel ¶
type Rel struct {
CloudID map[string]CloudIDInfo `json:"cloud_id" mapstructure:"cloud_id"`
ProjectKey map[string]ProjectKeyInfo `json:"project_key" mapstructure:"project_key"`
}
Click to show internal directories.
Click to hide internal directories.