Documentation ¶
Index ¶
- Constants
- func Provider() terraform.ResourceProvider
- type BitbucketClient
- func (c *BitbucketClient) Delete(endpoint string) (*http.Response, error)
- func (c *BitbucketClient) Do(method, endpoint string, payload *bytes.Buffer) (*http.Response, error)
- func (c *BitbucketClient) Get(endpoint string) (*http.Response, error)
- func (c *BitbucketClient) Post(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)
- func (c *BitbucketClient) Put(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)
- func (c *BitbucketClient) PutOnly(endpoint string) (*http.Response, error)
- type CloneUrl
- type Error
- type Hook
- type PaginatedReviewers
- type Repository
- type Reviewer
Constants ¶
View Source
const ( // BitbucketEndpoint is the fqdn used to talk to bitbucket BitbucketEndpoint string = "https://api.bitbucket.org/" )
Variables ¶
This section is empty.
Functions ¶
func Provider ¶
func Provider() terraform.ResourceProvider
Types ¶
type BitbucketClient ¶
func (*BitbucketClient) Delete ¶
func (c *BitbucketClient) Delete(endpoint string) (*http.Response, error)
func (*BitbucketClient) Get ¶
func (c *BitbucketClient) Get(endpoint string) (*http.Response, error)
type Error ¶ added in v0.9.3
type Error struct { APIError struct { Message string `json:"message,omitempty"` } `json:"error,omitempty"` Type string `json:"type,omitempty"` StatusCode int Endpoint string }
Error represents a error from the bitbucket api.
type PaginatedReviewers ¶
type PaginatedReviewers struct {
Values []Reviewer `json:"values,omitempty"`
}
type Repository ¶
type Repository struct { SCM string `json:"scm,omitempty"` HasWiki bool `json:"has_wiki,omitempty"` HasIssues bool `json:"has_issues,omitempty"` Website string `json:"website,omitempty"` IsPrivate bool `json:"is_private,omitempty"` ForkPolicy string `json:"fork_policy,omitempty"` Language string `json:"language,omitempty"` Description string `json:"description,omitempty"` Name string `json:"name,omitempty"` UUID string `json:"uuid,omitempty"` Project struct { Key string `json:"key,omitempty"` } `json:"project,omitempty"` Links struct { Clone []CloneUrl `json:"clone,omitempty"` } `json:"links,omitempty"` }
Click to show internal directories.
Click to hide internal directories.