Versions in this module Expand all Collapse all v0 v0.1.5 Jan 22, 2026 v0.1.4 Oct 8, 2025 v0.1.3 Oct 5, 2025 v0.1.2 Oct 5, 2025 v0.1.1 Oct 4, 2025 v0.1.0 Oct 4, 2025 Changes in this version + type Body struct + AnonymousExportView *BodyContent + Editor *BodyContent + Editor2 *BodyContent + ExportView *BodyContent + Storage *BodyContent + StyledView *BodyContent + View *BodyContent + Wiki *BodyContent + type BodyContent struct + Embeddeds []Embedded + Representation ContentFormat + Value string + WebResource *WebResource + type Children struct + Attachment *ContentArray + Comment *ContentArray + Expandable *Expandable + Links *Links + Page *ContentArray + type Client struct + func NewClient(cfg *Config) (*Client, error) + func (c *Client) AddComment(ctx context.Context, pageID string, body string) (*Comment, error) + func (c *Client) AddLabel(ctx context.Context, contentID string, name string, prefix string) (*Label, error) + func (c *Client) AddLabels(ctx context.Context, contentID string, labels []CreateLabelRequest) ([]Label, error) + func (c *Client) ConvertMarkdownToStorage(ctx context.Context, markdown string) (string, error) + func (c *Client) ConvertWikiToStorage(ctx context.Context, wiki string) (string, error) + func (c *Client) CreateContent(ctx context.Context, req *CreateContentRequest) (*Content, error) + func (c *Client) CreatePage(ctx context.Context, spaceKey, title, body string, parentID string) (*Content, error) + func (c *Client) DeleteComment(ctx context.Context, commentID string) error + func (c *Client) DeleteContent(ctx context.Context, contentID string) error + func (c *Client) DeletePage(ctx context.Context, pageID string) error + func (c *Client) GetAnonymousUser(ctx context.Context) (*User, error) + func (c *Client) GetComment(ctx context.Context, commentID string, expand []string) (*Comment, error) + func (c *Client) GetComments(ctx context.Context, pageID string, expand []string, limit int) ([]Comment, error) + func (c *Client) GetContent(ctx context.Context, contentID string, opts *GetContentOptions) (*Content, error) + func (c *Client) GetCurrentUser(ctx context.Context) (*User, error) + func (c *Client) GetDeploymentType() DeploymentType + func (c *Client) GetLabels(ctx context.Context, contentID string, prefix string, limit int) ([]Label, error) + func (c *Client) GetPage(ctx context.Context, pageID string, expand []string) (*Content, error) + func (c *Client) GetPageAncestors(ctx context.Context, pageID string) ([]Content, error) + func (c *Client) GetPageByTitle(ctx context.Context, spaceKey, title string, expand []string) (*Content, error) + func (c *Client) GetPageChildren(ctx context.Context, pageID string, expand []string, limit int) ([]Content, error) + func (c *Client) GetPageHistory(ctx context.Context, pageID string) (*History, error) + func (c *Client) GetSpace(ctx context.Context, spaceKey string, expand []string) (*Space, error) + func (c *Client) GetSpaceContent(ctx context.Context, spaceKey string, contentType ContentType, expand []string, ...) ([]Content, error) + func (c *Client) GetSpaces(ctx context.Context, opts *GetSpacesOptions) ([]Space, error) + func (c *Client) GetUser(ctx context.Context, accountIDOrUsername string) (*User, error) + func (c *Client) GetUserGroups(ctx context.Context, accountIDOrUsername string) ([]string, error) + func (c *Client) IsCloud() bool + func (c *Client) IsServer() bool + func (c *Client) RemoveLabel(ctx context.Context, contentID string, labelName string) error + func (c *Client) Search(ctx context.Context, query string, opts *SearchOptions) (*SearchResult, error) + func (c *Client) SearchByLabel(ctx context.Context, labelName string, spaceKey string, limit int) ([]Content, error) + func (c *Client) SearchCQL(ctx context.Context, cql string, opts *SearchOptions) (*SearchResult, error) + func (c *Client) SearchSpaces(ctx context.Context, query string, limit int) ([]Space, error) + func (c *Client) SearchUsers(ctx context.Context, cql string, limit int) ([]User, error) + func (c *Client) SearchUsersByName(ctx context.Context, query string, limit int) ([]User, error) + func (c *Client) UpdateComment(ctx context.Context, commentID string, body string, version int) (*Comment, error) + func (c *Client) UpdateContent(ctx context.Context, contentID string, req *UpdateContentRequest) (*Content, error) + func (c *Client) UpdatePage(ctx context.Context, pageID string, title, body string, version int) (*Content, error) + type Comment struct + Body *Body + Container *Container + Expandable *Expandable + ID string + Links *Links + Status string + Title string + Type string + Version *Version + type Config struct + Auth auth.Provider + BaseURL string + CustomHeaders map[string]string + HTTPProxy string + HTTPSProxy string + NoProxy string + SOCKSProxy string + SSLVerify bool + type Container struct + Expandable *Expandable + ID string + Links *Links + Title string + Type string + type Content struct + Ancestors []Content + Body *Body + Children *Children + Container *Container + Descendants *Descendants + Expandable *Expandable + Extensions map[string]interface{} + History *History + ID string + Links *Links + Metadata *Metadata + Space *Space + Status ContentStatus + Title string + Type ContentType + Version *Version + type ContentArray struct + Expandable *Expandable + Limit int + Links *Links + Results []Content + Size int + Start int + type ContentFormat string + const FormatEditor + const FormatExport + const FormatStorage + const FormatView + const FormatWiki + type ContentRef struct + ID string + Type string + type ContentStatus string + const ContentStatusCurrent + const ContentStatusDeleted + const ContentStatusDraft + const ContentStatusTrashed + type ContentType string + const ContentTypeAttachment + const ContentTypeBlogPost + const ContentTypeComment + const ContentTypePage + type Contributors struct + Publishers *UserArray + type CreateCommentRequest struct + Ancestors []ContentRef + Body *Body + Container *ContentRef + Type string + type CreateContentRequest struct + Ancestors []ContentRef + Body *Body + Space *SpaceRef + Status ContentStatus + Title string + Type ContentType + type CreateLabelRequest struct + Name string + Prefix string + type DeploymentType string + const DeploymentCloud + const DeploymentServer + type Descendants struct + Attachment *ContentArray + Comment *ContentArray + Expandable *Expandable + Links *Links + Page *ContentArray + type Embedded struct + EntityID string + EntityType string + type ErrorData struct + Authorized bool + Errors []ValidationError + Successful bool + Valid bool + type ErrorMessage struct + Args []interface{} + Key string + type ErrorResponse struct + Data *ErrorData + Message string + Reason string + StatusCode int + type Expandable struct + Ancestors string + Body string + Children string + Container string + Descendants string + History string + Metadata string + Operations string + Restrictions string + Space string + Version string + type Frontend struct + EditURL string + WebUI string + type GetContentOptions struct + Expand []string + Status ContentStatus + Version int + type GetSpacesOptions struct + Expand []string + Limit int + SpaceKey []string + SpaceType string + Start int + Status string + type History struct + Contributors *Contributors + CreatedBy *User + CreatedDate string + Expandable *Expandable + LastUpdated *Version + Latest bool + Links *Links + NextVersion *Version + PreviousVersion *Version + type Icon struct + Height int + IsDefault bool + Path string + Width int + type Label struct + ID string + Label string + Name string + Prefix string + type LabelArray struct + Expandable *Expandable + Limit int + Links *Links + Results []Label + Size int + Start int + type Links struct + Base string + Collection string + Context string + Download string + Edit string + Self string + TinyUI string + WebUI string + type Metadata struct + Expandable *Expandable + Frontend *Frontend + Labels *LabelArray + Links *Links + Properties map[string]interface{} + type ProfilePicture struct + Height int + IsDefault bool + Path string + Width int + type SearchOptions struct + Expand []string + Limit int + Start int + type SearchResult struct + CqlQuery string + Limit int + Links *Links + Results []Content + SearchDuration int + Size int + Start int + TotalSize int + type Space struct + Description *Body + Expandable *Expandable + Homepage *Content + ID interface{} + Icon *Icon + Key string + Links *Links + Name string + Status string + Type string + func (s *Space) GetID() string + type SpaceRef struct + Key string + type SuperBatch struct + Uris map[string]string + type UpdateContentRequest struct + Body *Body + Status ContentStatus + Title string + Type ContentType + Version *Version + type User struct + AccountID string + AccountType string + DisplayName string + Email string + Expandable *Expandable + Links *Links + ProfilePicture *ProfilePicture + PublicName string + Type string + UserKey string + Username string + type UserArray struct + Expandable *Expandable + Links *Links + Size int + UserKeys []string + Users []User + type ValidationError struct + Message *ErrorMessage + type Version struct + By *User + ConfRev string + ContentTypeModified bool + FriendlyWhen string + Message string + MinorEdit bool + Number int + SyncRev string + SyncRevSource string + When string + type WebResource struct + Contexts []string + Keys []string + SuperBatch *SuperBatch + Tags map[string]string + Uris map[string]string