Versions in this module Expand all Collapse all v1 v1.4.1 Jun 7, 2022 Changes in this version + var DebugFlag = false + func Debug(msg interface{}) + func SetDebug(state bool) + func StripHTML(buf []byte, bodyOnly, stripImg bool) string + type API struct + Client *http.Client + Debug bool + 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) AddPage(title, spaceKey, filepath string, bodyOnly, stripImgs bool, ancestor string) error + func (a *API) AddSpaceCategory(spaceKey string, category string) (*AddCategoryResponseType, 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) DoRequest(endpoint string, method string, responseContainer interface{}) error + func (a *API) GetAllGroupsWithAnyPermission(spacekey string, options *PaginationOptions) (*GetAllGroupsWithAnyPermissionType, error) + func (a *API) GetAllSpaces(query AllSpacesQuery) (*AllSpaces, error) + func (a *API) GetAllUsersWithAnyPermission(spacekey string, options *PaginationOptions) (*GetAllUsersWithAnyPermissionType, 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) GetGroupPermissionsForSpace(spacekey, group string) (*GetPermissionsForSpaceType, error) + func (a *API) GetGroups(options *GetGroupMembersOptions) (*GroupsType, error) + func (a *API) GetHistory(id string) (*History, error) + func (a *API) GetLabels(id string) (*Labels, error) + func (a *API) GetPageId(spacename string, pagename string) (*ContentSearch, error) + func (a *API) GetPermissionTypes() (*PermissionsTypes, error) + func (a *API) GetUserPermissionsForSpace(spacekey, user string) (*GetPermissionsForSpaceType, error) + func (a *API) GetUsers(group string, options *GetGroupMembersOptions) (*UsersType, 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) SendAddCategoryRequest(ep *url.URL, method string) (*AddCategoryResponseType, 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) SendGenericRequest(ep, method string) ([]byte, 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) UppdateAttachment(spacename string, pagename string, filename string) error + func (a *API) User(query string) (*User, error) + func (a *API) VerifyTLS(set bool) + type AddCategoryResponseType struct + Status string + type AllSpaces struct + Limit int64 + Links struct{ ... } + Results []struct{ ... } + Size int64 + Start int64 + type AllSpaces2 struct + Limit int64 + Links struct{ ... } + Results []struct{ ... } + Size int64 + Start int64 + type AllSpacesQuery struct + Expand []string + Favourite bool + FavouriteUserKey string + Label string + Limit int + SpaceKey string + Start int + Status string + Type string + type Ancestor struct + ID 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 + Limit int64 + Links struct{ ... } + Results []struct{ ... } + Size int64 + Start int64 + type Editor struct + Key string + Value string + type GetAllGroupsWithAnyPermissionType struct + Groups []string + MaxResults int64 + StartAt int64 + Total int64 + type GetAllUsersWithAnyPermissionType struct + MaxResults int64 + StartAt int64 + Total int64 + Users []string + type GetGroupMembersOptions struct + MaxResults int + StartAt int + type GetPermissionsForSpaceType struct + Key string + Name string + Permissions []string + type GroupsType struct + Groups []string + MaxResults int64 + StartAt int64 + Status string + Total int64 + type History struct + CreatedBy User + CreatedDate string + LastUpdated LastUpdated + Latest bool + 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 + TinyUI string + type Metadata struct + Properties *Properties + type PaginationOptions struct + MaxResults int + StartAt int + type PermissionsTypes []string + 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 + ID string + 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 UsersType struct + MaxResults int64 + StartAt int64 + Status string + Total int64 + Users []struct{ ... } + type Version struct + By *User + Message string + MinorEdit bool + Number int + type Watcher struct + ContentID int + Type string + Watcher User + type Watchers struct + Limit int + Size int + Start int + Watchers []Watcher