Versions in this module Expand all Collapse all v1 v1.5.10 May 8, 2025 v1.5.9 May 7, 2025 v1.5.8 May 7, 2025 v1.5.7 May 7, 2025 Changes in this version type Space + SpaceOwnerId string v1.5.6 Apr 3, 2025 v1.5.5 Apr 3, 2025 Changes in this version type AllSpacesQuery + Labels []string v1.5.4 Mar 12, 2025 Changes in this version type User + AccountStatus string v1.5.3 Mar 12, 2025 Changes in this version type User + Email string v1.5.2 Mar 12, 2025 Changes in this version + var DebugFlag = false + func Debug(msg interface{}) + func SetDebug(state bool) + type API struct + Client *http.Client + func NewAPI(location string, username string, token string) (*API, error) + func NewAPIWithClient(location string, client *http.Client) (*API, error) + func (a *API) AddLabels(id string, labels *[]Label) (*Labels, error) + func (a *API) AnonymousUser() (*User, error) + func (a *API) Auth(req *http.Request) + func (a *API) CreateContent(c *Content) (*Content, error) + func (a *API) CurrentUser() (*User, error) + func (a *API) DelContent(id string) (*Content, error) + func (a *API) DeleteLabel(id string, name string) (*Labels, error) + func (a *API) GetAllSpaces(query AllSpacesQuery) (*AllSpaces, error) + func (a *API) GetAttachmentById(id string) (*Attachment, error) + func (a *API) GetAttachments(id string) (*Search, error) + func (a *API) GetBlueprintTemplates(query TemplateQuery) (*TemplateSearch, error) + func (a *API) GetChildPages(id string) (*Search, error) + func (a *API) GetComments(id string) (*Search, error) + func (a *API) GetContent(query ContentQuery) (*ContentSearch, error) + func (a *API) GetContentByID(id string, query ContentQuery) (*Content, error) + func (a *API) GetContentTemplates(query TemplateQuery) (*TemplateSearch, error) + func (a *API) GetContentVersion(id string) (*ContentVersionResult, error) + func (a *API) GetHistory(id string) (*History, error) + func (a *API) GetLabels(id string) (*Labels, error) + func (a *API) GetWatchers(id string) (*Watchers, error) + func (a *API) Request(req *http.Request) ([]byte, error) + func (a *API) Search(query SearchQuery) (*Search, error) + func (a *API) SendAllSpacesRequest(ep *url.URL, method string) (*AllSpaces, error) + func (a *API) SendContentAttachmentRequest(ep *url.URL, attachmentName string, attachment io.Reader, ...) (*Search, error) + func (a *API) SendContentRequest(ep *url.URL, method string, c *Content) (*Content, error) + func (a *API) SendContentVersionRequest(ep *url.URL, method string) (*ContentVersionResult, error) + func (a *API) SendHistoryRequest(ep *url.URL, method string) (*History, error) + func (a *API) SendLabelRequest(ep *url.URL, method string, labels *[]Label) (*Labels, error) + func (a *API) SendSearchRequest(ep *url.URL, method string) (*Search, error) + func (a *API) SendUserRequest(ep *url.URL, method string) (*User, error) + func (a *API) SendWatcherRequest(ep *url.URL, method string) (*Watchers, error) + func (a *API) UpdateAttachment(id string, attachmentName string, attachmentID string, attachment io.Reader) (*Search, error) + func (a *API) UpdateContent(c *Content) (*Content, error) + func (a *API) UploadAttachment(id string, attachmentName string, attachment io.Reader) (*Search, error) + func (a *API) User(query string) (*User, error) + func (a *API) VerifyTLS(set bool) + type AllSpaces struct + Limit int + Results []Space + Size int + Start int + type AllSpacesQuery struct + Expand []string + Favourite bool + FavouriteUserKey string + Limit int + SpaceKey string + Start int + Status string + Type string + type Ancestor struct + ID string + type Attachment struct + Comment string + CreatedAt interface{} + DownloadLink string + FileID string + FileSize int + ID string + Links struct{ ... } + MediaType string + MediaTypeDescription string + PageID string + Status string + Title string + Version struct{ ... } + WebuiLink string + type Body struct + Storage Storage + View *Storage + type BodyExportView struct + ExportView *Storage + View *Storage + type Content struct + Ancestors []Ancestor + Body Body + History *History + ID string + Links *Links + Metadata *Metadata + Space *Space + Status string + Title string + Type string + Version *Version + type ContentAppearanceDraft struct + Value string + type ContentAppearancePublished struct + Value string + type ContentQuery struct + Expand []string + Limit int + OrderBy string + PostingDay string + SpaceKey string + Start int + Status string + Title string + Trigger string + Type string + Version int + type ContentSearch struct + Limit int + Results []Content + Size int + Start int + type ContentVersionResult struct + Result []Version + type Editor struct + Key string + Value string + type History struct + CreatedBy User + CreatedDate string + LastUpdated LastUpdated + Latest bool + OwnedBy User + type Label struct + ID string + Label string + Name string + Prefix string + type Labels struct + Labels []Label + Limit int + Size int + Start int + type LastUpdated struct + By User + ConfRev string + FriendlyWhen string + Message string + MinorEdit bool + Number int + SyncRev string + When string + type Links struct + Base string + Download string + TinyUI string + WebUI string + type Metadata struct + Properties *Properties + type Properties struct + ContentAppearanceDraft *ContentAppearanceDraft + ContentAppearancePublished *ContentAppearancePublished + Editor *Editor + type Results struct + Content Content + Excerpt string + ID string + Status string + Title string + Type string + URL string + type Search struct + Limit int + Results []Results + Size int + Start int + TotalSize int + type SearchQuery struct + CQL string + CQLContext string + Expand []string + IncludeArchivedSpaces bool + Limit int + Start int + type Space struct + ID int + Key string + Name string + Status string + Type string + type Storage struct + Representation string + Value string + type Template struct + Body Body + Description string + ID string + Name string + Space Space + Type string + type TemplateQuery struct + Expand []string + Limit int + SpaceKey string + Start int + type TemplateSearch struct + Limit int + Results []Template + Size int + Start int + type User struct + AccountID string + DisplayName string + Type string + UserKey string + Username string + type Version struct + By *User + Message string + MinorEdit bool + Number int + When string + type Watcher struct + ContentID int + Type string + Watcher User + type Watchers struct + Limit int + Size int + Start int + Watchers []Watcher