Documentation ¶
Index ¶
- func GetJiraResourceID(client *jira.Client, urlStr string) (*int, error)
- func Provider() *schema.Provider
- type Config
- type FilterPermissionRequest
- type FilterPermissionResult
- type FilterRequest
- type Group
- type GroupPermission
- type GroupRequest
- type Groups
- type IDResponse
- type IssueTypeRequest
- type ProjectCategory
- type ProjectMembership
- type ProjectMembershipRequest
- type ProjectPermission
- type ProjectRequest
- type ProjectRole
- type Role
- type RolePermission
- type SharedConfigurationProjectResponse
- type UserGroups
- type Webhook
- type WebhookFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJiraResourceID ¶
GetJiraResourceID Fetches the ID of a JIRA resource
Types ¶
type FilterPermissionRequest ¶
type FilterPermissionResult ¶
type FilterPermissionResult struct { Type string `json:"type"` ID int `json:"id"` Project ProjectPermission `json:"project"` Group GroupPermission `json:"group"` ProjectRoleID RolePermission `json:"role"` }
type FilterRequest ¶
type FilterRequest struct { Name string `json:"name"` Description string `json:"description"` Jql string `json:"jql"` Favourite bool `json:"favourite"` }
FilterRequest represents a Filter in Jira
type Group ¶
type Group struct {
Name string `json:"name,omitempty" structs:"name,omitempty"`
}
Group The struct sent to the JIRA instance to create a new GroupMembership
type GroupPermission ¶
type GroupPermission struct {
Name string `json:"name"`
}
type GroupRequest ¶
type GroupRequest struct {
Name string `json:"name,omitempty" structs:"name,omitempty"`
}
GroupRequest The struct sent to the JIRA instance to create a new Group
type Groups ¶
type Groups struct {
Items []Group `json:"items,omitempty" structs:"items,omitempty"`
}
Groups List of groups the user belongs to
type IDResponse ¶
type IDResponse struct {
ID int `json:"id,omitempty" structs:"id,omitempty"`
}
IDResponse The struct sent from the JIRA instance after creating a new Project
type IssueTypeRequest ¶
type IssueTypeRequest struct { Description string `json:"description,omitempty" structs:"description,omitempty"` Name string `json:"name,omitempty" structs:"name,omitempty"` Type string `json:"type,omitempty" structs:"type,omitempty"` AvatarID int `json:"avatarId,omitempty" structs:"avatarId,omitempty"` }
IssueTypeRequest The struct sent to the JIRA instance to create a new Issue Type JIRA API docs: https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issuetype-createIssueType
type ProjectCategory ¶
type ProjectCategory struct { Self string `json:"self,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` ID string `json:"id,omitempty"` }
ProjectCategory represents a JIRA ProjectCategory
type ProjectMembership ¶
type ProjectMembership struct { ID int `json:"id,omitempty"` Name string `json:"name"` Type string `json:"type"` }
ProjectMembership represents a JIRA ProjectMembership
type ProjectMembershipRequest ¶
type ProjectMembershipRequest struct { ID int `json:"id,omitempty"` User []string `json:"user,omitempty"` Group []string `json:"group,omitempty"` }
ProjectMembershipRequest represents a JIRA ProjectMembership
type ProjectPermission ¶
type ProjectPermission struct {
ID string `json:"id"`
}
type ProjectRequest ¶
type ProjectRequest struct { Key string `json:"key,omitempty" structs:"key,omitempty"` Name string `json:"name,omitempty" structs:"name,omitempty"` ProjectTypeKey string `json:"projectTypeKey,omitempty" structs:"projectTypeKey,omitempty"` ProjectTemplateKey string `json:"projectTemplateKey,omitempty" structs:"projectTemplateKey,omitempty"` Description string `json:"description,omitempty" structs:"description,omitempty"` Lead string `json:"lead,omitempty" structs:"lead,omitempty"` LeadAccountID string `json:"leadAccountId,omitempty" structs:"leadAccountId,omitempty"` URL string `json:"url,omitempty" structs:"url,omitempty"` AssigneeType string `json:"assigneeType,omitempty" structs:"assigneeType,omitempty"` AvatarID int `json:"avatar_id,omitempty" structs:"avatar_id,omitempty"` IssueSecurityScheme int `json:"issueSecurityScheme,omitempty" structs:"issueSecurityScheme,omitempty"` PermissionScheme int `json:"permissionScheme,omitempty" structs:"permissionScheme,omitempty"` NotificationScheme int `json:"notificationScheme,omitempty" structs:"notificationScheme,omitempty"` CategoryID int `json:"categoryId,omitempty" structs:"categoryId,omitempty"` }
ProjectRequest The struct sent to the JIRA instance to create a new Project
type ProjectRole ¶
type ProjectRole struct {
Actors []ProjectMembership `json:"actors"`
}
ProjectRole represents the actors of a Role within a Project
type Role ¶
type Role struct { ID int `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` }
Role represents a JIRA Role
type RolePermission ¶
type RolePermission struct {
ID int `json:"id"`
}
type SharedConfigurationProjectResponse ¶
type SharedConfigurationProjectResponse struct {
}type UserGroups ¶
type UserGroups struct {
Groups Groups `json:"groups,omitempty" structs:"groups,omitempty"`
}
UserGroups Wrapper for the groups of a user
type Webhook ¶
type Webhook struct { Self string `json:"self,omitempty" structs:"self,omitempty"` Name string `json:"name,omitempty" structs:"name,omitempty"` URL string `json:"url,omitempty" structs:"url,omitempty"` Events []string `json:"events,omitempty" structs:"events,omitempty"` Filters WebhookFilter `json:"filters"` ExcludeBody bool `json:"excludeBody,omitempty" structs:"excludeBody,omitempty"` }
Webhook represents a JIRA Webhook
type WebhookFilter ¶
type WebhookFilter struct {
JQL string `json:"issue-related-events-section,omitempty"`
}
WebhookFilter represents the JQL Filter for Webhook Events
Source Files ¶
- config.go
- data_source_project.go
- provider.go
- resource_comment.go
- resource_field.go
- resource_filter.go
- resource_group.go
- resource_group_membership.go
- resource_issue.go
- resource_issue_link.go
- resource_issue_link_type.go
- resource_issue_type.go
- resource_jql.go
- resource_project.go
- resource_project_category.go
- resource_project_membership.go
- resource_role.go
- resource_user.go
- resource_webhook.go
- shared.go