Documentation
¶
Index ¶
- Variables
- func DataSourceSchema(ctx context.Context) schema.Schema
- func ListDataSourceSchema(ctx context.Context) schema.Schema
- func NewResource() resource.Resource
- func NewWorkflowDataSource() datasource.DataSource
- func NewWorkflowsDataSource() datasource.DataSource
- func Prefetch(ctx context.Context, client *serval.Client, teamIDs []string) (int, error)
- func ResourceSchema(ctx context.Context) schema.Schema
- type WorkflowDataDataSourceEnvelope
- type WorkflowDataEnvelope
- type WorkflowDataSource
- func (d *WorkflowDataSource) ConfigValidators(_ context.Context) []datasource.ConfigValidator
- func (d *WorkflowDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *WorkflowDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *WorkflowDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *WorkflowDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type WorkflowDataSourceModel
- type WorkflowFindOneByDataSourceModel
- type WorkflowModel
- type WorkflowResource
- func (r *WorkflowResource) ConfigValidators(_ context.Context) []resource.ConfigValidator
- func (r *WorkflowResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *WorkflowResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *WorkflowResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *WorkflowResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *WorkflowResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *WorkflowResource) ModifyPlan(_ context.Context, _ resource.ModifyPlanRequest, ...)
- func (r *WorkflowResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *WorkflowResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *WorkflowResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *WorkflowResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
- type WorkflowsDataListDataSourceEnvelope
- type WorkflowsDataSource
- func (d *WorkflowsDataSource) ConfigValidators(_ context.Context) []datasource.ConfigValidator
- func (d *WorkflowsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *WorkflowsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *WorkflowsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *WorkflowsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type WorkflowsDataSourceModel
- type WorkflowsItemsDataSourceModel
Constants ¶
This section is empty.
Variables ¶
View Source
var Cache *cache.Store[WorkflowModel]
Functions ¶
func ListDataSourceSchema ¶ added in v0.21.0
func NewResource ¶
func NewWorkflowDataSource ¶
func NewWorkflowDataSource() datasource.DataSource
func NewWorkflowsDataSource ¶ added in v0.21.0
func NewWorkflowsDataSource() datasource.DataSource
Types ¶
type WorkflowDataDataSourceEnvelope ¶
type WorkflowDataDataSourceEnvelope struct {
Data WorkflowDataSourceModel `json:"data,computed"`
}
type WorkflowDataEnvelope ¶
type WorkflowDataEnvelope struct {
Data WorkflowModel `json:"data"`
}
type WorkflowDataSource ¶
type WorkflowDataSource struct {
// contains filtered or unexported fields
}
func (*WorkflowDataSource) ConfigValidators ¶
func (d *WorkflowDataSource) ConfigValidators(_ context.Context) []datasource.ConfigValidator
func (*WorkflowDataSource) Configure ¶
func (d *WorkflowDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*WorkflowDataSource) Metadata ¶
func (d *WorkflowDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*WorkflowDataSource) Read ¶
func (d *WorkflowDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*WorkflowDataSource) Schema ¶
func (d *WorkflowDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type WorkflowDataSourceModel ¶
type WorkflowDataSourceModel struct {
ID types.String `tfsdk:"id" path:"id,computed_optional"`
Content types.String `tfsdk:"content" json:"content,computed"`
Description types.String `tfsdk:"description" json:"description,computed"`
ExecutionScope types.String `tfsdk:"execution_scope" json:"executionScope,computed"`
HasUnpublishedChanges types.Bool `tfsdk:"has_unpublished_changes" json:"hasUnpublishedChanges,computed"`
IsPublished types.Bool `tfsdk:"is_published" json:"isPublished,computed"`
Name types.String `tfsdk:"name" json:"name,computed"`
RequireFormConfirmation types.Bool `tfsdk:"require_form_confirmation" json:"requireFormConfirmation,computed"`
TeamID types.String `tfsdk:"team_id" json:"teamId,computed"`
TagIDs customfield.List[types.String] `tfsdk:"tag_ids" json:"tagIds,computed"`
FindOneBy *WorkflowFindOneByDataSourceModel `tfsdk:"find_one_by"`
}
type WorkflowFindOneByDataSourceModel ¶ added in v0.21.0
type WorkflowModel ¶
type WorkflowModel struct {
ID types.String `tfsdk:"id" json:"id,computed"`
TeamID types.String `tfsdk:"team_id" json:"teamId,required"`
Content types.String `tfsdk:"content" json:"content,required"`
Name types.String `tfsdk:"name" json:"name,required"`
Description types.String `tfsdk:"description" json:"description,optional"`
ExecutionScope types.String `tfsdk:"execution_scope" json:"executionScope,optional"`
TagIDs *[]types.String `tfsdk:"tag_ids" json:"tagIds,optional"`
IsPublished types.Bool `tfsdk:"is_published" json:"isPublished,computed_optional"`
RequireFormConfirmation types.Bool `tfsdk:"require_form_confirmation" json:"requireFormConfirmation,computed_optional"`
HasUnpublishedChanges types.Bool `tfsdk:"has_unpublished_changes" json:"hasUnpublishedChanges,computed"`
}
func (WorkflowModel) MarshalJSON ¶
func (m WorkflowModel) MarshalJSON() (data []byte, err error)
func (WorkflowModel) MarshalJSONForUpdate ¶
func (m WorkflowModel) MarshalJSONForUpdate(state WorkflowModel) (data []byte, err error)
type WorkflowResource ¶
type WorkflowResource struct {
// contains filtered or unexported fields
}
WorkflowResource defines the resource implementation.
func (*WorkflowResource) ConfigValidators ¶
func (r *WorkflowResource) ConfigValidators(_ context.Context) []resource.ConfigValidator
func (*WorkflowResource) Configure ¶
func (r *WorkflowResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*WorkflowResource) Create ¶
func (r *WorkflowResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*WorkflowResource) Delete ¶
func (r *WorkflowResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*WorkflowResource) ImportState ¶
func (r *WorkflowResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*WorkflowResource) Metadata ¶
func (r *WorkflowResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*WorkflowResource) ModifyPlan ¶
func (r *WorkflowResource) ModifyPlan(_ context.Context, _ resource.ModifyPlanRequest, _ *resource.ModifyPlanResponse)
func (*WorkflowResource) Read ¶
func (r *WorkflowResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*WorkflowResource) Schema ¶
func (r *WorkflowResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*WorkflowResource) Update ¶
func (r *WorkflowResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*WorkflowResource) UpgradeState ¶
func (r *WorkflowResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
type WorkflowsDataListDataSourceEnvelope ¶ added in v0.21.0
type WorkflowsDataListDataSourceEnvelope struct {
Data customfield.NestedObjectList[WorkflowsItemsDataSourceModel] `json:"data,computed"`
}
type WorkflowsDataSource ¶ added in v0.21.0
type WorkflowsDataSource struct {
// contains filtered or unexported fields
}
func (*WorkflowsDataSource) ConfigValidators ¶ added in v0.21.0
func (d *WorkflowsDataSource) ConfigValidators(_ context.Context) []datasource.ConfigValidator
func (*WorkflowsDataSource) Configure ¶ added in v0.21.0
func (d *WorkflowsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*WorkflowsDataSource) Metadata ¶ added in v0.21.0
func (d *WorkflowsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*WorkflowsDataSource) Read ¶ added in v0.21.0
func (d *WorkflowsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*WorkflowsDataSource) Schema ¶ added in v0.21.0
func (d *WorkflowsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type WorkflowsDataSourceModel ¶ added in v0.21.0
type WorkflowsDataSourceModel struct {
TeamID types.String `tfsdk:"team_id" query:"teamId,optional"`
MaxItems types.Int64 `tfsdk:"max_items"`
Items customfield.NestedObjectList[WorkflowsItemsDataSourceModel] `tfsdk:"items"`
}
type WorkflowsItemsDataSourceModel ¶ added in v0.21.0
type WorkflowsItemsDataSourceModel struct {
ID types.String `tfsdk:"id" json:"id,computed"`
Content types.String `tfsdk:"content" json:"content,computed"`
Description types.String `tfsdk:"description" json:"description,computed"`
ExecutionScope types.String `tfsdk:"execution_scope" json:"executionScope,computed"`
HasUnpublishedChanges types.Bool `tfsdk:"has_unpublished_changes" json:"hasUnpublishedChanges,computed"`
IsPublished types.Bool `tfsdk:"is_published" json:"isPublished,computed"`
Name types.String `tfsdk:"name" json:"name,computed"`
RequireFormConfirmation types.Bool `tfsdk:"require_form_confirmation" json:"requireFormConfirmation,computed"`
TagIDs customfield.List[types.String] `tfsdk:"tag_ids" json:"tagIds,computed"`
TeamID types.String `tfsdk:"team_id" json:"teamId,computed"`
}
Click to show internal directories.
Click to hide internal directories.