Documentation ¶
Index ¶
- func NewWebhookResource() resource.Resource
- func WebhookMappingSchema() map[string]schema.Attribute
- func WebhookSchema() map[string]schema.Attribute
- func WebhookSecuritySchema() map[string]schema.Attribute
- type EntityModel
- type MappingsModel
- type SecurityModel
- type WebhookModel
- type WebhookResource
- func (r *WebhookResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *WebhookResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *WebhookResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *WebhookResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *WebhookResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *WebhookResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *WebhookResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *WebhookResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebhookResource ¶
func WebhookMappingSchema ¶
func WebhookSchema ¶
func WebhookSecuritySchema ¶
Types ¶
type EntityModel ¶
type MappingsModel ¶
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 (r *WebhookResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*WebhookResource) Create ¶
func (r *WebhookResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*WebhookResource) Delete ¶
func (r *WebhookResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*WebhookResource) ImportState ¶
func (r *WebhookResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*WebhookResource) Metadata ¶
func (r *WebhookResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*WebhookResource) Read ¶
func (r *WebhookResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*WebhookResource) Schema ¶
func (r *WebhookResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*WebhookResource) Update ¶
func (r *WebhookResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.