Documentation ¶
Index ¶
- func Provider() terraform.ResourceProvider
- type AccessTokenRequest
- type AccessTokenResponse
- type AllRepositoryBranchPermissionsResponse
- type ApplicationProperties
- type Banner
- type BitbucketClient
- func (c *BitbucketClient) Delete(endpoint string) (*http.Response, error)
- func (c *BitbucketClient) Do(method, endpoint string, payload *bytes.Buffer, contentType string) (*http.Response, error)
- func (c *BitbucketClient) Get(endpoint string) (*http.Response, error)
- func (c *BitbucketClient) InstallPluginWithUri(endpoint string, uri string, pluginName string) (*http.Response, error)
- func (c *BitbucketClient) Post(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)
- func (c *BitbucketClient) PostFileUpload(endpoint string, params map[string]string, paramName, path string) (*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 BitbucketServerProvider
- type BranchPermissionPayload
- type BranchPermissionResponse
- type CloneUrl
- type Cluster
- type ClusterNode
- type DefaultReviewersConditionPayload
- type DefaultReviewersConditionResp
- type Error
- type GlobalPermissionsGroup
- type GlobalPermissionsUser
- type GroupUser
- type License
- type LicenseResponse
- type MailConfiguration
- type Matcher
- type MatcherStruct
- type MatcherStructType
- type MatcherType
- type PaginatedGlobalPermissionsGroups
- type PaginatedGlobalPermissionsGroupsValue
- type PaginatedGlobalPermissionsUsers
- type PaginatedGlobalPermissionsUsersValue
- type PaginatedGroupUsers
- type PaginatedGroupUsersValue
- type PaginatedGroups
- type PaginatedGroupsValue
- type PaginatedProjectHooks
- type PaginatedProjectHooksValue
- type PaginatedProjectPermissionsGroups
- type PaginatedProjectPermissionsGroupsValue
- type PaginatedProjectPermissionsUsers
- type PaginatedProjectPermissionsUsersValue
- type PaginatedRepositoryHooks
- type PaginatedRepositoryHooksValue
- type PaginatedRepositoryPermissionsGroups
- type PaginatedRepositoryPermissionsGroupsValue
- type PaginatedRepositoryPermissionsUsers
- type PaginatedRepositoryPermissionsUsersValue
- type Plugin
- type PluginConfig
- type PluginInstallPayload
- type PluginLicense
- type PluginMarketplaceVersion
- type PostWebhook
- type Project
- type ProjectHook
- type ProjectPermissionsGroup
- type ProjectPermissionsUser
- type RefMatcher
- type Repository
- type RepositoryFork
- type RepositoryForkProject
- type RepositoryHook
- type RepositoryPermissionsGroup
- type RepositoryPermissionsUser
- type Reviewer
- type User
- type UserGroup
- type UserUpdate
- type Webhook
- type WebhookConfiguration
- type WebhookListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Provider ¶
func Provider() terraform.ResourceProvider
Types ¶
type AccessTokenRequest ¶
type AccessTokenRequest struct { Name string `json:"name,omitempty"` Permissions []interface{} `json:"permissions,omitempty"` }
type AccessTokenResponse ¶
type AccessTokenResponse struct { Id string `json:"id,omitempty"` CreatedDate jsonTime `json:"createdDate,omitempty"` LastAuthenticated jsonTime `json:"lastAuthenticated,omitempty"` Name string `json:"name,omitempty"` Permissions []string `json:"permissions,omitempty"` Token string `json:"token,omitempty"` }
type AllRepositoryBranchPermissionsResponse ¶
type AllRepositoryBranchPermissionsResponse struct { Size int `json:"size"` Limit int `json:"limit"` IsLastPage bool `json:"isLastPage"` Values []BranchPermissionResponse `json:"values"` }
type ApplicationProperties ¶
type BitbucketClient ¶
type BitbucketClient struct { Server string Username string Password string HTTPClient *http.Client }
func (*BitbucketClient) Delete ¶
func (c *BitbucketClient) Delete(endpoint string) (*http.Response, error)
func (*BitbucketClient) Get ¶
func (c *BitbucketClient) Get(endpoint string) (*http.Response, error)
func (*BitbucketClient) InstallPluginWithUri ¶
func (*BitbucketClient) PostFileUpload ¶
func (c *BitbucketClient) PostFileUpload(endpoint string, params map[string]string, paramName, path string) (*http.Response, error)
Creates a new file upload http request with optional extra params
type BitbucketServerProvider ¶
type BitbucketServerProvider struct { BitbucketClient *BitbucketClient MarketplaceClient *marketplace.Client }
type BranchPermissionPayload ¶
type BranchPermissionPayload struct { Type string `json:"type,omitempty"` Matcher MatcherStruct `json:"matcher,omitempty"` Users []string `json:"users,omitempty"` Groups []string `json:"groups,omitempty"` AccessKeys []string `json:"accessKeys,omitempty"` }
type BranchPermissionResponse ¶
type BranchPermissionResponse struct { Id int `json:"id"` Scope struct { ResourceID int `json:"resourceId"` Type string `json:"type"` } `json:"scope"` Type string `json:"type"` Users []struct { Name string `json:"name"` EmailAddress string `json:"emailAddress"` ID int `json:"id"` DisplayName string `json:"displayName"` Active bool `json:"active"` Slug string `json:"slug"` Type string `json:"type"` } `json:"users"` Groups []string `json:"groups"` AccessKeys []struct { Key struct { ID int `json:"id"` Text string `json:"text"` Label string `json:"label"` } `json:"key"` } `json:"accessKeys"` }
type Cluster ¶
type Cluster struct { LocalNode ClusterNode `json:"localNode,omitempty"` Nodes []ClusterNode `json:"nodes,omitempty"` Running bool `json:"running,omitempty"` }
type ClusterNode ¶
type DefaultReviewersConditionResp ¶
type DefaultReviewersConditionResp struct { ID int `json:"id,omitempty"` RequiredApprovals int `json:"requiredApprovals,omitempty"` Reviewers []Reviewer `json:"reviewers,omitempty"` SourceRefMatcher RefMatcher `json:"sourceRefMatcher,omitempty"` TargetRefMatcher RefMatcher `json:"targetRefMatcher,omitempty"` }
type Error ¶
type Error struct { Errors []struct { Context string `json:"context,omitempty"` Message string `json:"message,omitempty"` Exception string `json:"exceptionName,omitempty"` } `json:"errors,omitempty"` StatusCode int Endpoint string }
Error represents a error from the bitbucket api.
type GlobalPermissionsGroup ¶
type GlobalPermissionsUser ¶
type LicenseResponse ¶
type LicenseResponse struct { License string `json:"license,omitempty"` CreationDate jsonTime `json:"creationDate,omitempty"` PurchaseDate jsonTime `json:"purchaseDate,omitempty"` ExpiryDate jsonTime `json:"expiryDate,omitempty"` MaintenanceExpiryDate jsonTime `json:"maintenanceExpiryDate,omitempty"` GracePeriodEndDate jsonTime `json:"gracePeriodEndDate,omitempty"` MaximumNumberOfUsers int `json:"maximumNumberOfUsers,omitempty"` UnlimitedUsers bool `json:"unlimitedNumberOfUsers,omitempty"` ServerId string `json:"serverId,omitempty"` SupportEntitlementNumber string `json:"supportEntitlementNumber,omitempty"` }
type MailConfiguration ¶
type MailConfiguration struct { Hostname string `json:"hostname,omitempty"` Port int `json:"port,omitempty"` Protocol string `json:"protocol,omitempty"` UseStartTLS bool `json:"use-start-tls,omitempty"` RequireStartTLS bool `json:"require-start-tls,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` SenderAddress string `json:"sender-address,omitempty"` }
type Matcher ¶
type Matcher struct { ID string `json:"id,omitempty"` Type MatcherType `json:"type,omitempty"` }
type MatcherStruct ¶
type MatcherStruct struct { Id string `json:"id,omitempty"` DisplayId string `json:"displayId,omitempty"` Type MatcherStructType `json:"type,omitempty"` Active bool `json:"active,omitempty"` }
type MatcherStructType ¶
type MatcherType ¶
type MatcherType struct {
ID string `json:"id,omitempty"`
}
type PaginatedGlobalPermissionsGroups ¶
type PaginatedGlobalPermissionsGroups struct { Values []PaginatedGlobalPermissionsGroupsValue `json:"values,omitempty"` Size int `json:"size,omitempty"` Limit int `json:"limit,omitempty"` IsLastPage bool `json:"isLastPage,omitempty"` Start int `json:"start,omitempty"` NextPageStart int `json:"nextPageStart,omitempty"` }
type PaginatedGlobalPermissionsUsers ¶
type PaginatedGlobalPermissionsUsers struct { Values []PaginatedGlobalPermissionsUsersValue `json:"values,omitempty"` Size int `json:"size,omitempty"` Limit int `json:"limit,omitempty"` IsLastPage bool `json:"isLastPage,omitempty"` Start int `json:"start,omitempty"` NextPageStart int `json:"nextPageStart,omitempty"` }
type PaginatedGlobalPermissionsUsersValue ¶
type PaginatedGlobalPermissionsUsersValue struct { User struct { Name string `json:"name,omitempty"` EmailAddress string `json:"emailAddress,omitempty"` DisplayName string `json:"displayName,omitempty"` Active bool `json:"active,omitempty"` } `json:"user,omitempty"` Permission string `json:"permission,omitempty"` }
type PaginatedGroupUsers ¶
type PaginatedGroups ¶
type PaginatedGroupsValue ¶
type PaginatedGroupsValue struct {
Name string `json:"name,omitempty"`
}
type PaginatedProjectHooks ¶
type PaginatedProjectHooksValue ¶
type PaginatedProjectHooksValue struct { Details struct { Key string `json:"key,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Description string `json:"description,omitempty"` Version string `json:"version,omitempty"` ScopeTypes []string `json:"scopeTypes,omitempty"` } `json:"details,omitempty"` Enabled bool `json:"enabled,omitempty"` Configured bool `json:"configured,omitempty"` Scope struct { Type string `json:"type,omitempty"` ResourceId int `json:"resourceId,omitempty"` } `json:"scope,omitempty"` }
type PaginatedProjectPermissionsGroups ¶
type PaginatedProjectPermissionsGroups struct { Values []PaginatedProjectPermissionsGroupsValue `json:"values,omitempty"` Size int `json:"size,omitempty"` Limit int `json:"limit,omitempty"` IsLastPage bool `json:"isLastPage,omitempty"` Start int `json:"start,omitempty"` NextPageStart int `json:"nextPageStart,omitempty"` }
type PaginatedProjectPermissionsUsers ¶
type PaginatedProjectPermissionsUsers struct { Values []PaginatedProjectPermissionsUsersValue `json:"values,omitempty"` Size int `json:"size,omitempty"` Limit int `json:"limit,omitempty"` IsLastPage bool `json:"isLastPage,omitempty"` Start int `json:"start,omitempty"` NextPageStart int `json:"nextPageStart,omitempty"` }
type PaginatedProjectPermissionsUsersValue ¶
type PaginatedProjectPermissionsUsersValue struct { User struct { Name string `json:"name,omitempty"` EmailAddress string `json:"emailAddress,omitempty"` DisplayName string `json:"displayName,omitempty"` Active bool `json:"active,omitempty"` } `json:"user,omitempty"` Permission string `json:"permission,omitempty"` }
type PaginatedRepositoryHooks ¶
type PaginatedRepositoryHooks struct { Values []PaginatedRepositoryHooksValue `json:"values,omitempty"` Size int `json:"size,omitempty"` Limit int `json:"limit,omitempty"` IsLastPage bool `json:"isLastPage,omitempty"` Start int `json:"start,omitempty"` NextPageStart int `json:"nextPageStart,omitempty"` }
type PaginatedRepositoryHooksValue ¶
type PaginatedRepositoryHooksValue struct { Details struct { Key string `json:"key,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Description string `json:"description,omitempty"` Version string `json:"version,omitempty"` ScopeTypes []string `json:"scopeTypes,omitempty"` } `json:"details,omitempty"` Enabled bool `json:"enabled,omitempty"` Configured bool `json:"configured,omitempty"` Scope struct { Type string `json:"type,omitempty"` ResourceId int `json:"resourceId,omitempty"` } `json:"scope,omitempty"` }
type PaginatedRepositoryPermissionsGroups ¶
type PaginatedRepositoryPermissionsGroups struct { Values []PaginatedRepositoryPermissionsGroupsValue `json:"values,omitempty"` Size int `json:"size,omitempty"` Limit int `json:"limit,omitempty"` IsLastPage bool `json:"isLastPage,omitempty"` Start int `json:"start,omitempty"` NextPageStart int `json:"nextPageStart,omitempty"` }
type PaginatedRepositoryPermissionsUsers ¶
type PaginatedRepositoryPermissionsUsers struct { Values []PaginatedRepositoryPermissionsUsersValue `json:"values,omitempty"` Size int `json:"size,omitempty"` Limit int `json:"limit,omitempty"` IsLastPage bool `json:"isLastPage,omitempty"` Start int `json:"start,omitempty"` NextPageStart int `json:"nextPageStart,omitempty"` }
type PaginatedRepositoryPermissionsUsersValue ¶
type PaginatedRepositoryPermissionsUsersValue struct { User struct { Name string `json:"name,omitempty"` EmailAddress string `json:"emailAddress,omitempty"` DisplayName string `json:"displayName,omitempty"` Active bool `json:"active,omitempty"` } `json:"user,omitempty"` Permission string `json:"permission,omitempty"` }
type Plugin ¶
type Plugin struct { Key string `json:"key,omitempty"` Enabled bool `json:"enabled,omitempty"` EnabledByDefault bool `json:"enabledByDefault,omitempty"` Version string `json:"version,omitempty"` Description string `json:"description,omitempty"` Name string `json:"name,omitempty"` UserInstalled bool `json:"userInstalled,omitempty"` Optional bool `json:"optional,omitempty"` Vendor struct { Name string `json:"name,omitempty"` MarketplaceLink string `json:"marketplaceLink,omitempty"` Link string `json:"link,omitempty"` } `json:"vendor,omitempty"` }
type PluginConfig ¶
type PluginConfig struct { ValuesRaw json.RawMessage `json:"values"` Values string }
type PluginInstallPayload ¶
type PluginLicense ¶
type PluginLicense struct { Valid bool `json:"valid,omitempty"` Evaluation bool `json:"evaluation,omitempty"` NearlyExpired bool `json:"nearlyExpired,omitempty"` MaintenanceExpiryDate jsonTime `json:"maintenanceExpiryDate,omitempty"` MaintenanceExpired bool `json:"maintenanceExpired,omitempty"` LicenseType string `json:"licenseType,omitempty"` ExpiryDate jsonTime `json:"expiryDate,omitempty"` RawLicense string `json:"rawLicense,omitempty"` Renewable bool `json:"renewable,omitempty"` OrganizationName string `json:"organizationName,omitempty"` ContactEmail string `json:"contactEmail,omitempty"` Enterprise bool `json:"enterprise,omitempty"` DataCenter bool `json:"dataCenter,omitempty"` Subscription bool `json:"subscription,omitempty"` Active bool `json:"active,omitempty"` AutoRenewal bool `json:"autoRenewal,omitempty"` Upgradable bool `json:"upgradable,omitempty"` Crossgradeable bool `json:"crossgradeable,omitempty"` PurchasePastServerCutoffDate bool `json:"purchasePastServerCutoffDate,omitempty"` SupportEntitlementNumber string `json:"supportEntitlementNumber,omitempty"` }
type PluginMarketplaceVersion ¶
type PluginMarketplaceVersion struct { Version string `json:"name,omitempty"` Links struct { Self struct { Href string `json:"href,omitempty"` } `json:"self,omitempty"` } `json:"_links,omitempty"` Embedded struct { Artifact struct { Links struct { Self struct { Href string `json:"href,omitempty"` } `json:"self,omitempty"` Binary struct { Href string `json:"href,omitempty"` } `json:"binary,omitempty"` } `json:"_links,omitempty"` } `json:"artifact,omitempty"` } `json:"_embedded,omitempty"` }
func (*PluginMarketplaceVersion) Filename ¶
func (p *PluginMarketplaceVersion) Filename() string
func (*PluginMarketplaceVersion) Key ¶
func (p *PluginMarketplaceVersion) Key() string
type PostWebhook ¶
type PostWebhook struct { ID int `json:"id,omitempty"` Title string `json:"title,omitempty"` URL string `json:"url,omitempty"` Enabled bool `json:"enabled,omitempty"` CommittersToIgnore string `json:"committersToIgnore,omitempty"` BranchesToIgnore string `json:"branchesToIgnore,omitempty"` TagCreated bool `json:"tagCreated"` BranchDeleted bool `json:"branchDeleted"` BranchCreated bool `json:"branchCreated"` RepoPush bool `json:"repoPush"` PrDeclined bool `json:"prDeclined"` PrRescoped bool `json:"prRescoped"` PrMerged bool `json:"prMerged"` PrReopened bool `json:"prReopened"` PrUpdated bool `json:"prUpdated"` PrCreated bool `json:"prCreated"` PrCommented bool `json:"prCommented"` BuildStatus bool `json:"buildStatus"` RepoMirrorSynced bool `json:"repoMirrorSynced"` }
type ProjectHook ¶
type ProjectPermissionsGroup ¶
type ProjectPermissionsUser ¶
type RefMatcher ¶
type Repository ¶
type Repository struct { Name string `json:"name,omitempty"` Slug string `json:"slug,omitempty"` Description string `json:"description,omitempty"` Forkable bool `json:"forkable"` Public bool `json:"public,omitempty"` Links struct { Clone []CloneUrl `json:"clone,omitempty"` } `json:"links,omitempty"` }
type RepositoryFork ¶
type RepositoryFork struct { Name string `json:"name,omitempty"` Project RepositoryForkProject `json:"project,omitempty"` }
type RepositoryForkProject ¶
type RepositoryForkProject struct {
Key string `json:"key,omitempty"`
}
type RepositoryHook ¶
type UserUpdate ¶
type Webhook ¶
type Webhook struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` CreatedDate jsonTime `json:"createdDate,omitempty"` UpdatedDate jsonTime `json:"updatedDate,omitempty"` URL string `json:"url,omitempty"` Active bool `json:"active,omitempty"` Events []interface{} `json:"events"` Configuration WebhookConfiguration `json:"configuration"` }
type WebhookConfiguration ¶
type WebhookConfiguration struct {
Secret string `json:"secret,omitempty"`
}
Source Files ¶
- client.go
- data_application_properties.go
- data_cluster.go
- data_global_permissions_groups.go
- data_global_permissions_users.go
- data_group_users.go
- data_groups.go
- data_plugin.go
- data_project.go
- data_project_hooks.go
- data_project_permissions_groups.go
- data_project_permissions_users.go
- data_repository.go
- data_repository_hooks.go
- data_repository_permissions_groups.go
- data_repository_permissions_users.go
- data_user.go
- helpers.go
- json_types.go
- provider.go
- resource_banner.go
- resource_default_reviewers_condition.go
- resource_global_permissions_group.go
- resource_global_permissions_user.go
- resource_group.go
- resource_license.go
- resource_mail_server.go
- resource_plugin.go
- resource_plugin_config.go
- resource_project.go
- resource_project_branch_permissions.go
- resource_project_hook.go
- resource_project_permissions_group.go
- resource_project_permissions_user.go
- resource_repository.go
- resource_repository_hook.go
- resource_repository_permissions_group.go
- resource_repository_permissions_user.go
- resource_repository_postwebhook.go
- resource_repository_webhook.go
- resource_user.go
- resource_user_access_token.go
- resource_user_group.go
Click to show internal directories.
Click to hide internal directories.