Documentation ¶
Index ¶
- Constants
- func New(version string) func() provider.Provider
- func NewAgentSourceResource() resource.Resource
- func NewAggregateV2ProcessorResource() resource.Resource
- func NewAzureBlobStorageDestinationResource() resource.Resource
- func NewAzureEventHubSourceResource() resource.Resource
- func NewBlackholeDestinationResource() resource.Resource
- func NewCompactFieldsProcessorResource() resource.Resource
- func NewDatadogLogsDestinationResource() resource.Resource
- func NewDatadogMetricsDestinationResource() resource.Resource
- func NewDatadogSourceResource() resource.Resource
- func NewDecryptFieldsProcessorResource() resource.Resource
- func NewDedupeProcessorResource() resource.Resource
- func NewDemoSourceResource() resource.Resource
- func NewDropFieldsProcessorResource() resource.Resource
- func NewElasticSearchDestinationResource() resource.Resource
- func NewEncryptFieldsProcessorResource() resource.Resource
- func NewEventToMetricProcessorResource() resource.Resource
- func NewFilterProcessorResource() resource.Resource
- func NewFlattenFieldsProcessorResource() resource.Resource
- func NewFluentSourceResource() resource.Resource
- func NewGcpCloudStorageDestinationResource() resource.Resource
- func NewHoneycombLogsDestinationResource() resource.Resource
- func NewHttpDestinationResource() resource.Resource
- func NewHttpSourceResource() resource.Resource
- func NewKafkaDestinationResource() resource.Resource
- func NewKafkaSourceResource() resource.Resource
- func NewKinesisFirehoseSourceResource() resource.Resource
- func NewLogAnalysisSourceResource() resource.Resource
- func NewLogStashSourceResource() resource.Resource
- func NewLokiDestinationResource() resource.Resource
- func NewMapFieldsProcessorResource() resource.Resource
- func NewMetricsTagCardinalityLimitProcessorResource() resource.Resource
- func NewMezmoDestinationResource() resource.Resource
- func NewNewRelicDestinationResource() resource.Resource
- func NewOpenTelemetryTracesSourceResource() resource.Resource
- func NewParseProcessorResource() resource.Resource
- func NewParseSequentiallyProcessorResource() resource.Resource
- func NewPipelineResource() resource.Resource
- func NewPrometheusRemoteWriteDestinationResource() resource.Resource
- func NewPrometheusRemoteWriteSourceResource() resource.Resource
- func NewReduceProcessorResource() resource.Resource
- func NewRouteProcessorResource() resource.Resource
- func NewS3DestinationResource() resource.Resource
- func NewS3SourceResource() resource.Resource
- func NewSQSSourceResource() resource.Resource
- func NewSampleProcessorResource() resource.Resource
- func NewScriptExecutionProcessorResource() resource.Resource
- func NewSplunkHecLogsDestinationResource() resource.Resource
- func NewSplunkHecSourceResource() resource.Resource
- func NewStringifyProcessorResource() resource.Resource
- func NewUnrollProcessorResource() resource.Resource
- func NewWebhookSourceResource() resource.Resource
- func NullifyPlanFields[M ComponentModel](plan *M, schema resourceSchema.Schema)
- type ComponentModel
- type DestinationModel
- type DestinationResource
- func (r *DestinationResource[T]) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *DestinationResource[T]) ConvertToTerraformModel(component *reflect.Value) (*reflect.Value, error)
- func (r *DestinationResource[T]) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DestinationResource[T]) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DestinationResource[T]) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DestinationResource[T]) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r *DestinationResource[T]) NodeType() string
- func (r *DestinationResource[T]) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DestinationResource[T]) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DestinationResource[T]) TerraformSchema() schema.Schema
- func (r *DestinationResource[T]) TypeName() string
- func (r *DestinationResource[T]) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type MezmoProvider
- func (p *MezmoProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *MezmoProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *MezmoProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *MezmoProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *MezmoProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type MezmoProviderModel
- type PipelineResource
- func (r *PipelineResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *PipelineResource) ConvertToTerraformModel(component *reflect.Value) (*reflect.Value, error)
- func (r *PipelineResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *PipelineResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *PipelineResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *PipelineResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *PipelineResource) NodeType() string
- func (r *PipelineResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (*PipelineResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *PipelineResource) TerraformSchema() schema.Schema
- func (r *PipelineResource) TypeName() string
- func (r *PipelineResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ProcessorModel
- type ProcessorResource
- func (r *ProcessorResource[T]) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *ProcessorResource[T]) ConvertToTerraformModel(component *reflect.Value) (*reflect.Value, error)
- func (r *ProcessorResource[T]) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ProcessorResource[T]) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ProcessorResource[T]) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ProcessorResource[T]) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r *ProcessorResource[T]) NodeType() string
- func (r *ProcessorResource[T]) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ProcessorResource[T]) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ProcessorResource[T]) TerraformSchema() schema.Schema
- func (r *ProcessorResource[T]) TypeName() string
- func (r *ProcessorResource[T]) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SourceModel
- type SourceResource
- func (r *SourceResource[T]) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *SourceResource[T]) ConvertToTerraformModel(component *reflect.Value) (*reflect.Value, error)
- func (r *SourceResource[T]) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SourceResource[T]) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SourceResource[T]) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SourceResource[T]) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r *SourceResource[T]) NodeType() string
- func (r *SourceResource[T]) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SourceResource[T]) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SourceResource[T]) TerraformSchema() schema.Schema
- func (r *SourceResource[T]) TypeName() string
- func (r *SourceResource[T]) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
const PROVIDER_TYPE_NAME = "mezmo"
Variables ¶
This section is empty.
Functions ¶
func NewAgentSourceResource ¶
func NewAggregateV2ProcessorResource ¶ added in v1.11.0
func NewDatadogSourceResource ¶ added in v1.0.2
func NewDemoSourceResource ¶
func NewEventToMetricProcessorResource ¶ added in v1.0.2
func NewFilterProcessorResource ¶ added in v1.0.3
func NewFluentSourceResource ¶
func NewHttpSourceResource ¶
func NewKafkaSourceResource ¶
func NewMapFieldsProcessorResource ¶ added in v1.0.1
func NewMetricsTagCardinalityLimitProcessorResource ¶ added in v1.0.2
func NewOpenTelemetryTracesSourceResource ¶ added in v1.0.9
func NewPipelineResource ¶
func NewS3SourceResource ¶
func NewSQSSourceResource ¶
func NewWebhookSourceResource ¶ added in v1.0.2
func NullifyPlanFields ¶
func NullifyPlanFields[M ComponentModel](plan *M, schema resourceSchema.Schema)
This function is used only in testing to protect us from forgetting to overwrite plan values with what comes back from the API responses. Our models can be complicated, and it's possible we will miss things in the provider code and in code review. What's worse is that test assertions will actually give false positives even if properties have not been updated. @see: https://mezmo.atlassian.net/browse/LOG-18104
Types ¶
type ComponentModel ¶
type ComponentModel interface { SourceModel | ProcessorModel | DestinationModel }
Generic type representing a source / processor / destination model.
type DestinationModel ¶
type DestinationModel interface { AzureBlobStorageDestinationModel | BlackholeDestinationModel | DatadogLogsDestinationModel | DatadogMetricsDestinationModel | ElasticSearchDestinationModel | GcpCloudStorageDestinationModel | HoneycombLogsDestinationModel | HttpDestinationModel | KafkaDestinationModel | LokiDestinationModel | MezmoDestinationModel | NewRelicDestinationModel | PrometheusRemoteWriteDestinationModel | S3DestinationModel | SplunkHecLogsDestinationModel }
type DestinationResource ¶
type DestinationResource[T DestinationModel] struct { // contains filtered or unexported fields }
func (*DestinationResource[T]) Configure ¶
func (r *DestinationResource[T]) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure implements resource.ResourceWithConfigure.
func (*DestinationResource[T]) ConvertToTerraformModel ¶
func (*DestinationResource[T]) Create ¶
func (r *DestinationResource[T]) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*DestinationResource[T]) Delete ¶
func (r *DestinationResource[T]) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*DestinationResource[T]) ImportState ¶ added in v1.0.4
func (r *DestinationResource[T]) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DestinationResource[T]) Metadata ¶
func (r *DestinationResource[T]) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource.
func (*DestinationResource[T]) NodeType ¶ added in v1.0.2
func (r *DestinationResource[T]) NodeType() string
func (*DestinationResource[T]) Read ¶
func (r *DestinationResource[T]) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*DestinationResource[T]) Schema ¶
func (r *DestinationResource[T]) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource.
func (*DestinationResource[T]) TerraformSchema ¶
func (r *DestinationResource[T]) TerraformSchema() schema.Schema
func (*DestinationResource[T]) TypeName ¶
func (r *DestinationResource[T]) TypeName() string
func (*DestinationResource[T]) Update ¶
func (r *DestinationResource[T]) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.
type MezmoProvider ¶
type MezmoProvider struct {
// contains filtered or unexported fields
}
MezmoProvider defines the provider implementation.
func (*MezmoProvider) Configure ¶
func (p *MezmoProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*MezmoProvider) DataSources ¶
func (p *MezmoProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*MezmoProvider) Metadata ¶
func (p *MezmoProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*MezmoProvider) Resources ¶
func (p *MezmoProvider) Resources(ctx context.Context) []func() resource.Resource
func (*MezmoProvider) Schema ¶
func (p *MezmoProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type MezmoProviderModel ¶
type MezmoProviderModel struct { Endpoint String `tfsdk:"endpoint"` AuthKey String `tfsdk:"auth_key"` Headers Map `tfsdk:"headers"` }
MezmoProviderModel describes the provider data model.
type PipelineResource ¶
type PipelineResource struct {
// contains filtered or unexported fields
}
func (*PipelineResource) Configure ¶
func (r *PipelineResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure implements resource.ResourceWithConfigure.
func (*PipelineResource) ConvertToTerraformModel ¶
func (*PipelineResource) Create ¶
func (r *PipelineResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*PipelineResource) Delete ¶
func (r *PipelineResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*PipelineResource) ImportState ¶ added in v1.0.4
func (r *PipelineResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*PipelineResource) Metadata ¶
func (r *PipelineResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource.
func (*PipelineResource) NodeType ¶ added in v1.0.2
func (r *PipelineResource) NodeType() string
func (*PipelineResource) Read ¶
func (r *PipelineResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*PipelineResource) Schema ¶
func (*PipelineResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource.
func (*PipelineResource) TerraformSchema ¶
func (r *PipelineResource) TerraformSchema() schema.Schema
func (*PipelineResource) TypeName ¶
func (r *PipelineResource) TypeName() string
func (*PipelineResource) Update ¶
func (r *PipelineResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.
type ProcessorModel ¶
type ProcessorModel interface { AggregateV2ProcessorModel | CompactFieldsProcessorModel | DecryptFieldsProcessorModel | DedupeProcessorModel | DropFieldsProcessorModel | EncryptFieldsProcessorModel | EventToMetricProcessorModel | FilterProcessorModel | FlattenFieldsProcessorModel | MapFieldsProcessorModel | MetricsTagCardinalityLimitProcessorModel | ParseProcessorModel | ParseSequentiallyProcessorModel | ReduceProcessorModel | RouteProcessorModel | SampleProcessorModel | ScriptExecutionProcessorModel | StringifyProcessorModel | UnrollProcessorModel }
type ProcessorResource ¶
type ProcessorResource[T ProcessorModel] struct { // contains filtered or unexported fields }
func (*ProcessorResource[T]) Configure ¶
func (r *ProcessorResource[T]) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure implements resource.ResourceWithConfigure.
func (*ProcessorResource[T]) ConvertToTerraformModel ¶
func (*ProcessorResource[T]) Create ¶
func (r *ProcessorResource[T]) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*ProcessorResource[T]) Delete ¶
func (r *ProcessorResource[T]) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*ProcessorResource[T]) ImportState ¶ added in v1.0.4
func (r *ProcessorResource[T]) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ProcessorResource[T]) Metadata ¶
func (r *ProcessorResource[T]) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource.
func (*ProcessorResource[T]) NodeType ¶ added in v1.0.2
func (r *ProcessorResource[T]) NodeType() string
func (*ProcessorResource[T]) Read ¶
func (r *ProcessorResource[T]) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*ProcessorResource[T]) Schema ¶
func (r *ProcessorResource[T]) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource.
func (*ProcessorResource[T]) TerraformSchema ¶
func (r *ProcessorResource[T]) TerraformSchema() schema.Schema
func (*ProcessorResource[T]) TypeName ¶
func (r *ProcessorResource[T]) TypeName() string
func (*ProcessorResource[T]) Update ¶
func (r *ProcessorResource[T]) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.
type SourceModel ¶
type SourceModel interface { AgentSourceModel | AzureEventHubSourceModel | DatadogSourceModel | DemoSourceModel | FluentSourceModel | HttpSourceModel | KafkaSourceModel | KinesisFirehoseSourceModel | LogAnalysisSourceModel | LogStashSourceModel | OpenTelemetryTracesSourceModel | PrometheusRemoteWriteSourceModel | S3SourceModel | SplunkHecSourceModel | SQSSourceModel | WebhookSourceModel }
type SourceResource ¶
type SourceResource[T SourceModel] struct { // contains filtered or unexported fields }
func (*SourceResource[T]) Configure ¶
func (r *SourceResource[T]) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure implements resource.ResourceWithConfigure.
func (*SourceResource[T]) ConvertToTerraformModel ¶
func (*SourceResource[T]) Create ¶
func (r *SourceResource[T]) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*SourceResource[T]) Delete ¶
func (r *SourceResource[T]) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*SourceResource[T]) ImportState ¶ added in v1.0.4
func (r *SourceResource[T]) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SourceResource[T]) Metadata ¶
func (r *SourceResource[T]) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource.
func (*SourceResource[T]) NodeType ¶ added in v1.0.2
func (r *SourceResource[T]) NodeType() string
func (*SourceResource[T]) Read ¶
func (r *SourceResource[T]) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*SourceResource[T]) Schema ¶
func (r *SourceResource[T]) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource.
func (*SourceResource[T]) TerraformSchema ¶
func (r *SourceResource[T]) TerraformSchema() schema.Schema
func (*SourceResource[T]) TypeName ¶
func (r *SourceResource[T]) TypeName() string
func (*SourceResource[T]) Update ¶
func (r *SourceResource[T]) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.