Versions in this module Expand all Collapse all v0 v0.0.1 Oct 6, 2022 Changes in this version + type ApiErrorResponseDataScheme struct + Authorized bool + Errors []struct{ ... } + Successful bool + Valid bool + type ApiErrorResponseScheme struct + Data *ApiErrorResponseDataScheme + Message string + StatusCode int + type AuthenticationService struct + func (a *AuthenticationService) SetBasicAuth(mail, token string) + func (a *AuthenticationService) SetUserAgent(agent string) + type Client struct + Auth *AuthenticationService + Content *ContentService + HTTP *http.Client + Label *LabelService + LongTask *LongTaskService + Search *SearchService + Site *url.URL + Space *SpaceService + func New(httpClient *http.Client, site string) (client *Client, err error) + func (c *Client) Call(request *http.Request, structure interface{}) (result *ResponseScheme, err error) + type ContentAttachmentService struct + func (c *ContentAttachmentService) Create(ctx context.Context, attachmentID, status, fileName string, file io.Reader) (result *model.ContentPageScheme, response *ResponseScheme, err error) + func (c *ContentAttachmentService) CreateOrUpdate(ctx context.Context, attachmentID, status, fileName string, file io.Reader) (result *model.ContentPageScheme, response *ResponseScheme, err error) + func (c *ContentAttachmentService) Gets(ctx context.Context, contentID string, startAt, maxResults int, ...) (result *model.ContentPageScheme, response *ResponseScheme, err error) + type ContentChildrenDescendantService struct + func (c *ContentChildrenDescendantService) Children(ctx context.Context, contentID string, expand []string, parentVersion int) (result *model.ContentChildrenScheme, response *ResponseScheme, err error) + func (c *ContentChildrenDescendantService) ChildrenByType(ctx context.Context, contentID, contentType string, parentVersion int, ...) (result *model.ContentPageScheme, response *ResponseScheme, err error) + func (c *ContentChildrenDescendantService) CopyHierarchy(ctx context.Context, contentID string, options *model.CopyOptionsScheme) (result *model.TaskScheme, response *ResponseScheme, err error) + func (c *ContentChildrenDescendantService) CopyPage(ctx context.Context, contentID string, expand []string, ...) (result *model.ContentScheme, response *ResponseScheme, err error) + func (c *ContentChildrenDescendantService) Descendants(ctx context.Context, contentID string, expand []string) (result *model.ContentChildrenScheme, response *ResponseScheme, err error) + func (c *ContentChildrenDescendantService) DescendantsByType(ctx context.Context, contentID, contentType, depth string, expand []string, ...) (result *model.ContentPageScheme, response *ResponseScheme, err error) + type ContentCommentService struct + func (c *ContentCommentService) Gets(ctx context.Context, contentID string, expand, location []string, ...) (result *model.ContentPageScheme, response *ResponseScheme, err error) + type ContentLabelService struct + func (c *ContentLabelService) Add(ctx context.Context, contentID string, ...) (result *model.ContentLabelPageScheme, response *ResponseScheme, err error) + func (c *ContentLabelService) Gets(ctx context.Context, contentID, prefix string, startAt, maxResults int) (result *model.ContentLabelPageScheme, response *ResponseScheme, err error) + func (c *ContentLabelService) Remove(ctx context.Context, contentID, labelName string) (response *ResponseScheme, err error) + type ContentPermissionService struct + func (c *ContentPermissionService) Check(ctx context.Context, contentID string, payload *model.CheckPermissionScheme) (result *model.PermissionCheckResponseScheme, response *ResponseScheme, ...) + type ContentPropertyService struct + func (c *ContentPropertyService) Create(ctx context.Context, contentID string, ...) (result *model.ContentPropertyScheme, response *ResponseScheme, err error) + func (c *ContentPropertyService) Delete(ctx context.Context, contentID, key string) (response *ResponseScheme, err error) + func (c *ContentPropertyService) Get(ctx context.Context, contentID, key string) (result *model.ContentPropertyScheme, response *ResponseScheme, err error) + func (c *ContentPropertyService) Gets(ctx context.Context, contentID string, expand []string, ...) (result *model.ContentPropertyPageScheme, response *ResponseScheme, err error) + type ContentRestrictionOperationGroupService struct + func (c *ContentRestrictionOperationGroupService) Add(ctx context.Context, contentID, operationKey, groupNameOrID string) (response *ResponseScheme, err error) + func (c *ContentRestrictionOperationGroupService) Get(ctx context.Context, contentID, operationKey, groupNameOrID string) (response *ResponseScheme, err error) + func (c *ContentRestrictionOperationGroupService) Remove(ctx context.Context, contentID, operationKey, groupNameOrID string) (response *ResponseScheme, err error) + type ContentRestrictionOperationService struct + Group *ContentRestrictionOperationGroupService + User *ContentRestrictionOperationUserService + func (c *ContentRestrictionOperationService) Get(ctx context.Context, contentID, operationKey string, expand []string, ...) (result *models.ContentRestrictionScheme, response *ResponseScheme, err error) + func (c *ContentRestrictionOperationService) Gets(ctx context.Context, contentID string, expand []string) (result *models.ContentRestrictionByOperationScheme, response *ResponseScheme, ...) + type ContentRestrictionOperationUserService struct + func (c *ContentRestrictionOperationUserService) Add(ctx context.Context, contentID, operationKey, accountID string) (response *ResponseScheme, err error) + func (c *ContentRestrictionOperationUserService) Get(ctx context.Context, contentID, operationKey, accountID string) (response *ResponseScheme, err error) + func (c *ContentRestrictionOperationUserService) Remove(ctx context.Context, contentID, operationKey, accountID string) (response *ResponseScheme, err error) + type ContentRestrictionService struct + Operation *ContentRestrictionOperationService + func (c *ContentRestrictionService) Add(ctx context.Context, contentID string, ...) (result *models.ContentRestrictionPageScheme, response *ResponseScheme, ...) + func (c *ContentRestrictionService) Delete(ctx context.Context, contentID string, expand []string) (result *models.ContentRestrictionPageScheme, response *ResponseScheme, ...) + func (c *ContentRestrictionService) Gets(ctx context.Context, contentID string, expand []string, ...) (result *models.ContentRestrictionPageScheme, response *ResponseScheme, ...) + func (c *ContentRestrictionService) Update(ctx context.Context, contentID string, ...) (result *models.ContentRestrictionPageScheme, response *ResponseScheme, ...) + type ContentService struct + Attachment *ContentAttachmentService + ChildrenDescendant *ContentChildrenDescendantService + Comment *ContentCommentService + Label *ContentLabelService + Permission *ContentPermissionService + Property *ContentPropertyService + Restriction *ContentRestrictionService + Version *ContentVersionService + func (c *ContentService) Archive(ctx context.Context, payload *model.ContentArchivePayloadScheme) (result *model.ContentArchiveResultScheme, response *ResponseScheme, err error) + func (c *ContentService) Create(ctx context.Context, payload *model.ContentScheme) (result *model.ContentScheme, response *ResponseScheme, err error) + func (c *ContentService) Delete(ctx context.Context, contentID, status string) (response *ResponseScheme, err error) + func (c *ContentService) Get(ctx context.Context, contentID string, expand []string, version int) (result *model.ContentScheme, response *ResponseScheme, err error) + func (c *ContentService) Gets(ctx context.Context, options *model.GetContentOptionsScheme, ...) (result *model.ContentPageScheme, response *ResponseScheme, err error) + func (c *ContentService) History(ctx context.Context, contentID string, expand []string) (result *model.ContentHistoryScheme, response *ResponseScheme, err error) + func (c *ContentService) Search(ctx context.Context, cql, cqlContext string, expand []string, cursor string, ...) (result *model.ContentPageScheme, response *ResponseScheme, err error) + func (c *ContentService) Update(ctx context.Context, contentID string, payload *model.ContentScheme) (result *model.ContentScheme, response *ResponseScheme, err error) + type ContentVersionService struct + func (c *ContentVersionService) Delete(ctx context.Context, contentID string, versionNumber int) (response *ResponseScheme, err error) + func (c *ContentVersionService) Get(ctx context.Context, contentID string, versionNumber int, expand []string) (result *models.ContentVersionScheme, response *ResponseScheme, err error) + func (c *ContentVersionService) Gets(ctx context.Context, contentID string, expand []string, start, limit int) (result *models.ContentVersionPageScheme, response *ResponseScheme, err error) + func (c *ContentVersionService) Restore(ctx context.Context, contentID string, ...) (result *models.ContentVersionScheme, response *ResponseScheme, err error) + type LabelService struct + func (l *LabelService) Get(ctx context.Context, labelName, labelType string, start, limit int) (result *models.LabelDetailsScheme, response *ResponseScheme, err error) + type LongTaskService struct + func (l *LongTaskService) Get(ctx context.Context, taskID string) (result *models.LongTaskScheme, response *ResponseScheme, err error) + func (l *LongTaskService) Gets(ctx context.Context, start, limit int) (result *models.LongTaskPageScheme, response *ResponseScheme, err error) + type ResponseScheme struct + API *ApiErrorResponseScheme + Bytes bytes.Buffer + Code int + Endpoint string + Headers map[string][]string + Method string + type SearchService struct + func (s *SearchService) Content(ctx context.Context, cql string, options *models.SearchContentOptions) (result *models.SearchPageScheme, response *ResponseScheme, err error) + func (s *SearchService) Users(ctx context.Context, cql string, start, limit int, expand []string) (result *models.SearchPageScheme, response *ResponseScheme, err error) + type SpacePermissionService struct + func (s *SpacePermissionService) Add(ctx context.Context, spaceKey string, ...) (result *models.SpacePermissionV2Scheme, response *ResponseScheme, err error) + func (s *SpacePermissionService) Bulk(ctx context.Context, spaceKey string, ...) (response *ResponseScheme, err error) + func (s *SpacePermissionService) Remove(ctx context.Context, spaceKey string, permissionId int) (response *ResponseScheme, err error) + type SpaceService struct + Permission *SpacePermissionService + func (s *SpaceService) Content(ctx context.Context, spaceKey, depth string, expand []string, ...) (result *model.ContentChildrenScheme, response *ResponseScheme, err error) + func (s *SpaceService) ContentByType(ctx context.Context, spaceKey, contentType, depth string, expand []string, ...) (result *model.ContentPageScheme, response *ResponseScheme, err error) + func (s *SpaceService) Create(ctx context.Context, payload *model.CreateSpaceScheme, private bool) (result *model.SpaceScheme, response *ResponseScheme, err error) + func (s *SpaceService) Delete(ctx context.Context, spaceKey string) (result *model.ContentTaskScheme, response *ResponseScheme, err error) + func (s *SpaceService) Get(ctx context.Context, spaceKey string, expand []string) (result *model.SpaceScheme, response *ResponseScheme, err error) + func (s *SpaceService) Gets(ctx context.Context, options *model.GetSpacesOptionScheme, ...) (result *model.SpacePageScheme, response *ResponseScheme, err error) + func (s *SpaceService) Update(ctx context.Context, spaceKey string, payload *model.UpdateSpaceScheme) (result *model.SpaceScheme, response *ResponseScheme, err error)