provider

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewDeploymentResource

func NewDeploymentResource() resource.Resource

func NewDeploymentVariableResource

func NewDeploymentVariableResource() resource.Resource

func NewEnvironmentResource

func NewEnvironmentResource() resource.Resource

func NewJobAgentResource

func NewJobAgentResource() resource.Resource

func NewSystemResource

func NewSystemResource() resource.Resource

Types

type CtrlplaneProvider

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

CtrlplaneProvider defines the provider implementation.

func (*CtrlplaneProvider) Actions

func (p *CtrlplaneProvider) Actions(ctx context.Context) []func() action.Action

func (*CtrlplaneProvider) Configure

func (*CtrlplaneProvider) DataSources

func (p *CtrlplaneProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*CtrlplaneProvider) EphemeralResources

func (p *CtrlplaneProvider) EphemeralResources(ctx context.Context) []func() ephemeral.EphemeralResource

func (*CtrlplaneProvider) Functions

func (p *CtrlplaneProvider) Functions(ctx context.Context) []func() function.Function

func (*CtrlplaneProvider) Metadata

func (*CtrlplaneProvider) Resources

func (p *CtrlplaneProvider) Resources(ctx context.Context) []func() resource.Resource

func (*CtrlplaneProvider) Schema

type CtrlplaneProviderModel

type CtrlplaneProviderModel struct {
	URL       types.String `tfsdk:"url"`
	ApiKey    types.String `tfsdk:"api_key"`
	Workspace types.String `tfsdk:"workspace"`
}

CtrlplaneProviderModel describes the provider data model.

type CustomAttribute

type CustomAttribute struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

type DataSourceModel

type DataSourceModel struct {
	Workspace        uuid.UUID                `tfsdk:"workspace"`
	Client           *api.ClientWithResponses `tfsdk:"client"`
	ID               types.String             `tfsdk:"id"`
	Name             types.String             `tfsdk:"name"`
	ResourceFilter   types.Object             `tfsdk:"resource_filter"`
	CustomAttributes []CustomAttribute        `tfsdk:"custom_attributes"`
}

type DeploymentJobAgentArgoCDModel

type DeploymentJobAgentArgoCDModel struct {
	ApiKey    types.String `tfsdk:"api_key"`
	ServerUrl types.String `tfsdk:"server_url"`
	Template  types.String `tfsdk:"template"`
}

type DeploymentJobAgentGitHubModel

type DeploymentJobAgentGitHubModel struct {
	InstallationId types.Int64  `tfsdk:"installation_id"`
	Owner          types.String `tfsdk:"owner"`
	Ref            types.String `tfsdk:"ref"`
	Repo           types.String `tfsdk:"repo"`
	WorkflowId     types.Int64  `tfsdk:"workflow_id"`
}

type DeploymentJobAgentModel

type DeploymentJobAgentModel struct {
	Id             types.String                       `tfsdk:"id"`
	Priority       types.Int64                        `tfsdk:"priority"`
	Selector       types.String                       `tfsdk:"selector"`
	ArgoCD         *DeploymentJobAgentArgoCDModel     `tfsdk:"argocd"`
	GitHub         *DeploymentJobAgentGitHubModel     `tfsdk:"github"`
	TerraformCloud *DeploymentJobAgentTFCModel        `tfsdk:"terraform_cloud"`
	TestRunner     *DeploymentJobAgentTestRunnerModel `tfsdk:"test_runner"`
}

type DeploymentJobAgentTFCModel

type DeploymentJobAgentTFCModel struct {
	Address      types.String `tfsdk:"address"`
	Organization types.String `tfsdk:"organization"`
	Template     types.String `tfsdk:"template"`
	Token        types.String `tfsdk:"token"`
}

type DeploymentJobAgentTestRunnerModel

type DeploymentJobAgentTestRunnerModel struct {
	DelaySeconds types.Int64  `tfsdk:"delay_seconds"`
	Message      types.String `tfsdk:"message"`
	Status       types.String `tfsdk:"status"`
}

type DeploymentResource

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

func (*DeploymentResource) Configure

func (*DeploymentResource) Create

func (*DeploymentResource) Delete

func (*DeploymentResource) ImportState

func (*DeploymentResource) Metadata

func (*DeploymentResource) Read

func (*DeploymentResource) Schema

func (*DeploymentResource) Update

func (*DeploymentResource) ValidateConfig

type DeploymentResourceModel

type DeploymentResourceModel struct {
	ID               types.String              `tfsdk:"id"`
	SystemId         types.String              `tfsdk:"system_id"`
	Name             types.String              `tfsdk:"name"`
	Metadata         types.Map                 `tfsdk:"metadata"`
	ResourceSelector types.String              `tfsdk:"resource_selector"`
	JobAgent         []DeploymentJobAgentModel `tfsdk:"job_agent"`
}

type DeploymentVariableResource

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

func (*DeploymentVariableResource) Configure

func (*DeploymentVariableResource) Create

func (*DeploymentVariableResource) Delete

func (*DeploymentVariableResource) ImportState

func (*DeploymentVariableResource) Metadata

func (*DeploymentVariableResource) Read

func (*DeploymentVariableResource) Schema

func (*DeploymentVariableResource) Update

type DeploymentVariableResourceModel

type DeploymentVariableResourceModel struct {
	ID           types.String  `tfsdk:"id"`
	DeploymentId types.String  `tfsdk:"deployment_id"`
	Key          types.String  `tfsdk:"key"`
	Description  types.String  `tfsdk:"description"`
	DefaultValue types.Dynamic `tfsdk:"default_value"`
}

type EnvironmentResource

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

func (*EnvironmentResource) Configure

Configure implements resource.ResourceWithConfigure.

func (*EnvironmentResource) Create

Create implements resource.Resource.

func (*EnvironmentResource) Delete

Delete implements resource.Resource.

func (*EnvironmentResource) ImportState

ImportState implements resource.ResourceWithImportState.

func (*EnvironmentResource) Metadata

func (*EnvironmentResource) Read

Read implements resource.Resource.

func (*EnvironmentResource) Schema

Schema implements resource.Resource.

func (*EnvironmentResource) Update

Update implements resource.Resource.

type EnvironmentResourceModel

type EnvironmentResourceModel struct {
	ID               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	SystemId         types.String `tfsdk:"system_id"`
	ResourceSelector types.String `tfsdk:"resource_selector"`
	Description      types.String `tfsdk:"description"`
	Metadata         types.Map    `tfsdk:"metadata"`
}

type JobAgentArgoCDModel

type JobAgentArgoCDModel struct {
	ApiKey    types.String `tfsdk:"api_key"`
	ServerUrl types.String `tfsdk:"server_url"`
	Template  types.String `tfsdk:"template"`
}

type JobAgentCustomModel

type JobAgentCustomModel struct {
	Type   types.String `tfsdk:"type"`
	Config types.Map    `tfsdk:"config"`
}

type JobAgentGitHubModel

type JobAgentGitHubModel struct {
	InstallationId types.Int64  `tfsdk:"installation_id"`
	Owner          types.String `tfsdk:"owner"`
	Ref            types.String `tfsdk:"ref"`
	Repo           types.String `tfsdk:"repo"`
	WorkflowId     types.Int64  `tfsdk:"workflow_id"`
}

type JobAgentResource

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

func (*JobAgentResource) Configure

func (*JobAgentResource) Create

func (*JobAgentResource) Delete

func (*JobAgentResource) ImportState

func (*JobAgentResource) Metadata

func (*JobAgentResource) Read

func (*JobAgentResource) Schema

func (*JobAgentResource) Update

func (*JobAgentResource) ValidateConfig

type JobAgentResourceModel

type JobAgentResourceModel struct {
	ID             types.String              `tfsdk:"id"`
	Name           types.String              `tfsdk:"name"`
	Metadata       types.Map                 `tfsdk:"metadata"`
	Custom         []JobAgentCustomModel     `tfsdk:"custom"`
	ArgoCD         []JobAgentArgoCDModel     `tfsdk:"argocd"`
	GitHub         []JobAgentGitHubModel     `tfsdk:"github"`
	TerraformCloud []JobAgentTFCModel        `tfsdk:"terraform_cloud"`
	TestRunner     []JobAgentTestRunnerModel `tfsdk:"test_runner"`
}

type JobAgentTFCModel

type JobAgentTFCModel struct {
	Address      types.String `tfsdk:"address"`
	Organization types.String `tfsdk:"organization"`
	Template     types.String `tfsdk:"template"`
	Token        types.String `tfsdk:"token"`
}

type JobAgentTestRunnerModel

type JobAgentTestRunnerModel struct {
	DelaySeconds types.Int64  `tfsdk:"delay_seconds"`
	Message      types.String `tfsdk:"message"`
	Status       types.String `tfsdk:"status"`
}

type SystemResource

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

func (*SystemResource) Configure

Configure implements resource.ResourceWithConfigure.

func (*SystemResource) Create

Create implements resource.Resource.

func (*SystemResource) Delete

Delete implements resource.Resource.

func (*SystemResource) ImportState

ImportState implements resource.ResourceWithImportState.

func (*SystemResource) Metadata

func (*SystemResource) Read

Read implements resource.Resource.

func (*SystemResource) Schema

Schema implements resource.Resource.

func (*SystemResource) Update

Update implements resource.Resource.

type SystemResourceModel

type SystemResourceModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Metadata    types.Map    `tfsdk:"metadata"`
}

Jump to

Keyboard shortcuts

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