models

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 AccessKeyResourceSchema() schema.Schema

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 PipelineResourceSchema() schema.Schema

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 PublishPipelineResourceSchema

func PublishPipelineResourceSchema() schema.Schema

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 SharedSourceResourceSchema

func SharedSourceResourceSchema() schema.Schema

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 {
	Id          StringValue `tfsdk:"id"`
	ConsumerId  StringValue `tfsdk:"consumer_id"`
	Title       StringValue `tfsdk:"title" user_config:"true"`
	Description StringValue `tfsdk:"description" user_config:"true"`
	Type        StringValue `tfsdk:"type" user_config:"true"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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