Documentation
¶
Index ¶
- type Attachment
- type AttachmentResponse
- type BodyContent
- type Client
- func (c *Client) AddLabels(ctx context.Context, pageID string, labels []string) error
- func (c *Client) AddRestriction(ctx context.Context, pageID string, input *RestrictionInput) error
- func (c *Client) CreatePage(ctx context.Context, input *CreatePageInput) (*Page, error)
- func (c *Client) DownloadAttachment(ctx context.Context, downloadPath string) (io.ReadCloser, error)
- func (c *Client) GetAttachments(ctx context.Context, pageID string) ([]Attachment, error)
- func (c *Client) GetLabels(ctx context.Context, pageID string) ([]Label, error)
- func (c *Client) GetPage(ctx context.Context, id string, expand []string) (*Page, error)
- func (c *Client) GetRestrictions(ctx context.Context, pageID string) ([]Restriction, error)
- func (c *Client) RemoveLabel(ctx context.Context, pageID, label string) error
- func (c *Client) RemoveRestriction(ctx context.Context, pageID string, input *RestrictionInput) error
- func (c *Client) UpdatePage(ctx context.Context, id string, input *UpdatePageInput) (*Page, error)
- type CreatePageInput
- type Group
- type Label
- type LabelResponse
- type Links
- type Page
- type PageBody
- type Restriction
- type RestrictionGroups
- type RestrictionInput
- type RestrictionSubject
- type RestrictionUsers
- type UpdatePageInput
- type User
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type AttachmentResponse ¶
type AttachmentResponse struct {
Results []Attachment `json:"results"`
Size int `json:"size"`
}
type BodyContent ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg *config.AtlassianConfig) *Client
func (*Client) AddRestriction ¶
func (*Client) CreatePage ¶
func (*Client) DownloadAttachment ¶
func (*Client) GetAttachments ¶
func (*Client) GetRestrictions ¶
func (*Client) RemoveLabel ¶
func (*Client) RemoveRestriction ¶
func (*Client) UpdatePage ¶
type CreatePageInput ¶
type LabelResponse ¶
type PageBody ¶
type PageBody struct {
Storage *BodyContent `json:"storage,omitempty"`
View *BodyContent `json:"view,omitempty"`
}
type Restriction ¶
type Restriction struct {
Operation string `json:"operation"`
User *RestrictionSubject `json:"restrictions,omitempty"`
}
type RestrictionGroups ¶
type RestrictionInput ¶
type RestrictionSubject ¶
type RestrictionSubject struct {
User *RestrictionUsers `json:"user,omitempty"`
Group *RestrictionGroups `json:"group,omitempty"`
}
type RestrictionUsers ¶
type UpdatePageInput ¶
Click to show internal directories.
Click to hide internal directories.