Versions in this module Expand all Collapse all v1 v1.0.0 Nov 26, 2024 Changes in this version + type API struct + BaseURL string + func NewAPI(baseURL string, username string, password string) *API + func (api *API) AddPageLabels(page *PageInfo, newLabels []string) (*LabelInfo, error) + func (api *API) CreateAttachment(pageID string, name string, comment string, reader io.Reader) (AttachmentInfo, error) + func (api *API) CreatePage(space string, pageType string, parent *PageInfo, title string, body string) (*PageInfo, error) + func (api *API) DeletePageLabel(page *PageInfo, label string) (*LabelInfo, error) + func (api *API) FindHomePage(space string) (*PageInfo, error) + func (api *API) FindPage(space string, title string, pageType string) (*PageInfo, error) + func (api *API) FindRootPage(space string) (*PageInfo, error) + func (api *API) GetAttachments(pageID string) ([]AttachmentInfo, error) + func (api *API) GetCurrentUser() (*User, error) + func (api *API) GetPageByID(pageID string) (*PageInfo, error) + func (api *API) GetPageLabels(page *PageInfo, prefix string) (*LabelInfo, error) + func (api *API) GetUserByName(name string) (*User, error) + func (api *API) RestrictPageUpdates(page *PageInfo, allowedUser string) error + func (api *API) RestrictPageUpdatesCloud(page *PageInfo, allowedUser string) error + func (api *API) RestrictPageUpdatesServer(page *PageInfo, allowedUser string) error + func (api *API) UpdateAttachment(pageID string, attachID string, name string, comment string, reader io.Reader) (AttachmentInfo, error) + func (api *API) UpdatePage(page *PageInfo, newContent string, minorEdit bool, versionMessage string, ...) error + type AttachmentInfo struct + Filename string + ID string + Links struct{ ... } + Metadata struct{ ... } + type Label struct + ID string + Name string + Prefix string + type LabelInfo struct + Labels []Label + Size int + type PageInfo struct + Ancestors []struct{ ... } + ID string + Links struct{ ... } + Title string + Type string + Version struct{ ... } + type SpaceInfo struct + Homepage PageInfo + ID int + Key string + Links struct{ ... } + Name string + type User struct + AccountID string + UserKey string