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) GetIssueTypes(request *GetIssueTypesRequest) (*GetIssueTypesResponse, domain.IError)
- func (c *Client) GetProjects(request *GetProjectsRequest) ([]Project, domain.IError)
- type CreateIssueRequest
- type CreateIssueResponse
- type Fields
- type GetIssueTypesRequest
- type GetIssueTypesResponse
- type GetProjectsRequest
- type GetProjectsResponse
- type IssueType
- type OptValueResponse
- type Opts
- type Payload
- type Project
- type Rel
- type RelValue
- 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) GetIssueTypes ¶
func (c *Client) GetIssueTypes(request *GetIssueTypesRequest) (*GetIssueTypesResponse, domain.IError)
func (*Client) GetProjects ¶
func (c *Client) GetProjects(request *GetProjectsRequest) ([]Project, domain.IError)
type CreateIssueRequest ¶
type CreateIssueResponse ¶
type GetIssueTypesRequest ¶
type GetIssueTypesResponse ¶
type GetIssueTypesResponse []IssueType
type GetProjectsRequest ¶
type GetProjectsResponse ¶
type IssueType ¶
type IssueType struct {
Self string `json:"self"`
ID string `json:"id"`
Description string `json:"description"`
IconURL string `json:"iconUrl"`
Name string `json:"name"`
UntranslatedName string `json:"untranslatedName"`
Subtask bool `json:"subtask"`
AvatarID int `json:"avatarId,omitempty"`
HierarchyLevel int `json:"hierarchyLevel"`
}
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"`
}
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"`
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"`
}
Click to show internal directories.
Click to hide internal directories.