Documentation
¶
Index ¶
- type BodyValue
- type Confluence
- func (c *Confluence) FindPagesIDs(text string) []string
- func (c *Confluence) FindPagesSpaceTitles(text string) []SpaceTitle
- func (c *Confluence) FindPagesViewIDs(text string) []string
- func (c *Confluence) GetByKey(ctx context.Context, pageID string) (interface{}, error)
- func (c *Confluence) GetCurrentUser() (string, error)
- func (c *Confluence) GetPageCtx(ctx context.Context, pageID string) (*Page, error)
- func (c *Confluence) GetPageIdBySpaceTitle(st SpaceTitle) (string, error)
- func (c *Confluence) GetPages(pageIDs []string) ([]*Page, error)
- type Page
- func (p *Page) CreatedBy() *Person
- func (p *Page) CreatedDate() time.Time
- func (p *Page) Description() string
- func (p *Page) GetStatus() string
- func (p *Page) LastVersionNumber() string
- func (p *Page) Latest() string
- func (p *Page) Link() string
- func (p *Page) SpaceName() string
- func (p *Page) UpdatedBy() *Person
- func (p *Page) UpdatedDate() time.Time
- type PageSearchResult
- type Person
- type SpaceTitle
- type Time
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Confluence ¶
type Confluence struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config *config.Confluence) *Confluence
func (*Confluence) FindPagesIDs ¶
func (c *Confluence) FindPagesIDs(text string) []string
func (*Confluence) FindPagesSpaceTitles ¶
func (c *Confluence) FindPagesSpaceTitles(text string) []SpaceTitle
func (*Confluence) FindPagesViewIDs ¶
func (c *Confluence) FindPagesViewIDs(text string) []string
func (*Confluence) GetByKey ¶
func (c *Confluence) GetByKey(ctx context.Context, pageID string) (interface{}, error)
func (*Confluence) GetCurrentUser ¶
func (c *Confluence) GetCurrentUser() (string, error)
func (*Confluence) GetPageCtx ¶
func (*Confluence) GetPageIdBySpaceTitle ¶
func (c *Confluence) GetPageIdBySpaceTitle(st SpaceTitle) (string, error)
type Page ¶
type Page struct { ID string `json:"id"` Type string `json:"types"` Status string `json:"status"` Title string `json:"title"` Space struct { ID int `json:"id"` Key string `json:"key"` Name string `json:"name"` } `json:"space"` Links struct { WebUI string `json:"webui"` TinyUI string `json:"tinyui"` Base string `json:"base"` } `json:"_links"` History struct { Latest bool `json:"latest"` CreatedDate Time `json:"createdDate"` CreatedBy struct { Username string `json:"username"` DisplayName string `json:"displayName"` } `json:"createdBy"` LastUpdated struct { By struct { Username string `json:"username"` DisplayName string `json:"displayName"` } `json:"by"` When Time `json:"when"` Number int `json:"number"` } `json:"lastUpdated"` } `json:"history"` Body struct { Editor *BodyValue `json:"editor,omitempty"` View *BodyValue `json:"view,omitempty"` ExportView *BodyValue `json:"export_view,omitempty"` Storage *BodyValue `json:"storage,omitempty"` AnonymousExportView *BodyValue `json:"anonymous_export_view,omitempty"` StyledView *BodyValue `json:"styled_view,omitempty"` } `json:"body"` }
func (*Page) CreatedDate ¶
func (*Page) Description ¶
func (*Page) LastVersionNumber ¶
func (*Page) UpdatedDate ¶
type PageSearchResult ¶
type SpaceTitle ¶
type Time ¶
func (*Time) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.