Documentation ¶
Index ¶
- type 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
- type Label
- type LabelInfo
- type PageInfo
- type SpaceInfo
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { BaseURL string // contains filtered or unexported fields }
func (*API) AddPageLabels ¶
func (*API) CreateAttachment ¶
func (*API) CreatePage ¶
func (*API) DeletePageLabel ¶
func (*API) GetAttachments ¶
func (api *API) GetAttachments(pageID string) ([]AttachmentInfo, error)
func (*API) GetCurrentUser ¶
func (*API) GetPageLabels ¶
func (*API) RestrictPageUpdates ¶
func (*API) RestrictPageUpdatesCloud ¶
func (*API) RestrictPageUpdatesServer ¶
func (*API) UpdateAttachment ¶
func (api *API) UpdateAttachment( pageID string, attachID string, name string, comment string, reader io.Reader, ) (AttachmentInfo, error)
UpdateAttachment uploads a new version of the same attachment if the checksums differs from the previous one. It also handles a case where Confluence returns sort of "short" variant of the response instead of an extended one.
type AttachmentInfo ¶
type PageInfo ¶
type PageInfo struct { ID string `json:"id"` Title string `json:"title"` Type string `json:"type"` Version struct { Number int64 `json:"number"` } `json:"version"` Ancestors []struct { ID string `json:"id"` Title string `json:"title"` } `json:"ancestors"` Links struct { Full string `json:"webui"` } `json:"_links"` }
Click to show internal directories.
Click to hide internal directories.