webhook

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebhookResource

func NewWebhookResource() resource.Resource

func WebhookMappingSchema

func WebhookMappingSchema() map[string]schema.Attribute

func WebhookSchema

func WebhookSchema() map[string]schema.Attribute

func WebhookSecuritySchema

func WebhookSecuritySchema() map[string]schema.Attribute

Types

type EntityModel

type EntityModel struct {
	Identifier types.String      `tfsdk:"identifier"`
	Title      types.String      `tfsdk:"title"`
	Icon       types.String      `tfsdk:"icon"`
	Team       types.String      `tfsdk:"team"`
	Properties map[string]string `tfsdk:"properties"`
	Relations  map[string]string `tfsdk:"relations"`
}

type MappingsModel

type MappingsModel struct {
	Blueprint    types.String `tfsdk:"blueprint"`
	Filter       types.String `tfsdk:"filter"`
	ItemsToParse types.String `tfsdk:"items_to_parse"`
	Entity       *EntityModel `tfsdk:"entity"`
}

type SecurityModel

type SecurityModel struct {
	Secret                types.String `tfsdk:"secret"`
	SignatureHeaderName   types.String `tfsdk:"signature_header_name"`
	SignatureAlgorithm    types.String `tfsdk:"signature_algorithm"`
	SignaturePrefix       types.String `tfsdk:"signature_prefix"`
	RequestIdentifierPath types.String `tfsdk:"request_identifier_path"`
}

type WebhookModel

type WebhookModel struct {
	ID          types.String    `tfsdk:"id"`
	Icon        types.String    `tfsdk:"icon"`
	Identifier  types.String    `tfsdk:"identifier"`
	Title       types.String    `tfsdk:"title"`
	Description types.String    `tfsdk:"description"`
	Enabled     types.Bool      `tfsdk:"enabled"`
	WebhookKey  types.String    `tfsdk:"webhook_key"`
	Url         types.String    `tfsdk:"url"`
	Security    *SecurityModel  `tfsdk:"security"`
	Mappings    []MappingsModel `tfsdk:"mappings"`
	CreatedAt   types.String    `tfsdk:"created_at"`
	CreatedBy   types.String    `tfsdk:"created_by"`
	UpdatedAt   types.String    `tfsdk:"updated_at"`
	UpdatedBy   types.String    `tfsdk:"updated_by"`
}

type WebhookResource

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

func (*WebhookResource) Configure

func (*WebhookResource) Create

func (*WebhookResource) Delete

func (*WebhookResource) ImportState

func (*WebhookResource) Metadata

func (*WebhookResource) Read

func (*WebhookResource) Schema

func (*WebhookResource) Update

Jump to

Keyboard shortcuts

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