Help us shape the future of Go! Take the 2026 Go Developer Survey

workflowgit

package
v1.12.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MPL-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() resource.Resource

Types

type CustomSourceConfigModel

type CustomSourceConfigModel struct {
	IsPrivate               types.Bool   `tfsdk:"is_private"`
	Auth                    types.String `tfsdk:"auth"`
	WorkingDir              types.String `tfsdk:"working_dir"`
	GitSparseCheckoutConfig types.String `tfsdk:"git_sparse_checkout_config"`
	GitCoreAutoCrlf         types.Bool   `tfsdk:"git_core_auto_crlf"`
	Ref                     types.String `tfsdk:"ref"`
	Repo                    types.String `tfsdk:"repo"`
	IncludeSubModule        types.Bool   `tfsdk:"include_sub_module"`
}

func (CustomSourceConfigModel) AttributeTypes

func (CustomSourceConfigModel) AttributeTypes() map[string]attr.Type

func (CustomSourceConfigModel) ToAPIModel

type CustomSourceModel

type CustomSourceModel struct {
	SourceConfigDestKind types.String `tfsdk:"source_config_dest_kind"`
	Config               types.Object `tfsdk:"config"`
}

func (CustomSourceModel) AttributeTypes

func (m CustomSourceModel) AttributeTypes(ctx context.Context) map[string]attr.Type

func (CustomSourceModel) ToAPIModel

type DeploymentPlatformConfigConfigModel

type DeploymentPlatformConfigConfigModel struct {
	IntegrationId types.String `tfsdk:"integration_id"`
	ProfileName   types.String `tfsdk:"profile_name"`
}

func (DeploymentPlatformConfigConfigModel) AttributeTypes

func (DeploymentPlatformConfigConfigModel) AttributeTypes() map[string]attr.Type

func (DeploymentPlatformConfigConfigModel) ToAPIModel

type DeploymentPlatformConfigModel

type DeploymentPlatformConfigModel struct {
	Kind   types.String `tfsdk:"kind"`
	Config types.Object `tfsdk:"config"`
}

func (DeploymentPlatformConfigModel) AttributeTypes

func (DeploymentPlatformConfigModel) AttributeTypes() map[string]attr.Type

type EnvironmentVariableConfigModel

type EnvironmentVariableConfigModel struct {
	VarName   types.String `tfsdk:"var_name"`
	SecretId  types.String `tfsdk:"secret_id"`
	TextValue types.String `tfsdk:"text_value"`
}

func (EnvironmentVariableConfigModel) AttributeTypes

func (EnvironmentVariableConfigModel) AttributeTypes() map[string]attr.Type

func (EnvironmentVariableConfigModel) ToAPIModel

type EnvironmentVariableModel

type EnvironmentVariableModel struct {
	Config types.Object `tfsdk:"config"`
	Kind   types.String `tfsdk:"kind"`
}

func (EnvironmentVariableModel) AttributeTypes

func (EnvironmentVariableModel) AttributeTypes() map[string]attr.Type

func (EnvironmentVariableModel) ToAPIModel

type IacInputDataModel

type IacInputDataModel struct {
	SchemaId   types.String `tfsdk:"schema_id"`
	SchemaType types.String `tfsdk:"schema_type"`
	Data       types.String `tfsdk:"data"`
}

func (IacInputDataModel) AttributeTypes

func (IacInputDataModel) AttributeTypes() map[string]attr.Type

func (IacInputDataModel) ToAPIModel

Returns diagnostics, unlike the leaf-struct convention (ToAPIModel() SdkType), because parsing the JSON can fail: an invalid value used to be sent silently as {} / nil. validators.JSONObject rejects it at plan time; this catches a value that was only known at apply.

type IacVcsConfigModel

type IacVcsConfigModel struct {
	CustomSource types.Object `tfsdk:"custom_source"`
}

func (IacVcsConfigModel) AttributeTypes

func (m IacVcsConfigModel) AttributeTypes(ctx context.Context) map[string]attr.Type

func (IacVcsConfigModel) ToAPIModel

type MinistepsEmailModel

type MinistepsEmailModel struct {
	ApprovalRequired types.List `tfsdk:"approval_required"`
	Cancelled        types.List `tfsdk:"cancelled"`
	Completed        types.List `tfsdk:"completed"`
	DriftDetected    types.List `tfsdk:"drift_detected"`
	Errored          types.List `tfsdk:"errored"`
}

func (MinistepsEmailModel) AttributeTypes

func (MinistepsEmailModel) AttributeTypes() map[string]attr.Type

type MinistepsModel

type MinistepsModel struct {
	Notifications types.Object `tfsdk:"notifications"`
	Webhooks      types.Object `tfsdk:"webhooks"`
	WfChaining    types.Object `tfsdk:"wf_chaining"`
}

func (MinistepsModel) AttributeTypes

func (MinistepsModel) AttributeTypes() map[string]attr.Type

func (MinistepsModel) ToAPIModel

type MinistepsNotificationRecipientsModel

type MinistepsNotificationRecipientsModel struct {
	Recipients types.List `tfsdk:"recipients"`
}

func (MinistepsNotificationRecipientsModel) AttributeTypes

type MinistepsNotificationsModel

type MinistepsNotificationsModel struct {
	Email types.Object `tfsdk:"email"`
}

func (MinistepsNotificationsModel) AttributeTypes

func (MinistepsNotificationsModel) AttributeTypes() map[string]attr.Type

type MinistepsWebhooksContainerModel

type MinistepsWebhooksContainerModel struct {
	ApprovalRequired types.List `tfsdk:"approval_required"`
	Cancelled        types.List `tfsdk:"cancelled"`
	Completed        types.List `tfsdk:"completed"`
	DriftDetected    types.List `tfsdk:"drift_detected"`
	Errored          types.List `tfsdk:"errored"`
}

func (MinistepsWebhooksContainerModel) AttributeTypes

func (MinistepsWebhooksContainerModel) AttributeTypes() map[string]attr.Type

func (MinistepsWebhooksContainerModel) ToAPIModel

type MinistepsWebhooksModel

type MinistepsWebhooksModel struct {
	WebhookName   types.String `tfsdk:"webhook_name"`
	WebhookUrl    types.String `tfsdk:"webhook_url"`
	WebhookSecret types.String `tfsdk:"webhook_secret"`
}

func (MinistepsWebhooksModel) AttributeTypes

func (MinistepsWebhooksModel) AttributeTypes() map[string]attr.Type

func (MinistepsWebhooksModel) ToAPIModel

type MinistepsWfChainingContainerModel

type MinistepsWfChainingContainerModel struct {
	Completed types.List `tfsdk:"completed"`
	Errored   types.List `tfsdk:"errored"`
}

func (MinistepsWfChainingContainerModel) AttributeTypes

func (MinistepsWfChainingContainerModel) AttributeTypes() map[string]attr.Type

type MinistepsWorkflowChainingModel

type MinistepsWorkflowChainingModel struct {
	WorkflowGroupId    types.String `tfsdk:"workflow_group_id"`
	StackId            types.String `tfsdk:"stack_id"`
	StackRunPayload    types.String `tfsdk:"stack_run_payload"`
	WorkflowId         types.String `tfsdk:"workflow_id"`
	WorkflowRunPayload types.String `tfsdk:"workflow_run_payload"`
}

func (MinistepsWorkflowChainingModel) AttributeTypes

func (MinistepsWorkflowChainingModel) AttributeTypes() map[string]attr.Type

func (MinistepsWorkflowChainingModel) ToAPIModel

Returns diagnostics, unlike the leaf-struct convention (ToAPIModel() SdkType), because parsing the JSON can fail: an invalid value used to be sent silently as {} / nil. validators.JSONObject rejects it at plan time; this catches a value that was only known at apply.

type MountPointModel

type MountPointModel struct {
	Source   types.String `tfsdk:"source"`
	Target   types.String `tfsdk:"target"`
	ReadOnly types.Bool   `tfsdk:"read_only"`
}

func (MountPointModel) AttributeTypes

func (MountPointModel) AttributeTypes() map[string]attr.Type

func (MountPointModel) ToAPIModel

func (m MountPointModel) ToAPIModel() sgsdkgo.MountPoint

type RunnerConstraintsModel

type RunnerConstraintsModel struct {
	Type  types.String `tfsdk:"type"`
	Names types.List   `tfsdk:"names"`
}

func (RunnerConstraintsModel) AttributeTypes

func (RunnerConstraintsModel) AttributeTypes() map[string]attr.Type

func (RunnerConstraintsModel) ToAPIModel

type TerraformConfigModel

type TerraformConfigModel struct {
	TerraformVersion        types.String `tfsdk:"terraform_version"`
	DriftCheck              types.Bool   `tfsdk:"drift_check"`
	DriftCron               types.String `tfsdk:"drift_cron"`
	ManagedTerraformState   types.Bool   `tfsdk:"managed_terraform_state"`
	ApprovalPreApply        types.Bool   `tfsdk:"approval_pre_apply"`
	TerraformPlanOptions    types.String `tfsdk:"terraform_plan_options"`
	TerraformInitOptions    types.String `tfsdk:"terraform_init_options"`
	TerraformBinPath        types.List   `tfsdk:"terraform_bin_path"`
	Timeout                 types.Int64  `tfsdk:"timeout"`
	PostApplyWfStepsConfig  types.List   `tfsdk:"post_apply_wf_steps_config"`
	PreApplyWfStepsConfig   types.List   `tfsdk:"pre_apply_wf_steps_config"`
	PrePlanWfStepsConfig    types.List   `tfsdk:"pre_plan_wf_steps_config"`
	PostPlanWfStepsConfig   types.List   `tfsdk:"post_plan_wf_steps_config"`
	PreInitHooks            types.List   `tfsdk:"pre_init_hooks"`
	PrePlanHooks            types.List   `tfsdk:"pre_plan_hooks"`
	PostPlanHooks           types.List   `tfsdk:"post_plan_hooks"`
	PreApplyHooks           types.List   `tfsdk:"pre_apply_hooks"`
	PostApplyHooks          types.List   `tfsdk:"post_apply_hooks"`
	RunPreInitHooksOnDrift  types.Bool   `tfsdk:"run_pre_init_hooks_on_drift"`
	RunPrePlanHooksOnDrift  types.Bool   `tfsdk:"run_pre_plan_hooks_on_drift"`
	RunPostPlanHooksOnDrift types.Bool   `tfsdk:"run_post_plan_hooks_on_drift"`
}

func (TerraformConfigModel) AttributeTypes

func (TerraformConfigModel) AttributeTypes() map[string]attr.Type

func (TerraformConfigModel) ToAPIModel

type UserSchedulesModel

type UserSchedulesModel struct {
	Cron  types.String `tfsdk:"cron"`
	State types.String `tfsdk:"state"`
	Desc  types.String `tfsdk:"desc"`
	Name  types.String `tfsdk:"name"`
}

func (UserSchedulesModel) AttributeTypes

func (UserSchedulesModel) AttributeTypes() map[string]attr.Type

func (UserSchedulesModel) ToAPIModel

func (m UserSchedulesModel) ToAPIModel() sgsdkgo.UserSchedules

type VcsConfigModel

type VcsConfigModel struct {
	IacVcsConfig types.Object `tfsdk:"iac_vcs_config"`
	IacInputData types.Object `tfsdk:"iac_input_data"`
}

func (VcsConfigModel) AttributeTypes

func (m VcsConfigModel) AttributeTypes(ctx context.Context) map[string]attr.Type

func (VcsConfigModel) ToAPIModel

type VcsTriggerActionConfigModel

type VcsTriggerActionConfigModel struct {
	Enabled types.Bool `tfsdk:"enabled"`
}

func (VcsTriggerActionConfigModel) AttributeTypes

func (VcsTriggerActionConfigModel) AttributeTypes() map[string]attr.Type

type VcsTriggersModel

type VcsTriggersModel struct {
	TrackedBranch       types.String `tfsdk:"tracked_branch"`
	ApprovalPreApply    types.Bool   `tfsdk:"approval_pre_apply"`
	PlanOnly            types.Bool   `tfsdk:"plan_only"`
	FileTriggersEnabled types.Bool   `tfsdk:"file_triggers_enabled"`
	FileTriggerPatterns types.List   `tfsdk:"file_trigger_patterns"`
	GhWebhookUrl        types.String `tfsdk:"gh_webhook_url"`
	AllPullRequests     types.Map    `tfsdk:"all_pull_requests"`
	PullRequestOpened   types.Map    `tfsdk:"pull_request_opened"`
	PullRequestModified types.Map    `tfsdk:"pull_request_modified"`
	CreateTag           types.Map    `tfsdk:"create_tag"`
	Push                types.Map    `tfsdk:"push"`
}

func (VcsTriggersModel) AttributeTypes

func (VcsTriggersModel) AttributeTypes() map[string]attr.Type

func (VcsTriggersModel) ToAPIModel

type WfStepInputDataModel

type WfStepInputDataModel struct {
	SchemaType types.String `tfsdk:"schema_type"`
	Data       types.String `tfsdk:"data"`
}

func (WfStepInputDataModel) AttributeTypes

func (WfStepInputDataModel) AttributeTypes() map[string]attr.Type

func (WfStepInputDataModel) ToAPIModel

type WfStepsConfigModel

type WfStepsConfigModel struct {
	Name                 types.String `tfsdk:"name"`
	EnvironmentVariables types.List   `tfsdk:"environment_variables"`
	Approval             types.Bool   `tfsdk:"approval"`
	Timeout              types.Int64  `tfsdk:"timeout"`
	CmdOverride          types.String `tfsdk:"cmd_override"`
	MountPoints          types.List   `tfsdk:"mount_points"`
	WfStepTemplateId     types.String `tfsdk:"wf_step_template_id"`
	WfStepInputData      types.Object `tfsdk:"wf_step_input_data"`
}

func (WfStepsConfigModel) AttributeTypes

func (WfStepsConfigModel) AttributeTypes() map[string]attr.Type

func (WfStepsConfigModel) ToAPIModel

type WorkflowGitResourceModel

type WorkflowGitResourceModel struct {
	Id                        types.String `tfsdk:"id"`
	WorkflowGroupId           types.String `tfsdk:"workflow_group_id"`
	ResourceName              types.String `tfsdk:"resource_name"`
	Description               types.String `tfsdk:"description"`
	WfType                    types.String `tfsdk:"wf_type"`
	EnvironmentVariables      types.List   `tfsdk:"environment_variables"`
	MiniSteps                 types.Object `tfsdk:"mini_steps"`
	RunnerConstraints         types.Object `tfsdk:"runner_constraints"`
	Tags                      types.List   `tfsdk:"tags"`
	UserSchedules             types.List   `tfsdk:"user_schedules"`
	ContextTags               types.Map    `tfsdk:"context_tags"`
	Approvers                 types.List   `tfsdk:"approvers"`
	NumberOfApprovalsRequired types.Int64  `tfsdk:"number_of_approvals_required"`
	UserJobCpu                types.Int64  `tfsdk:"user_job_cpu"`
	UserJobMemory             types.Int64  `tfsdk:"user_job_memory"`
	VcsConfig                 types.Object `tfsdk:"vcs_config"`
	TerraformConfig           types.Object `tfsdk:"terraform_config"`
	DeploymentPlatformConfig  types.List   `tfsdk:"deployment_platform_config"`
	WfStepsConfig             types.List   `tfsdk:"wf_steps_config"`
	VcsTriggers               types.Object `tfsdk:"vcs_triggers"`
}

func (WorkflowGitResourceModel) AttributeTypes

func (m WorkflowGitResourceModel) AttributeTypes(ctx context.Context) map[string]attr.Type

func (WorkflowGitResourceModel) ToAPIModel

func (WorkflowGitResourceModel) ToUpdateAPIModel

Jump to

Keyboard shortcuts

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