workflows

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorkflowDataSource

func NewWorkflowDataSource() datasource.DataSource

NewWorkflowDataSource creates a new instance of the WorkflowDataSource.

func NewWorkflowResource

func NewWorkflowResource() resource.Resource

Types

type WorkflowDataSource

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

WorkflowDataSource defines the data source implementation for the Terraform utils.

func (*WorkflowDataSource) Configure

Configure configures the data source with the provider's client.

func (*WorkflowDataSource) Metadata

Metadata sets the data source's metadata, such as its type name.

func (*WorkflowDataSource) Read

Read reads data from the external source and sets it in Terraform state.

func (*WorkflowDataSource) Schema

type WorkflowDataSourceModel

type WorkflowDataSourceModel struct {
	Id    types.String          `tfsdk:"id" json:"id"`
	Name  types.String          `tfsdk:"name" json:"name"`
	Rules []*workflowRulesModel `tfsdk:"rules" json:"rules"`
}

WorkflowDataSourceModel defines the data model for FullWorkflowResultResponseSchema.

type WorkflowResource

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

WorkflowResource defines the resource implementation.

func (*WorkflowResource) Configure

func (*WorkflowResource) Create

Create this function is responsible for creating a new resource of type Entitle Workflow.

Its reads the Terraform plan data provided in req.Plan and maps it to the WorkflowResourceModel. And sends a request to the Entitle API to create the resource using API requests. If the creation is successful, it saves the resource's data into Terraform state.

func (*WorkflowResource) Delete

Delete this function is responsible for deleting an existing resource of type

It reads the resource's data from Terraform state, extracts the unique identifier, and sends a request to delete the resource using API requests. If the deletion is successful, it removes the resource from Terraform state.

func (*WorkflowResource) ImportState

ImportState this function is used to import an existing resource's state into Terraform.

It extracts the resource's identifier from the import request and sets it in Terraform state using resource.ImportStatePassthroughID.

func (*WorkflowResource) Metadata

func (*WorkflowResource) Read

Read this function is used to read an existing resource of type Entitle Workflow.

It retrieves the resource's data from the provider API requests. The retrieved data is then mapped to the WorkflowResourceModel, and the data is saved to Terraform state.

func (*WorkflowResource) Schema

func (*WorkflowResource) Update

Update this function handles updates to an existing resource of type Entitle Workflow.

It reads the updated Terraform plan data provided in req.Plan and maps it to the WorkflowResourceModel. And sends a request to the Entitle API to update the resource using API requests. If the update is successful, it saves the updated resource data into Terraform state.

type WorkflowResourceModel

type WorkflowResourceModel struct {
	ID    types.String          `tfsdk:"id" json:"id"`
	Name  types.String          `tfsdk:"name" json:"name"`
	Rules []*workflowRulesModel `tfsdk:"rules" json:"rules"`
}

WorkflowResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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