Documentation ¶
Index ¶
- Constants
- Variables
- func Provider() *schema.Provider
- type APIClient
- func (client APIClient) CreateConfig(ctx context.Context, project string, environment string, name string) (*Config, error)
- func (client APIClient) CreateEnvironment(ctx context.Context, project string, slug string, name string, ...) (*Environment, error)
- func (client APIClient) CreateGroup(ctx context.Context, name string, defaultProjectRole string) (*Group, error)
- func (client APIClient) CreateGroupMember(ctx context.Context, group string, memberType string, memberSlug string) error
- func (client APIClient) CreateIntegration(ctx context.Context, data IntegrationData, name, integType string) (*Integration, error)
- func (client APIClient) CreateProject(ctx context.Context, name string, description string) (*Project, error)
- func (client APIClient) CreateProjectMember(ctx context.Context, project string, memberType string, memberSlug string, ...) (*ProjectMember, error)
- func (client APIClient) CreateProjectRole(ctx context.Context, name string, permissions []string) (*ProjectRole, error)
- func (client APIClient) CreateServiceAccount(ctx context.Context, name string, workplaceRole string, ...) (*ServiceAccount, error)
- func (client APIClient) CreateServiceAccountToken(ctx context.Context, serviceAccountSlug string, name string, expiresAt string) (*ServiceAccountTokenResponse, error)
- func (client APIClient) CreateServiceToken(ctx context.Context, project string, config string, access string, name string) (*ServiceToken, error)
- func (client APIClient) CreateSync(ctx context.Context, data SyncData, config, project, integration string) (*Sync, error)
- func (client APIClient) CreateWebhook(ctx context.Context, project string, url string, enabled bool, ...) (*Webhook, error)
- func (client APIClient) DeleteConfig(ctx context.Context, project string, name string) error
- func (client APIClient) DeleteEnvironment(ctx context.Context, project string, slug string) error
- func (client APIClient) DeleteGroup(ctx context.Context, slug string) error
- func (client APIClient) DeleteGroupMember(ctx context.Context, group string, memberType string, memberSlug string) error
- func (client APIClient) DeleteIntegration(ctx context.Context, name string) error
- func (client APIClient) DeleteProject(ctx context.Context, name string) error
- func (client APIClient) DeleteProjectMember(ctx context.Context, project string, memberType string, memberSlug string) error
- func (client APIClient) DeleteProjectRole(ctx context.Context, identifier string) error
- func (client APIClient) DeleteServiceAccount(ctx context.Context, slug string) error
- func (client APIClient) DeleteServiceAccountToken(ctx context.Context, serviceAccountSlug string, slug string) error
- func (client APIClient) DeleteServiceToken(ctx context.Context, project string, config string, slug string) error
- func (client APIClient) DeleteSync(ctx context.Context, slug string, deleteTarget bool, config, project string) error
- func (client APIClient) DeleteWebhook(ctx context.Context, project string, slug string) error
- func (client APIClient) DisableWebhook(ctx context.Context, project string, slug string) (*Webhook, error)
- func (client APIClient) EnableWebhook(ctx context.Context, project string, slug string) (*Webhook, error)
- func (client APIClient) GetComputedSecrets(ctx context.Context, project string, config string) ([]ComputedSecret, error)
- func (client APIClient) GetConfig(ctx context.Context, project string, name string) (*Config, error)
- func (client APIClient) GetEnvironment(ctx context.Context, project string, name string) (*Environment, error)
- func (client APIClient) GetGroup(ctx context.Context, slug string) (*Group, error)
- func (client APIClient) GetGroupMember(ctx context.Context, group string, memberType string, memberSlug string) error
- func (client APIClient) GetGroupMembers(ctx context.Context, group string, pageOptions PageOptions) ([]GroupMember, error)
- func (client APIClient) GetId() string
- func (client APIClient) GetIntegration(ctx context.Context, slug string) (*Integration, error)
- func (client APIClient) GetProject(ctx context.Context, name string) (*Project, error)
- func (client APIClient) GetProjectMember(ctx context.Context, project string, memberType string, memberSlug string) (*ProjectMember, error)
- func (client APIClient) GetProjectRole(ctx context.Context, identifier string) (*ProjectRole, error)
- func (client APIClient) GetSecret(ctx context.Context, project string, config string, secretName string) (*Secret, error)
- func (client APIClient) GetServiceAccount(ctx context.Context, slug string) (*ServiceAccount, error)
- func (client APIClient) GetServiceAccountToken(ctx context.Context, serviceAccountSlug string, slug string) (ServiceAccountTokenResponse, error)
- func (client APIClient) GetServiceTokens(ctx context.Context, project string, config string) ([]ServiceToken, error)
- func (client APIClient) GetSync(ctx context.Context, config, project, sync string) (*Sync, error)
- func (client APIClient) GetWebhook(ctx context.Context, project string, slug string) (*Webhook, error)
- func (client APIClient) GetWorkplaceUser(ctx context.Context, email string) (*WorkplaceUser, error)
- func (client APIClient) PerformRequest(req *http.Request, params []QueryParam) (*APIResponse, error)
- func (client APIClient) PerformRequestWithRetry(ctx context.Context, method string, path string, params []QueryParam, ...) (*APIResponse, error)
- func (client APIClient) RenameConfig(ctx context.Context, project string, currentName string, newName string) (*Config, error)
- func (client APIClient) ReplaceGroupMembers(ctx context.Context, group string, members []GroupMember) error
- func (client APIClient) UpdateConfigInheritable(ctx context.Context, project string, config string, inheritable bool) (*Config, error)
- func (client APIClient) UpdateConfigInherits(ctx context.Context, project string, config string, ...) (*Config, error)
- func (client APIClient) UpdateEnvironment(ctx context.Context, project string, currentSlug string, newSlug string, ...) (*Environment, error)
- func (client APIClient) UpdateGroup(ctx context.Context, slug string, name string, defaultProjectRole *string) (*Group, error)
- func (client APIClient) UpdateIntegration(ctx context.Context, slug, name string, data IntegrationData) (*Integration, error)
- func (client APIClient) UpdateProject(ctx context.Context, currentName string, newName string, description string) (*Project, error)
- func (client APIClient) UpdateProjectMember(ctx context.Context, project string, memberType string, memberSlug string, ...) (*ProjectMember, error)
- func (client APIClient) UpdateProjectRole(ctx context.Context, identifier string, name string, permissions []string) (*ProjectRole, error)
- func (client APIClient) UpdateSecrets(ctx context.Context, project string, config string, ...) error
- func (client APIClient) UpdateServiceAccount(ctx context.Context, slug string, name string, workplaceRole string, ...) (*ServiceAccount, error)
- func (client APIClient) UpdateWebhook(ctx context.Context, project string, slug string, webhookUrl string, ...) (*Webhook, error)
- type APIError
- type APIResponse
- type ChangeRequest
- type ComputedSecret
- type Config
- type ConfigDescriptor
- type ConfigResponse
- type CreateProjectRoleResponse
- type CreateWebhookOptionalParameters
- type CustomNotFoundError
- type Environment
- type EnvironmentResponse
- type ErrorResponse
- type GetGroupMembersResponse
- type GetProjectRoleResponse
- type Group
- type GroupIsMemberResponse
- type GroupMember
- type GroupResponse
- type Integration
- type IntegrationData
- type IntegrationDataBuilderFunc
- type IntegrationResponse
- type PageOptions
- type Project
- type ProjectMember
- type ProjectMemberResponse
- type ProjectMemberRole
- type ProjectResponse
- type ProjectRole
- type QueryParam
- type ResourceGroupMemberBuilder
- func (builder ResourceGroupMemberBuilder) Build() *schema.Resource
- func (builder ResourceGroupMemberBuilder) CreateContextFunc() schema.CreateContextFunc
- func (builder ResourceGroupMemberBuilder) DeleteContextFunc() schema.DeleteContextFunc
- func (builder ResourceGroupMemberBuilder) ReadContextFunc() schema.ReadContextFunc
- type ResourceGroupMemberGetMemberSlugFunc
- type ResourceIntegrationBuilder
- func (builder ResourceIntegrationBuilder) Build() *schema.Resource
- func (builder ResourceIntegrationBuilder) CreateContextFunc() schema.CreateContextFunc
- func (builder ResourceIntegrationBuilder) DeleteContextFunc() schema.DeleteContextFunc
- func (builder ResourceIntegrationBuilder) ReadContextFunc() schema.ReadContextFunc
- func (builder ResourceIntegrationBuilder) UpdateContextFunc() schema.UpdateContextFunc
- type ResourceProjectMemberBuilder
- func (builder ResourceProjectMemberBuilder) Build() *schema.Resource
- func (builder ResourceProjectMemberBuilder) CreateContextFunc() schema.CreateContextFunc
- func (builder ResourceProjectMemberBuilder) DeleteContextFunc() schema.DeleteContextFunc
- func (builder ResourceProjectMemberBuilder) ReadContextFunc() schema.ReadContextFunc
- func (builder ResourceProjectMemberBuilder) UpdateContextFunc() schema.UpdateContextFunc
- type ResourceProjectMemberGetMemberSlugFunc
- type ResourceSyncBuilder
- type Secret
- type SecretValue
- type ServiceAccount
- type ServiceAccountResponse
- type ServiceAccountToken
- type ServiceAccountTokenResponse
- type ServiceToken
- type ServiceTokenListResponse
- type ServiceTokenResponse
- type SimpleProjectRole
- type Sync
- type SyncData
- type SyncDataBuilderFunc
- type SyncResponse
- type UpdateProjectRoleResponse
- type Webhook
- type WebhookAuth
- type WebhookResponse
- type WorkplaceRole
- type WorkplaceUser
- type WorkplaceUsersListResponse
Constants ¶
View Source
const MAX_RETRIES = 10
Variables ¶
View Source
var NameTransformers = []string{"none", "camel", "upper-camel", "lower-snake", "tf-var", "dotnet", "dotnet-env", "lower-kebab"}
View Source
var (
ProviderVersion = "dev"
)
Functions ¶
Types ¶
type APIClient ¶
func (APIClient) CreateConfig ¶
func (APIClient) CreateEnvironment ¶
func (APIClient) CreateGroup ¶ added in v1.3.0
func (APIClient) CreateGroupMember ¶ added in v1.6.0
func (APIClient) CreateIntegration ¶
func (client APIClient) CreateIntegration(ctx context.Context, data IntegrationData, name, integType string) (*Integration, error)
func (APIClient) CreateProject ¶
func (APIClient) CreateProjectMember ¶ added in v1.3.0
func (client APIClient) CreateProjectMember(ctx context.Context, project string, memberType string, memberSlug string, role string, environments []string) (*ProjectMember, error)
Project Members
func (APIClient) CreateProjectRole ¶ added in v1.8.0
func (APIClient) CreateServiceAccount ¶ added in v1.3.0
func (APIClient) CreateServiceAccountToken ¶ added in v1.8.0
func (APIClient) CreateServiceToken ¶
func (APIClient) CreateSync ¶
func (APIClient) CreateWebhook ¶ added in v1.8.0
func (APIClient) DeleteConfig ¶
func (APIClient) DeleteEnvironment ¶
func (APIClient) DeleteGroup ¶ added in v1.3.0
func (APIClient) DeleteGroupMember ¶ added in v1.6.0
func (APIClient) DeleteIntegration ¶
func (APIClient) DeleteProject ¶
func (APIClient) DeleteProjectMember ¶ added in v1.3.0
func (APIClient) DeleteProjectRole ¶ added in v1.8.0
func (APIClient) DeleteServiceAccount ¶ added in v1.3.0
func (APIClient) DeleteServiceAccountToken ¶ added in v1.8.0
func (APIClient) DeleteServiceToken ¶
func (APIClient) DeleteSync ¶
func (APIClient) DeleteWebhook ¶ added in v1.8.0
func (APIClient) DisableWebhook ¶ added in v1.8.0
func (APIClient) EnableWebhook ¶ added in v1.8.0
func (APIClient) GetComputedSecrets ¶
func (APIClient) GetEnvironment ¶
func (APIClient) GetGroupMember ¶ added in v1.6.0
func (APIClient) GetGroupMembers ¶ added in v1.10.0
func (client APIClient) GetGroupMembers(ctx context.Context, group string, pageOptions PageOptions) ([]GroupMember, error)
func (APIClient) GetIntegration ¶
func (APIClient) GetProject ¶
func (APIClient) GetProjectMember ¶ added in v1.3.0
func (APIClient) GetProjectRole ¶ added in v1.8.0
func (APIClient) GetServiceAccount ¶ added in v1.3.0
func (APIClient) GetServiceAccountToken ¶ added in v1.8.0
func (APIClient) GetServiceTokens ¶
func (APIClient) GetWebhook ¶ added in v1.8.0
func (APIClient) GetWorkplaceUser ¶ added in v1.6.0
func (APIClient) PerformRequest ¶
func (client APIClient) PerformRequest(req *http.Request, params []QueryParam) (*APIResponse, error)
func (APIClient) PerformRequestWithRetry ¶
func (client APIClient) PerformRequestWithRetry(ctx context.Context, method string, path string, params []QueryParam, body []byte) (*APIResponse, error)
func (APIClient) RenameConfig ¶
func (APIClient) ReplaceGroupMembers ¶ added in v1.10.0
func (APIClient) UpdateConfigInheritable ¶ added in v1.13.0
func (APIClient) UpdateConfigInherits ¶ added in v1.13.0
func (APIClient) UpdateEnvironment ¶ added in v1.9.0
func (APIClient) UpdateGroup ¶ added in v1.3.0
func (APIClient) UpdateIntegration ¶
func (client APIClient) UpdateIntegration(ctx context.Context, slug, name string, data IntegrationData) (*Integration, error)
func (APIClient) UpdateProject ¶
func (APIClient) UpdateProjectMember ¶ added in v1.3.0
func (APIClient) UpdateProjectRole ¶ added in v1.8.0
func (APIClient) UpdateSecrets ¶
func (APIClient) UpdateServiceAccount ¶ added in v1.3.0
func (APIClient) UpdateWebhook ¶ added in v1.8.0
type APIError ¶
type APIError struct { Err error Message string RetryAfter *time.Duration Response *APIResponse }
type APIResponse ¶
type ChangeRequest ¶
type ChangeRequest struct { OriginalName *string `json:"originalName,omitempty"` OriginalValue *string `json:"originalValue,omitempty"` OriginalVisibility *string `json:"originalVisibility,omitempty"` Name string `json:"name"` Value *string `json:"value"` ShouldDelete bool `json:"shouldDelete"` Visibility string `json:"visibility,omitempty"` }
type ComputedSecret ¶
func ParseComputedSecrets ¶
func ParseComputedSecrets(response []byte) ([]ComputedSecret, error)
type Config ¶
type Config struct { Slug string `json:"slug"` Name string `json:"name"` Project string `json:"project"` Environment string `json:"environment"` Locked bool `json:"locked"` Root bool `json:"root"` CreatedAt string `json:"created_at"` Inheritable bool `json:"inheritable"` Inherits []ConfigDescriptor `json:"inherits"` }
type ConfigDescriptor ¶ added in v1.13.0
type ConfigResponse ¶
type ConfigResponse struct {
Config Config `json:"config"`
}
type CreateProjectRoleResponse ¶ added in v1.8.0
type CreateProjectRoleResponse struct {
Role ProjectRole `json:"role"`
}
type CreateWebhookOptionalParameters ¶ added in v1.8.0
type CreateWebhookOptionalParameters struct { Secret string Auth *WebhookAuth WebhookPayload string EnabledConfigs []string Name string }
type CustomNotFoundError ¶
type CustomNotFoundError struct {
Message string
}
func (*CustomNotFoundError) Error ¶
func (e *CustomNotFoundError) Error() string
type Environment ¶
type EnvironmentResponse ¶
type EnvironmentResponse struct {
Environment Environment `json:"environment"`
}
type ErrorResponse ¶
type GetGroupMembersResponse ¶ added in v1.10.0
type GetGroupMembersResponse struct {
Members []GroupMember `json:"members"`
}
type GetProjectRoleResponse ¶ added in v1.8.0
type GetProjectRoleResponse struct {
Role ProjectRole `json:"role"`
}
type Group ¶ added in v1.3.0
type Group struct { Slug string `json:"slug"` Name string `json:"name"` CreatedAt string `json:"created_at"` DefaultProjectRole SimpleProjectRole `json:"default_project_role"` }
type GroupIsMemberResponse ¶ added in v1.6.0
type GroupIsMemberResponse struct {
IsMember bool `json:"isMember"`
}
type GroupMember ¶ added in v1.10.0
type GroupResponse ¶ added in v1.3.0
type GroupResponse struct {
Group Group `json:"group"`
}
type Integration ¶
type IntegrationData ¶
type IntegrationData = map[string]interface{}
type IntegrationDataBuilderFunc ¶
type IntegrationDataBuilderFunc = func(d *schema.ResourceData) IntegrationData
type IntegrationResponse ¶
type IntegrationResponse struct {
Integration Integration `json:"integration"`
}
type PageOptions ¶ added in v1.10.0
type ProjectMember ¶ added in v1.3.0
type ProjectMember struct { Type string `json:"type"` Slug string `json:"slug"` Role ProjectMemberRole `json:"role"` AccessAllEnvironments bool `json:"access_all_environment"` Environments []string `json:"environments,omitempty"` }
type ProjectMemberResponse ¶ added in v1.3.0
type ProjectMemberResponse struct {
Member ProjectMember `json:"member"`
}
type ProjectMemberRole ¶ added in v1.3.0
type ProjectMemberRole struct {
Identifier string `json:"identifier"`
}
type ProjectResponse ¶
type ProjectResponse struct {
Project Project `json:"project"`
}
type ProjectRole ¶ added in v1.8.0
type QueryParam ¶
type ResourceGroupMemberBuilder ¶ added in v1.6.0
type ResourceGroupMemberBuilder struct { // The Doppler member type MemberType string // Any additional schema fields for the resource DataSchema map[string]*schema.Schema // A function which uses the resource data to return a member slug GetMemberSlugFunc ResourceGroupMemberGetMemberSlugFunc }
Builds a member-type-specific resource schema using the configuration params.
func (ResourceGroupMemberBuilder) Build ¶ added in v1.6.0
func (builder ResourceGroupMemberBuilder) Build() *schema.Resource
func (ResourceGroupMemberBuilder) CreateContextFunc ¶ added in v1.6.0
func (builder ResourceGroupMemberBuilder) CreateContextFunc() schema.CreateContextFunc
func (ResourceGroupMemberBuilder) DeleteContextFunc ¶ added in v1.6.0
func (builder ResourceGroupMemberBuilder) DeleteContextFunc() schema.DeleteContextFunc
func (ResourceGroupMemberBuilder) ReadContextFunc ¶ added in v1.6.0
func (builder ResourceGroupMemberBuilder) ReadContextFunc() schema.ReadContextFunc
type ResourceGroupMemberGetMemberSlugFunc ¶ added in v1.6.0
type ResourceIntegrationBuilder ¶
type ResourceIntegrationBuilder struct { Type string DataSchema map[string]*schema.Schema DataBuilder IntegrationDataBuilderFunc }
func (ResourceIntegrationBuilder) Build ¶
func (builder ResourceIntegrationBuilder) Build() *schema.Resource
resourceIntegration returns a schema resource object for the integration model.
func (ResourceIntegrationBuilder) CreateContextFunc ¶
func (builder ResourceIntegrationBuilder) CreateContextFunc() schema.CreateContextFunc
func (ResourceIntegrationBuilder) DeleteContextFunc ¶
func (builder ResourceIntegrationBuilder) DeleteContextFunc() schema.DeleteContextFunc
func (ResourceIntegrationBuilder) ReadContextFunc ¶
func (builder ResourceIntegrationBuilder) ReadContextFunc() schema.ReadContextFunc
func (ResourceIntegrationBuilder) UpdateContextFunc ¶
func (builder ResourceIntegrationBuilder) UpdateContextFunc() schema.UpdateContextFunc
type ResourceProjectMemberBuilder ¶ added in v1.3.0
type ResourceProjectMemberBuilder struct { // The Doppler member type MemberType string // Any additional schema fields for the resource DataSchema map[string]*schema.Schema // A function which uses the resource data to return a member slug GetMemberSlugFunc ResourceProjectMemberGetMemberSlugFunc }
Builds a member-type-specific resource schema using the configuration params.
func (ResourceProjectMemberBuilder) Build ¶ added in v1.3.0
func (builder ResourceProjectMemberBuilder) Build() *schema.Resource
func (ResourceProjectMemberBuilder) CreateContextFunc ¶ added in v1.3.0
func (builder ResourceProjectMemberBuilder) CreateContextFunc() schema.CreateContextFunc
func (ResourceProjectMemberBuilder) DeleteContextFunc ¶ added in v1.3.0
func (builder ResourceProjectMemberBuilder) DeleteContextFunc() schema.DeleteContextFunc
func (ResourceProjectMemberBuilder) ReadContextFunc ¶ added in v1.3.0
func (builder ResourceProjectMemberBuilder) ReadContextFunc() schema.ReadContextFunc
func (ResourceProjectMemberBuilder) UpdateContextFunc ¶ added in v1.3.0
func (builder ResourceProjectMemberBuilder) UpdateContextFunc() schema.UpdateContextFunc
type ResourceProjectMemberGetMemberSlugFunc ¶ added in v1.3.0
type ResourceSyncBuilder ¶
type ResourceSyncBuilder struct { DataSchema map[string]*schema.Schema DataBuilder IntegrationDataBuilderFunc }
func (ResourceSyncBuilder) Build ¶
func (builder ResourceSyncBuilder) Build() *schema.Resource
resourceSync returns a schema resource object for the Sync model.
func (ResourceSyncBuilder) CreateContextFunc ¶
func (builder ResourceSyncBuilder) CreateContextFunc() schema.CreateContextFunc
func (ResourceSyncBuilder) DeleteContextFunc ¶
func (builder ResourceSyncBuilder) DeleteContextFunc() schema.DeleteContextFunc
func (ResourceSyncBuilder) ReadContextFunc ¶
func (builder ResourceSyncBuilder) ReadContextFunc() schema.ReadContextFunc
type Secret ¶
type Secret struct { Name string `json:"name"` Value SecretValue `json:"value"` }
type SecretValue ¶
type ServiceAccount ¶ added in v1.3.0
type ServiceAccount struct { Slug string `json:"slug"` Name string `json:"name"` CreatedAt string `json:"created_at"` WorkplaceRole WorkplaceRole `json:"workplace_role"` }
type ServiceAccountResponse ¶ added in v1.3.0
type ServiceAccountResponse struct {
ServiceAccount ServiceAccount `json:"service_account"`
}
type ServiceAccountToken ¶ added in v1.8.0
type ServiceAccountTokenResponse ¶ added in v1.8.0
type ServiceAccountTokenResponse struct { ServiceAccountToken ServiceAccountToken `json:"api_token"` ApiKey string `json:"api_key"` }
type ServiceToken ¶
type ServiceTokenListResponse ¶
type ServiceTokenListResponse struct {
ServiceTokens []ServiceToken `json:"tokens"`
}
type ServiceTokenResponse ¶
type ServiceTokenResponse struct {
ServiceToken ServiceToken `json:"token"`
}
type SimpleProjectRole ¶ added in v1.3.0
type SimpleProjectRole struct {
Identifier string `json:"identifier"`
}
type SyncDataBuilderFunc ¶
type SyncDataBuilderFunc = func(d *schema.ResourceData) SyncData
type SyncResponse ¶
type SyncResponse struct {
Sync Sync `json:"sync"`
}
type UpdateProjectRoleResponse ¶ added in v1.8.0
type UpdateProjectRoleResponse struct {
Role ProjectRole `json:"role"`
}
type WebhookAuth ¶ added in v1.8.0
type WebhookResponse ¶ added in v1.8.0
type WebhookResponse struct {
Webhook Webhook `json:"webhook"`
}
type WorkplaceRole ¶ added in v1.3.0
type WorkplaceUser ¶ added in v1.6.0
type WorkplaceUser struct {
Slug string `json:"id"`
}
type WorkplaceUsersListResponse ¶ added in v1.6.0
type WorkplaceUsersListResponse struct {
WorkplaceUsers []WorkplaceUser `json:"workplace_users"`
}
Source Files ¶
- api.go
- data_source_secrets.go
- data_source_user.go
- models.go
- provider.go
- provider_utils.go
- resource_config.go
- resource_environment.go
- resource_group.go
- resource_group_member.go
- resource_group_member_types.go
- resource_group_members.go
- resource_integration.go
- resource_integration_types.go
- resource_project.go
- resource_project_member.go
- resource_project_member_types.go
- resource_project_role.go
- resource_secret.go
- resource_service_account.go
- resource_service_account_token.go
- resource_service_token.go
- resource_sync.go
- resource_sync_types.go
- resource_webhook.go
- version.go
Click to show internal directories.
Click to hide internal directories.