provider

package
v0.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewIssueAlertDataSource

func NewIssueAlertDataSource() datasource.DataSource

func NewIssueAlertResource

func NewIssueAlertResource() resource.Resource

func NewNotificationActionResource

func NewNotificationActionResource() resource.Resource

func NewOrganizationIntegrationDataSource

func NewOrganizationIntegrationDataSource() datasource.DataSource

func NewOrganizationMemberDataSource

func NewOrganizationMemberDataSource() datasource.DataSource

func NewProjectInboundDataFilterResource

func NewProjectInboundDataFilterResource() resource.Resource

func NewProjectSpikeProtectionResource

func NewProjectSpikeProtectionResource() resource.Resource

func NewProjectSymbolSourcesResource

func NewProjectSymbolSourcesResource() resource.Resource

func NewTeamMemberResource

func NewTeamMemberResource() resource.Resource

Types

type IssueAlertDataSource

type IssueAlertDataSource struct {
	// contains filtered or unexported fields
}

func (*IssueAlertDataSource) Configure

func (*IssueAlertDataSource) Metadata

func (*IssueAlertDataSource) Read

func (*IssueAlertDataSource) Schema

type IssueAlertDataSourceModel

type IssueAlertDataSourceModel struct {
	Id           types.String          `tfsdk:"id"`
	Organization types.String          `tfsdk:"organization"`
	Project      types.String          `tfsdk:"project"`
	Name         types.String          `tfsdk:"name"`
	Conditions   sentrytypes.LossyJson `tfsdk:"conditions"`
	Filters      sentrytypes.LossyJson `tfsdk:"filters"`
	Actions      sentrytypes.LossyJson `tfsdk:"actions"`
	ActionMatch  types.String          `tfsdk:"action_match"`
	FilterMatch  types.String          `tfsdk:"filter_match"`
	Frequency    types.Int64           `tfsdk:"frequency"`
	Environment  types.String          `tfsdk:"environment"`
	Owner        types.String          `tfsdk:"owner"`
}

func (*IssueAlertDataSourceModel) Fill

func (m *IssueAlertDataSourceModel) Fill(organization string, alert sentry.IssueAlert) error

type IssueAlertResource

type IssueAlertResource struct {
	// contains filtered or unexported fields
}

func (*IssueAlertResource) Configure

func (*IssueAlertResource) Create

func (*IssueAlertResource) Delete

func (*IssueAlertResource) ImportState

func (*IssueAlertResource) Metadata

func (*IssueAlertResource) Read

func (*IssueAlertResource) Schema

func (*IssueAlertResource) Update

func (*IssueAlertResource) UpgradeState

func (r *IssueAlertResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader

type IssueAlertResourceModel

type IssueAlertResourceModel struct {
	Id           types.String          `tfsdk:"id"`
	Organization types.String          `tfsdk:"organization"`
	Project      types.String          `tfsdk:"project"`
	Name         types.String          `tfsdk:"name"`
	Conditions   sentrytypes.LossyJson `tfsdk:"conditions"`
	Filters      sentrytypes.LossyJson `tfsdk:"filters"`
	Actions      sentrytypes.LossyJson `tfsdk:"actions"`
	ActionMatch  types.String          `tfsdk:"action_match"`
	FilterMatch  types.String          `tfsdk:"filter_match"`
	Frequency    types.Int64           `tfsdk:"frequency"`
	Environment  types.String          `tfsdk:"environment"`
	Owner        types.String          `tfsdk:"owner"`
}

func (*IssueAlertResourceModel) Fill

func (m *IssueAlertResourceModel) Fill(organization string, alert sentry.IssueAlert) error

type NotificationActionResource

type NotificationActionResource struct {
	// contains filtered or unexported fields
}

func (*NotificationActionResource) Configure

func (*NotificationActionResource) Create

func (*NotificationActionResource) Delete

func (*NotificationActionResource) ImportState

func (*NotificationActionResource) Metadata

func (*NotificationActionResource) Read

func (*NotificationActionResource) Schema

func (*NotificationActionResource) Update

type NotificationActionResourceModel

type NotificationActionResourceModel struct {
	Id               types.String `tfsdk:"id"`
	Organization     types.String `tfsdk:"organization"`
	TriggerType      types.String `tfsdk:"trigger_type"`
	ServiceType      types.String `tfsdk:"service_type"`
	IntegrationId    types.String `tfsdk:"integration_id"`
	TargetIdentifier types.String `tfsdk:"target_identifier"`
	TargetDisplay    types.String `tfsdk:"target_display"`
	Projects         types.List   `tfsdk:"projects"`
}

func (*NotificationActionResourceModel) Fill

func (m *NotificationActionResourceModel) Fill(action sentry.NotificationAction, projectIdToSlugMap map[string]string) error

type OrganizationIntegrationDataSource

type OrganizationIntegrationDataSource struct {
	// contains filtered or unexported fields
}

func (*OrganizationIntegrationDataSource) Configure

func (*OrganizationIntegrationDataSource) Metadata

func (*OrganizationIntegrationDataSource) Read

func (*OrganizationIntegrationDataSource) Schema

type OrganizationIntegrationDataSourceModel

type OrganizationIntegrationDataSourceModel struct {
	Id           types.String `tfsdk:"id"`
	InternalId   types.String `tfsdk:"internal_id"`
	Organization types.String `tfsdk:"organization"`
	ProviderKey  types.String `tfsdk:"provider_key"`
	Name         types.String `tfsdk:"name"`
}

func (*OrganizationIntegrationDataSourceModel) Fill

type OrganizationMemberDataSource

type OrganizationMemberDataSource struct {
	// contains filtered or unexported fields
}

func (*OrganizationMemberDataSource) Configure

func (*OrganizationMemberDataSource) Metadata

func (*OrganizationMemberDataSource) Read

func (*OrganizationMemberDataSource) Schema

type OrganizationMemberDataSourceModel

type OrganizationMemberDataSourceModel struct {
	Id           types.String `tfsdk:"id"`
	Organization types.String `tfsdk:"organization"`
	Email        types.String `tfsdk:"email"`
	Role         types.String `tfsdk:"role"`
}

func (*OrganizationMemberDataSourceModel) Fill

type ProjectInboundDataFilterResource

type ProjectInboundDataFilterResource struct {
	// contains filtered or unexported fields
}

func (*ProjectInboundDataFilterResource) Configure

func (*ProjectInboundDataFilterResource) Create

func (*ProjectInboundDataFilterResource) Delete

func (*ProjectInboundDataFilterResource) ImportState

func (*ProjectInboundDataFilterResource) Metadata

func (*ProjectInboundDataFilterResource) Read

func (*ProjectInboundDataFilterResource) Schema

func (*ProjectInboundDataFilterResource) Update

type ProjectInboundDataFilterResourceModel

type ProjectInboundDataFilterResourceModel struct {
	Id           types.String `tfsdk:"id"`
	Organization types.String `tfsdk:"organization"`
	Project      types.String `tfsdk:"project"`
	FilterId     types.String `tfsdk:"filter_id"`
	Active       types.Bool   `tfsdk:"active"`
	Subfilters   types.List   `tfsdk:"subfilters"`
}

func (*ProjectInboundDataFilterResourceModel) Fill

func (m *ProjectInboundDataFilterResourceModel) Fill(organization string, project string, filterId string, filter sentry.ProjectInboundDataFilter) error

type ProjectSpikeProtectionResource

type ProjectSpikeProtectionResource struct {
	// contains filtered or unexported fields
}

func (*ProjectSpikeProtectionResource) Configure

func (*ProjectSpikeProtectionResource) Create

func (*ProjectSpikeProtectionResource) Delete

func (*ProjectSpikeProtectionResource) ImportState

func (*ProjectSpikeProtectionResource) Metadata

func (*ProjectSpikeProtectionResource) Read

func (*ProjectSpikeProtectionResource) Schema

func (*ProjectSpikeProtectionResource) Update

type ProjectSpikeProtectionResourceModel

type ProjectSpikeProtectionResourceModel struct {
	Id           types.String `tfsdk:"id"`
	Organization types.String `tfsdk:"organization"`
	Project      types.String `tfsdk:"project"`
	Enabled      types.Bool   `tfsdk:"enabled"`
}

func (*ProjectSpikeProtectionResourceModel) Fill

func (data *ProjectSpikeProtectionResourceModel) Fill(organization string, project sentry.Project) error

type ProjectSymbolSourcesResource

type ProjectSymbolSourcesResource struct {
	// contains filtered or unexported fields
}

func (*ProjectSymbolSourcesResource) Configure

func (*ProjectSymbolSourcesResource) Create

func (*ProjectSymbolSourcesResource) Delete

func (*ProjectSymbolSourcesResource) ImportState

func (*ProjectSymbolSourcesResource) Metadata

func (*ProjectSymbolSourcesResource) Read

func (*ProjectSymbolSourcesResource) Schema

func (*ProjectSymbolSourcesResource) Update

type ProjectSymbolSourcesResourceLayoutModel

type ProjectSymbolSourcesResourceLayoutModel struct {
	Type   types.String `tfsdk:"type"`
	Casing types.String `tfsdk:"casing"`
}

func (ProjectSymbolSourcesResourceLayoutModel) AttributeTypes

func (*ProjectSymbolSourcesResourceLayoutModel) Fill

type ProjectSymbolSourcesResourceModel

type ProjectSymbolSourcesResourceModel struct {
	Id                   types.String                             `tfsdk:"id"`
	Organization         types.String                             `tfsdk:"organization"`
	Project              types.String                             `tfsdk:"project"`
	Type                 types.String                             `tfsdk:"type"`
	Name                 types.String                             `tfsdk:"name"`
	Layout               *ProjectSymbolSourcesResourceLayoutModel `tfsdk:"layout"`
	AppConnectIssuer     types.String                             `tfsdk:"app_connect_issuer"`
	AppConnectPrivateKey types.String                             `tfsdk:"app_connect_private_key"`
	AppId                types.String                             `tfsdk:"app_id"`
	Url                  types.String                             `tfsdk:"url"`
	Username             types.String                             `tfsdk:"username"`
	Password             types.String                             `tfsdk:"password"`
	Bucket               types.String                             `tfsdk:"bucket"`
	Region               types.String                             `tfsdk:"region"`
	AccessKey            types.String                             `tfsdk:"access_key"`
	SecretKey            types.String                             `tfsdk:"secret_key"`
	Prefix               types.String                             `tfsdk:"prefix"`
	ClientEmail          types.String                             `tfsdk:"client_email"`
	PrivateKey           types.String                             `tfsdk:"private_key"`
}

func (*ProjectSymbolSourcesResourceModel) Fill

type SentryProvider

type SentryProvider struct {
	// contains filtered or unexported fields
}

SentryProvider defines the provider implementation.

func (*SentryProvider) Configure

func (*SentryProvider) DataSources

func (p *SentryProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*SentryProvider) Metadata

func (*SentryProvider) Resources

func (p *SentryProvider) Resources(ctx context.Context) []func() resource.Resource

func (*SentryProvider) Schema

type SentryProviderModel

type SentryProviderModel struct {
	Token   types.String `tfsdk:"token"`
	BaseUrl types.String `tfsdk:"base_url"`
}

SentryProviderModel describes the provider data model.

type TeamMemberResource

type TeamMemberResource struct {
	// contains filtered or unexported fields
}

func (*TeamMemberResource) Configure

func (*TeamMemberResource) Create

func (*TeamMemberResource) Delete

func (*TeamMemberResource) ImportState

func (*TeamMemberResource) Metadata

func (*TeamMemberResource) Read

func (*TeamMemberResource) Schema

func (*TeamMemberResource) Update

type TeamMemberResourceModel

type TeamMemberResourceModel struct {
	Id            types.String `tfsdk:"id"`
	Organization  types.String `tfsdk:"organization"`
	MemberId      types.String `tfsdk:"member_id"`
	Team          types.String `tfsdk:"team"`
	Role          types.String `tfsdk:"role"`
	EffectiveRole types.String `tfsdk:"effective_role"`
}

func (*TeamMemberResourceModel) Fill

func (data *TeamMemberResourceModel) Fill(organization string, team string, memberId string, role *string, effectiveRole string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL