Versions in this module Expand all Collapse all v0 v0.0.1 Apr 23, 2020 Changes in this version + var DebugFlag = false + func Debug(msg interface{}) + func SetDebug(state bool) + type API struct + func NewAPI(location string, username string, token string) (*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) DownloadAttachment(download string) ([]byte, error) + func (a *API) GetAllSpaces(query AllSpacesQuery) (*AllSpaces, error) + func (a *API) GetAttachments(id string) (*Search, error) + func (a *API) GetChildPages(id string) (*Search, error) + func (a *API) GetComments(id string) (*Search, error) + func (a *API) GetContent(query ContentQuery) (*Search, error) + func (a *API) GetContentByID(id string, query ContentQuery) (*Content, 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) SendContentRequest(ep *url.URL, method string, c *Content) (*Content, error) + func (a *API) SendDownloadRequest(ep *url.URL, 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) UpdateContent(c *Content) (*Content, error) + func (a *API) User(query string) (*User, error) + 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 Body struct + Storage Storage + type Content struct + Ancestors []Ancestor + Body Body + ID string + Space Space + Status string + Title string + Type string + Version Version + type ContentQuery struct + Expand []string + Limit int + OrderBy string + PostingDay string + SpaceKey string + Start int + Status string + Title string + Trigger string + Type string + 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 Results struct + Content Content + Excerpt string + ID string + Links map[string]string + Title string + Type string + URL string + type Search struct + ID string + Limit int + Results []Results + Size int + Start int + type SearchQuery struct + CQL string + CQLContext 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 User struct + AccountID string + DisplayName string + Type string + UserKey string + Username string + type Version struct + Number int + type Watcher struct + ContentID int + Type string + Watcher User + type Watchers struct + Limit int + Size int + Start int + Watchers []Watcher