Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the Confluence REST API v2.
func (*Client) GetPageLabels ¶
GetPageLabels returns all labels for a page, handling pagination.
type Config ¶
type Config struct {
BaseURL string `json:"base_url" yaml:"base_url" mapstructure:"base_url" validate:"required,url"`
Username string `json:"username" yaml:"username" mapstructure:"username" validate:"required"`
Token string `json:"token" yaml:"token" mapstructure:"token" validate:"required"`
Spaces []string `json:"spaces" yaml:"spaces" mapstructure:"spaces"`
Exclude []string `json:"exclude" yaml:"exclude" mapstructure:"exclude"`
}
type Extractor ¶
type Extractor struct {
plugins.BaseExtractor
// contains filtered or unexported fields
}
type Page ¶
type Page struct {
ID string `json:"id"`
Title string `json:"title"`
Status string `json:"status"`
SpaceID string `json:"spaceId"`
ParentID string `json:"parentId"`
AuthorID string `json:"authorId"`
CreatedAt time.Time `json:"createdAt"`
Version struct {
Number int `json:"number"`
AuthorID string `json:"authorId"`
CreatedAt time.Time `json:"createdAt"`
} `json:"version"`
Body struct {
Storage struct {
Value string `json:"value"`
} `json:"storage"`
} `json:"body"`
Labels struct {
Results []Label `json:"results"`
} `json:"labels"`
Links struct {
WebUI string `json:"webui"`
} `json:"_links"`
}
Page represents a Confluence page from the v2 API.
type Space ¶
type Space struct {
ID string `json:"id"`
Key string `json:"key"`
Name string `json:"name"`
Type string `json:"type"`
Status string `json:"status"`
Description struct {
Plain struct {
Value string `json:"value"`
} `json:"plain"`
} `json:"description"`
Links struct {
WebUI string `json:"webui"`
} `json:"_links"`
}
Space represents a Confluence space.
Click to show internal directories.
Click to hide internal directories.