Versions in this module Expand all Collapse all v2 v2.1.2 Oct 20, 2024 Changes in this version + func NewAuthenticationService(client service.Connector) common.Authentication + type AnalyticsService struct + func NewAnalyticsService(client service.Connector) *AnalyticsService + func (a *AnalyticsService) Distinct(ctx context.Context, contentID, fromDate string) (*model.ContentViewScheme, *model.ResponseScheme, error) + func (a *AnalyticsService) Get(ctx context.Context, contentID, fromDate string) (*model.ContentViewScheme, *model.ResponseScheme, error) + type AttachmentService struct + Version *AttachmentVersionService + func NewAttachmentService(client service.Connector, version *AttachmentVersionService) *AttachmentService + func (a *AttachmentService) Delete(ctx context.Context, attachmentID string) (*model.ResponseScheme, error) + func (a *AttachmentService) Get(ctx context.Context, attachmentID string, versionID int, serializeIDs bool) (*model.AttachmentScheme, *model.ResponseScheme, error) + func (a *AttachmentService) Gets(ctx context.Context, entityID int, entityType string, ...) (*model.AttachmentPageScheme, *model.ResponseScheme, error) + type AttachmentVersionService struct + func NewAttachmentVersionService(client service.Connector) *AttachmentVersionService + func (a *AttachmentVersionService) Get(ctx context.Context, attachmentID string, versionID int) (*model.DetailedVersionScheme, *model.ResponseScheme, error) + func (a *AttachmentVersionService) Gets(ctx context.Context, attachmentID, cursor, sort string, limit int) (*model.AttachmentVersionPageScheme, *model.ResponseScheme, error) + type AuthenticationService struct + func (a *AuthenticationService) GetBasicAuth() (string, string) + func (a *AuthenticationService) GetBearerToken() string + func (a *AuthenticationService) GetUserAgent() string + func (a *AuthenticationService) HasBasicAuth() bool + func (a *AuthenticationService) HasSetExperimentalFlag() bool + func (a *AuthenticationService) HasUserAgent() bool + func (a *AuthenticationService) SetBasicAuth(mail, token string) + func (a *AuthenticationService) SetBearerToken(token string) + func (a *AuthenticationService) SetExperimentalFlag() + func (a *AuthenticationService) SetUserAgent(agent string) + type ChildrenDescandantsService struct + func NewChildrenDescandantsService(client service.Connector) *ChildrenDescandantsService + func (c *ChildrenDescandantsService) Children(ctx context.Context, contentID string, expand []string, parentVersion int) (*model.ContentChildrenScheme, *model.ResponseScheme, error) + func (c *ChildrenDescandantsService) ChildrenByType(ctx context.Context, contentID, contentType string, parentVersion int, ...) (*model.ContentPageScheme, *model.ResponseScheme, error) + func (c *ChildrenDescandantsService) CopyHierarchy(ctx context.Context, contentID string, options *model.CopyOptionsScheme) (*model.TaskScheme, *model.ResponseScheme, error) + func (c *ChildrenDescandantsService) CopyPage(ctx context.Context, contentID string, expand []string, ...) (*model.ContentScheme, *model.ResponseScheme, error) + func (c *ChildrenDescandantsService) Descendants(ctx context.Context, contentID string, expand []string) (*model.ContentChildrenScheme, *model.ResponseScheme, error) + func (c *ChildrenDescandantsService) DescendantsByType(ctx context.Context, contentID, contentType, depth string, expand []string, ...) (*model.ContentPageScheme, *model.ResponseScheme, error) + func (c *ChildrenDescandantsService) Move(ctx context.Context, pageID string, position string, targetID string) (*model.ContentMoveScheme, *model.ResponseScheme, error) + type CommentService struct + func NewCommentService(client service.Connector) *CommentService + func (c *CommentService) Gets(ctx context.Context, contentID string, expand, location []string, ...) (*model.ContentPageScheme, *model.ResponseScheme, error) + type ContentAttachmentService struct + func NewContentAttachmentService(client service.Connector) *ContentAttachmentService + func (a *ContentAttachmentService) Create(ctx context.Context, attachmentID, status, fileName string, file io.Reader) (*model.ContentPageScheme, *model.ResponseScheme, error) + func (a *ContentAttachmentService) CreateOrUpdate(ctx context.Context, attachmentID, status, fileName string, file io.Reader) (*model.ContentPageScheme, *model.ResponseScheme, error) + func (a *ContentAttachmentService) Gets(ctx context.Context, contentID string, startAt, maxResults int, ...) (*model.ContentPageScheme, *model.ResponseScheme, error) + type ContentLabelService struct + func NewContentLabelService(client service.Connector) *ContentLabelService + func (c *ContentLabelService) Add(ctx context.Context, contentID string, ...) (*model.ContentLabelPageScheme, *model.ResponseScheme, error) + func (c *ContentLabelService) Gets(ctx context.Context, contentID, prefix string, startAt, maxResults int) (*model.ContentLabelPageScheme, *model.ResponseScheme, error) + func (c *ContentLabelService) Remove(ctx context.Context, contentID, labelName string) (*model.ResponseScheme, error) + type ContentService struct + Attachment *ContentAttachmentService + ChildrenDescendant *ChildrenDescandantsService + Comment *CommentService + Label *ContentLabelService + Permission *PermissionService + Property *PropertyService + Restriction *RestrictionService + Version *VersionService + func NewContentService(client service.Connector, subServices *ContentSubServices) *ContentService + func (c *ContentService) Archive(ctx context.Context, payload *model.ContentArchivePayloadScheme) (*model.ContentArchiveResultScheme, *model.ResponseScheme, error) + func (c *ContentService) Create(ctx context.Context, payload *model.ContentScheme) (*model.ContentScheme, *model.ResponseScheme, error) + func (c *ContentService) Delete(ctx context.Context, contentID, status string) (*model.ResponseScheme, error) + func (c *ContentService) Get(ctx context.Context, contentID string, expand []string, version int) (*model.ContentScheme, *model.ResponseScheme, error) + func (c *ContentService) Gets(ctx context.Context, options *model.GetContentOptionsScheme, ...) (*model.ContentPageScheme, *model.ResponseScheme, error) + func (c *ContentService) History(ctx context.Context, contentID string, expand []string) (*model.ContentHistoryScheme, *model.ResponseScheme, error) + func (c *ContentService) Search(ctx context.Context, cql, cqlContext string, expand []string, cursor string, ...) (*model.ContentPageScheme, *model.ResponseScheme, error) + func (c *ContentService) Update(ctx context.Context, contentID string, payload *model.ContentScheme) (*model.ContentScheme, *model.ResponseScheme, error) + type ContentSubServices struct + Attachment *ContentAttachmentService + ChildrenDescendant *ChildrenDescandantsService + Comment *CommentService + Label *ContentLabelService + Permission *PermissionService + Property *PropertyService + Restriction *RestrictionService + Version *VersionService + type CustomContentService struct + func NewCustomContentService(client service.Connector) *CustomContentService + func (c *CustomContentService) Create(ctx context.Context, payload *model.CustomContentPayloadScheme) (*model.CustomContentScheme, *model.ResponseScheme, error) + func (c *CustomContentService) Delete(ctx context.Context, customContentID int) (*model.ResponseScheme, error) + func (c *CustomContentService) Get(ctx context.Context, customContentID int, format string, versionID int) (*model.CustomContentScheme, *model.ResponseScheme, error) + func (c *CustomContentService) Gets(ctx context.Context, typ string, options *model.CustomContentOptionsScheme, ...) (*model.CustomContentPageScheme, *model.ResponseScheme, error) + func (c *CustomContentService) Update(ctx context.Context, customContentID int, ...) (*model.CustomContentScheme, *model.ResponseScheme, error) + type LabelService struct + func NewLabelService(client service.Connector) *LabelService + func (l *LabelService) Get(ctx context.Context, labelName, labelType string, start, limit int) (*model.LabelDetailsScheme, *model.ResponseScheme, error) + type PageService struct + func NewPageService(client service.Connector) *PageService + func (p *PageService) Bulk(ctx context.Context, cursor string, limit int) (*model.PageChunkScheme, *model.ResponseScheme, error) + func (p *PageService) Create(ctx context.Context, payload *model.PageCreatePayloadScheme) (*model.PageScheme, *model.ResponseScheme, error) + func (p *PageService) Delete(ctx context.Context, pageID int) (*model.ResponseScheme, error) + func (p *PageService) Get(ctx context.Context, pageID int, format string, draft bool, version int) (*model.PageScheme, *model.ResponseScheme, error) + func (p *PageService) Gets(ctx context.Context, options *model.PageOptionsScheme, cursor string, ...) (*model.PageChunkScheme, *model.ResponseScheme, error) + func (p *PageService) GetsByLabel(ctx context.Context, labelID int, sort, cursor string, limit int) (*model.PageChunkScheme, *model.ResponseScheme, error) + func (p *PageService) GetsByParent(ctx context.Context, pageID int, cursor string, limit int) (*model.ChildPageChunkScheme, *model.ResponseScheme, error) + func (p *PageService) GetsBySpace(ctx context.Context, spaceID int, cursor string, limit int) (*model.PageChunkScheme, *model.ResponseScheme, error) + func (p *PageService) Update(ctx context.Context, pageID int, payload *model.PageUpdatePayloadScheme) (*model.PageScheme, *model.ResponseScheme, error) + type PermissionService struct + func NewPermissionService(client service.Connector) *PermissionService + func (p *PermissionService) Check(ctx context.Context, contentID string, payload *model.CheckPermissionScheme) (*model.PermissionCheckResponseScheme, *model.ResponseScheme, error) + type PropertyService struct + func NewPropertyService(client service.Connector) *PropertyService + func (p *PropertyService) Create(ctx context.Context, contentID string, ...) (*model.ContentPropertyScheme, *model.ResponseScheme, error) + func (p *PropertyService) Delete(ctx context.Context, contentID, key string) (*model.ResponseScheme, error) + func (p *PropertyService) Get(ctx context.Context, contentID, key string) (*model.ContentPropertyScheme, *model.ResponseScheme, error) + func (p *PropertyService) Gets(ctx context.Context, contentID string, expand []string, ...) (*model.ContentPropertyPageScheme, *model.ResponseScheme, error) + type RestrictionOperationGroupService struct + func NewRestrictionOperationGroupService(client service.Connector) *RestrictionOperationGroupService + func (r *RestrictionOperationGroupService) Add(ctx context.Context, contentID, operationKey, groupNameOrID string) (*model.ResponseScheme, error) + func (r *RestrictionOperationGroupService) Get(ctx context.Context, contentID, operationKey, groupNameOrID string) (*model.ResponseScheme, error) + func (r *RestrictionOperationGroupService) Remove(ctx context.Context, contentID, operationKey, groupNameOrID string) (*model.ResponseScheme, error) + type RestrictionOperationService struct + Group *RestrictionOperationGroupService + User *RestrictionOperationUserService + func NewRestrictionOperationService(client service.Connector, group *RestrictionOperationGroupService, ...) *RestrictionOperationService + func (r *RestrictionOperationService) Get(ctx context.Context, contentID, operationKey string, expand []string, ...) (*model.ContentRestrictionScheme, *model.ResponseScheme, error) + func (r *RestrictionOperationService) Gets(ctx context.Context, contentID string, expand []string) (*model.ContentRestrictionByOperationScheme, *model.ResponseScheme, error) + type RestrictionOperationUserService struct + func NewRestrictionOperationUserService(client service.Connector) *RestrictionOperationUserService + func (r *RestrictionOperationUserService) Add(ctx context.Context, contentID, operationKey, accountID string) (*model.ResponseScheme, error) + func (r *RestrictionOperationUserService) Get(ctx context.Context, contentID, operationKey, accountID string) (*model.ResponseScheme, error) + func (r *RestrictionOperationUserService) Remove(ctx context.Context, contentID, operationKey, accountID string) (*model.ResponseScheme, error) + type RestrictionService struct + Operation *RestrictionOperationService + func NewRestrictionService(client service.Connector, operation *RestrictionOperationService) *RestrictionService + func (r *RestrictionService) Add(ctx context.Context, contentID string, ...) (*model.ContentRestrictionPageScheme, *model.ResponseScheme, error) + func (r *RestrictionService) Delete(ctx context.Context, contentID string, expand []string) (*model.ContentRestrictionPageScheme, *model.ResponseScheme, error) + func (r *RestrictionService) Gets(ctx context.Context, contentID string, expand []string, ...) (*model.ContentRestrictionPageScheme, *model.ResponseScheme, error) + func (r *RestrictionService) Update(ctx context.Context, contentID string, ...) (*model.ContentRestrictionPageScheme, *model.ResponseScheme, error) + type SearchService struct + func NewSearchService(client service.Connector) *SearchService + func (s *SearchService) Content(ctx context.Context, cql string, options *model.SearchContentOptions) (*model.SearchPageScheme, *model.ResponseScheme, error) + func (s *SearchService) Users(ctx context.Context, cql string, start, limit int, expand []string) (*model.SearchPageScheme, *model.ResponseScheme, error) + type SpacePermissionService struct + func NewSpacePermissionService(client service.Connector) *SpacePermissionService + func (s *SpacePermissionService) Add(ctx context.Context, spaceKey string, ...) (*model.SpacePermissionV2Scheme, *model.ResponseScheme, error) + func (s *SpacePermissionService) Bulk(ctx context.Context, spaceKey string, ...) (*model.ResponseScheme, error) + func (s *SpacePermissionService) Remove(ctx context.Context, spaceKey string, permissionID int) (*model.ResponseScheme, error) + type SpaceService struct + Permission *SpacePermissionService + func NewSpaceService(client service.Connector, permission *SpacePermissionService) *SpaceService + func (s *SpaceService) Content(ctx context.Context, spaceKey, depth string, expand []string, ...) (*model.ContentChildrenScheme, *model.ResponseScheme, error) + func (s *SpaceService) ContentByType(ctx context.Context, spaceKey, contentType, depth string, expand []string, ...) (*model.ContentPageScheme, *model.ResponseScheme, error) + func (s *SpaceService) Create(ctx context.Context, payload *model.CreateSpaceScheme, private bool) (*model.SpaceScheme, *model.ResponseScheme, error) + func (s *SpaceService) Delete(ctx context.Context, spaceKey string) (*model.ContentTaskScheme, *model.ResponseScheme, error) + func (s *SpaceService) Get(ctx context.Context, spaceKey string, expand []string) (*model.SpaceScheme, *model.ResponseScheme, error) + func (s *SpaceService) Gets(ctx context.Context, options *model.GetSpacesOptionScheme, ...) (result *model.SpacePageScheme, response *model.ResponseScheme, err error) + func (s *SpaceService) Update(ctx context.Context, spaceKey string, payload *model.UpdateSpaceScheme) (*model.SpaceScheme, *model.ResponseScheme, error) + type SpaceV2Service struct + func NewSpaceV2Service(client service.Connector) *SpaceV2Service + func (s *SpaceV2Service) Bulk(ctx context.Context, options *model.GetSpacesOptionSchemeV2, cursor string, ...) (*model.SpaceChunkV2Scheme, *model.ResponseScheme, error) + func (s *SpaceV2Service) Get(ctx context.Context, spaceID int, descriptionFormat string) (*model.SpaceSchemeV2, *model.ResponseScheme, error) + func (s *SpaceV2Service) Permissions(ctx context.Context, spaceID int, cursor string, limit int) (*model.SpacePermissionPageScheme, *model.ResponseScheme, error) + type TaskService struct + func NewTaskService(client service.Connector) *TaskService + func (t *TaskService) Get(ctx context.Context, taskID string) (*model.LongTaskScheme, *model.ResponseScheme, error) + func (t *TaskService) Gets(ctx context.Context, start, limit int) (*model.LongTaskPageScheme, *model.ResponseScheme, error) + type VersionService struct + func NewVersionService(client service.Connector) *VersionService + func (v *VersionService) Delete(ctx context.Context, contentID string, versionNumber int) (*model.ResponseScheme, error) + func (v *VersionService) Get(ctx context.Context, contentID string, versionNumber int, expand []string) (*model.ContentVersionScheme, *model.ResponseScheme, error) + func (v *VersionService) Gets(ctx context.Context, contentID string, expand []string, start, limit int) (*model.ContentVersionPageScheme, *model.ResponseScheme, error) + func (v *VersionService) Restore(ctx context.Context, contentID string, ...) (*model.ContentVersionScheme, *model.ResponseScheme, error) Other modules containing this package github.com/ctreminiom/go-atlassian