Documentation ¶
Index ¶
- Constants
- Variables
- func AccessKeyFromModel(plan *AccessKeyResourceModel) *AccessKey
- func AccessKeyResourceSchema() schema.Schema
- func AccessKeyToModel(plan *AccessKeyResourceModel, accessKey *AccessKey)
- func PipelineFromModel(plan *PipelineResourceModel) *Pipeline
- func PipelineResourceSchema() schema.Schema
- func PipelineToModel(plan *PipelineResourceModel, pipeline *Pipeline)
- func PublishPipelineFromModel(plan *PublishPipelineResourceModel) *PublishPipeline
- func PublishPipelineResourceSchema() schema.Schema
- func PublishPipelineToModel(plan *PublishPipelineResourceModel, publishPipeline *PublishPipeline)
- func SharedSourceFromModel(plan *SharedSourceResourceModel) *SharedSource
- func SharedSourceResourceSchema() schema.Schema
- func SharedSourceToModel(plan *SharedSourceResourceModel, source *SharedSource)
- type AccessKeyResourceModel
- type PipelineResourceModel
- type PublishPipelineResourceModel
- type SharedSourceResourceModel
Constants ¶
View Source
const AccessKeyType = "generated"
Variables ¶
View Source
var PUSH_SOURCE_TYPES = []string{
"http",
"splunk-hec",
"kinesis-firehose",
"fluent",
"logstash",
"mezmo-agent",
"mezmo-datadog-source",
"webhook",
"prometheus-remote-write",
"open-telemetry-metrics",
"open-telemetry-logs",
"open-telemetry-traces",
}
Functions ¶
func AccessKeyFromModel ¶
func AccessKeyFromModel(plan *AccessKeyResourceModel) *AccessKey
From terraform schema/model to a struct for sending to the API
func AccessKeyResourceSchema ¶
func AccessKeyToModel ¶
func AccessKeyToModel(plan *AccessKeyResourceModel, accessKey *AccessKey)
From an API response to a terraform model
func PipelineFromModel ¶
func PipelineFromModel(plan *PipelineResourceModel) *Pipeline
func PipelineResourceSchema ¶
func PipelineToModel ¶
func PipelineToModel(plan *PipelineResourceModel, pipeline *Pipeline)
func PublishPipelineFromModel ¶
func PublishPipelineFromModel(plan *PublishPipelineResourceModel) *PublishPipeline
From terraform schema/model to a struct for sending to the API
func PublishPipelineToModel ¶
func PublishPipelineToModel(plan *PublishPipelineResourceModel, publishPipeline *PublishPipeline)
From an API response to a terraform model
func SharedSourceFromModel ¶
func SharedSourceFromModel(plan *SharedSourceResourceModel) *SharedSource
From terraform schema/model to a struct for sending to the API
func SharedSourceToModel ¶
func SharedSourceToModel(plan *SharedSourceResourceModel, source *SharedSource)
From an API response to a terraform model
Types ¶
type AccessKeyResourceModel ¶
type AccessKeyResourceModel struct { Id StringValue `tfsdk:"id"` Title StringValue `tfsdk:"title" user_config:"true"` SourceId StringValue `tfsdk:"source_id" user_config:"true"` Key StringValue `tfsdk:"key" user_config:"true"` }
type PipelineResourceModel ¶
type PipelineResourceModel struct { Id String `tfsdk:"id"` Title String `tfsdk:"title"` CreatedAt String `tfsdk:"created_at"` UpdatedAt String `tfsdk:"updated_at"` }
type PublishPipelineResourceModel ¶
type PublishPipelineResourceModel struct {
PipelineId StringValue `tfsdk:"pipeline_id"`
}
type SharedSourceResourceModel ¶
type SharedSourceResourceModel struct {}
Click to show internal directories.
Click to hide internal directories.