Documentation
¶
Index ¶
- Constants
- type BitbucketClient
- type BitbucketComment
- type BitbucketComments
- type BitbucketContent
- type BitbucketHtml
- type BitbucketLinks
- type BitbucketProvider
- func (b BitbucketProvider) CreateComment(ctx context.Context, content string) (*Comment, error)
- func (b BitbucketProvider) DeleteComment(ctx context.Context, id int64) error
- func (b BitbucketProvider) ListComments(ctx context.Context) ([]Comment, error)
- func (b BitbucketProvider) MaxCommentSize() int
- func (b BitbucketProvider) UpdateComment(ctx context.Context, id int64, content string) (*Comment, error)
- type Comment
- type Provider
Constants ¶
View Source
const ( BitbucketMaxCommentLength = 32768 BitbucketDefaultBaseURL = "https://api.bitbucket.org/2.0/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitbucketComment ¶
type BitbucketComment struct {
Content *BitbucketContent `json:"content,omitempty"`
Id *int64 `json:"id,omitempty"`
Links *BitbucketLinks `json:"links,omitempty"`
}
type BitbucketComments ¶
type BitbucketComments struct {
Values []BitbucketComment `json:"values,omitempty"`
}
type BitbucketContent ¶
type BitbucketContent struct {
Raw string `json:"raw,omitempty"`
}
type BitbucketHtml ¶
type BitbucketHtml struct {
Href string `json:"href,omitempty"`
}
type BitbucketLinks ¶
type BitbucketLinks struct {
Html BitbucketHtml `json:"html,omitempty"`
}
type BitbucketProvider ¶
type BitbucketProvider struct {
*BitbucketClient
// contains filtered or unexported fields
}
func NewBitbucketProvider ¶
func NewBitbucketProvider(config config.Config) *BitbucketProvider
func (BitbucketProvider) CreateComment ¶
func (BitbucketProvider) DeleteComment ¶
func (b BitbucketProvider) DeleteComment(ctx context.Context, id int64) error
func (BitbucketProvider) ListComments ¶
func (b BitbucketProvider) ListComments(ctx context.Context) ([]Comment, error)
func (BitbucketProvider) MaxCommentSize ¶
func (b BitbucketProvider) MaxCommentSize() int
func (BitbucketProvider) UpdateComment ¶
type Provider ¶
type Provider interface {
CreateComment(ctx context.Context, content string) (*Comment, error)
UpdateComment(ctx context.Context, id int64, content string) (*Comment, error)
DeleteComment(ctx context.Context, id int64) error
ListComments(ctx context.Context) ([]Comment, error)
MaxCommentSize() int
}
Provider interface for public methods actions required for handling PullRequest comments
Click to show internal directories.
Click to hide internal directories.