cloud

package
v1.3.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorLookupService

type ActorLookupService struct {
	sync.Mutex
	// contains filtered or unexported fields
}

ActorLookupService prepare the accountId and username relationship ahead The lookup will be used for following use case

  • Resolving the role user actor back to username

func NewActorLookupService

func NewActorLookupService(actorService *ActorService) *ActorLookupService

func (*ActorLookupService) FindGroup

func (service *ActorLookupService) FindGroup(groupName string) *jira.Group

func (*ActorLookupService) FindGroupById

func (service *ActorLookupService) FindGroupById(groupId string) *jira.Group

func (*ActorLookupService) FindUser

func (service *ActorLookupService) FindUser(username string) *jira.User

func (*ActorLookupService) FindUserById

func (service *ActorLookupService) FindUserById(accountId string) *jira.User

func (*ActorLookupService) RegisterAccountIds

func (service *ActorLookupService) RegisterAccountIds(accountId ...string)

func (*ActorLookupService) RegisterGroupIds

func (service *ActorLookupService) RegisterGroupIds(groupId ...string)

func (*ActorLookupService) RegisterGroupNames

func (service *ActorLookupService) RegisterGroupNames(groupName ...string)

func (*ActorLookupService) RegisterUsernames

func (service *ActorLookupService) RegisterUsernames(username ...string)

type ActorService

type ActorService struct {
	// contains filtered or unexported fields
}

func NewActorService

func NewActorService(transport transport.PayloadTransport) *ActorService

func (*ActorService) BulkGetGroupsById

func (service *ActorService) BulkGetGroupsById(groupId []string) ([]jira.Group, error)

func (*ActorService) BulkGetGroupsByName

func (service *ActorService) BulkGetGroupsByName(groupName []string) ([]jira.Group, error)

func (*ActorService) BulkGetUsers

func (service *ActorService) BulkGetUsers(accountIds []string) ([]jira.User, error)

func (*ActorService) ReadGroup

func (service *ActorService) ReadGroup(name string) (*jira.Group, error)

func (*ActorService) ReadUser

func (service *ActorService) ReadUser(emailAddress string) (*jira.User, error)

type JiraClient

type JiraClient struct {
	// contains filtered or unexported fields
}

func NewJiraClient

func NewJiraClient(transport transport.PayloadTransport) *JiraClient

func (*JiraClient) ActorLookupService

func (client *JiraClient) ActorLookupService() *ActorLookupService

func (*JiraClient) ActorService

func (client *JiraClient) ActorService() *ActorService

func (*JiraClient) ProjectRoleService

func (client *JiraClient) ProjectRoleService() *ProjectRoleService

func (*JiraClient) ProjectService

func (client *JiraClient) ProjectService() *ProjectService

type ProjectRoleManage

type ProjectRoleManage struct {
	ReadOnly bool
	// contains filtered or unexported fields
}

ProjectRoleManage manages project roles within a Jira project.

func NewProjectRoleManager

func NewProjectRoleManager(client *JiraClient, projectIdOrKey string) *ProjectRoleManage

NewProjectRoleManager creates a new instance of ProjectRoleManage.

func (*ProjectRoleManage) Finalized

func (manager *ProjectRoleManage) Finalized()

Finalized applies all pending role changes to the project.

func (*ProjectRoleManage) ReadAllRoles added in v1.3.14

func (manager *ProjectRoleManage) ReadAllRoles() (*jira.ObjectRoles, error)

ReadAllRoles retrieves and processes all roles for the project.

func (*ProjectRoleManage) ReadRoles

func (manager *ProjectRoleManage) ReadRoles(allRoles []string) (*jira.ObjectRoles, error)

ReadRoles retrieves and processes roles for the project.

func (*ProjectRoleManage) UpdateGroupRoles

func (manager *ProjectRoleManage) UpdateGroupRoles(groupName string, newRoles []string) error

UpdateGroupRoles updates roles assigned to a group.

func (*ProjectRoleManage) UpdateUserRoles

func (manager *ProjectRoleManage) UpdateUserRoles(username string, newRoles []string) error

UpdateUserRoles updates roles assigned to a user.

type ProjectRoleService

type ProjectRoleService struct {
	// contains filtered or unexported fields
}

func (*ProjectRoleService) AddProjectRole

func (service *ProjectRoleService) AddProjectRole(projectIdOrKey string, roleID string, userAccountIds []string, groupIds []string) error

func (*ProjectRoleService) ReadAllRole

func (service *ProjectRoleService) ReadAllRole() ([]jira.Role, error)

func (*ProjectRoleService) ReadProjectRoleActors

func (service *ProjectRoleService) ReadProjectRoleActors(projectIdOrKey string, roleID string) ([]jira.Actor, error)

func (*ProjectRoleService) ReadProjectRoles

func (service *ProjectRoleService) ReadProjectRoles(projectIdOrKey string) ([]jira.RoleType, error)

func (*ProjectRoleService) RemoveProjectRole

func (service *ProjectRoleService) RemoveProjectRole(projectIdOrKey string, roleID string, userAccountIds []string, groupIds []string) error

type ProjectService

type ProjectService struct {
	// contains filtered or unexported fields
}

func (*ProjectService) Clone

func (service *ProjectService) Clone(request jira.CloneProject) (*jira.Project, error)

func (*ProjectService) Create

func (service *ProjectService) Create(request jira.CreateProject) (*jira.Project, error)

func (*ProjectService) Delete

func (service *ProjectService) Delete(projectIdOrKey string, enableUndo bool) (bool, error)

func (*ProjectService) Read

func (service *ProjectService) Read(projectIdOrKey string) (*jira.Project, error)

func (*ProjectService) ReadAll

func (service *ProjectService) ReadAll() ([]jira.Project, error)

func (*ProjectService) Update

func (service *ProjectService) Update(projectIdOrKey string, project jira.UpdateProject) (*jira.Project, error)

type RoleActorType

type RoleActorType int

type RoleChangeType

type RoleChangeType int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL