waypoint

package
v0.94.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActionDataSource added in v0.93.0

func NewActionDataSource() datasource.DataSource

func NewActionResource added in v0.93.0

func NewActionResource() resource.Resource

func NewAddOnDataSource added in v0.87.0

func NewAddOnDataSource() datasource.DataSource

func NewAddOnDefinitionDataSource

func NewAddOnDefinitionDataSource() datasource.DataSource

func NewAddOnDefinitionResource

func NewAddOnDefinitionResource() resource.Resource

func NewAddOnResource added in v0.87.0

func NewAddOnResource() resource.Resource

func NewApplicationDataSource added in v0.85.0

func NewApplicationDataSource() datasource.DataSource

func NewApplicationResource added in v0.85.0

func NewApplicationResource() resource.Resource

func NewTemplateDataSource added in v0.93.0

func NewTemplateDataSource() datasource.DataSource

func NewTemplateResource added in v0.93.0

func NewTemplateResource() resource.Resource

func NewTfcConfigResource

func NewTfcConfigResource() resource.Resource

Types

type ActionResource added in v0.93.0

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

func (*ActionResource) Configure added in v0.93.0

func (*ActionResource) Create added in v0.93.0

func (*ActionResource) Delete added in v0.93.0

func (*ActionResource) ImportState added in v0.93.0

func (*ActionResource) Metadata added in v0.93.0

func (*ActionResource) Read added in v0.93.0

func (*ActionResource) Schema added in v0.93.0

func (*ActionResource) Update added in v0.93.0

type ActionResourceModel added in v0.93.0

type ActionResourceModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	ProjectID   types.String `tfsdk:"project_id"`
	OrgID       types.String `tfsdk:"organization_id"`
	Description types.String `tfsdk:"description"`

	Request *actionRequest `tfsdk:"request"`
}

ActionModel describes the resource data model.

type AddOnDataSourceModel added in v0.94.0

type AddOnDataSourceModel struct {
	ID             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	ProjectID      types.String `tfsdk:"project_id"`
	OrgID          types.String `tfsdk:"organization_id"`
	Summary        types.String `tfsdk:"summary"`
	Labels         types.List   `tfsdk:"labels"`
	Description    types.String `tfsdk:"description"`
	ReadmeMarkdown types.String `tfsdk:"readme_markdown"`
	CreatedBy      types.String `tfsdk:"created_by"`
	Count          types.Int64  `tfsdk:"install_count"`
	Status         types.Int64  `tfsdk:"status"`
	ApplicationID  types.String `tfsdk:"application_id"`
	DefinitionID   types.String `tfsdk:"definition_id"`
	OutputValues   types.List   `tfsdk:"output_values"`

	TerraformNoCodeModule types.Object `tfsdk:"terraform_no_code_module"`

	InputVars types.Set `tfsdk:"input_variables"`
}

AddOnDataSourceModel describes the data source data model.

type AddOnDefinitionResource

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

AddOnDefinitionResource defines the resource implementation.

func (*AddOnDefinitionResource) Configure

func (*AddOnDefinitionResource) Create

func (*AddOnDefinitionResource) Delete

func (*AddOnDefinitionResource) ImportState

func (*AddOnDefinitionResource) Metadata

func (*AddOnDefinitionResource) Read

func (*AddOnDefinitionResource) Schema

func (*AddOnDefinitionResource) Update

type AddOnDefinitionResourceModel

type AddOnDefinitionResourceModel struct {
	ID                     types.String `tfsdk:"id"`
	Name                   types.String `tfsdk:"name"`
	ProjectID              types.String `tfsdk:"project_id"`
	OrgID                  types.String `tfsdk:"organization_id"`
	Summary                types.String `tfsdk:"summary"`
	Labels                 types.List   `tfsdk:"labels"`
	Description            types.String `tfsdk:"description"`
	ReadmeMarkdownTemplate types.String `tfsdk:"readme_markdown_template"`

	TerraformCloudWorkspace  *tfcWorkspace        `tfsdk:"terraform_cloud_workspace_details"`
	TerraformNoCodeModule    *tfcNoCodeModule     `tfsdk:"terraform_no_code_module"`
	TerraformVariableOptions []*tfcVariableOption `tfsdk:"variable_options"`
}

AddOnDefinitionResourceModel describes the resource data model.

type AddOnResource added in v0.87.0

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

AddOnResource defines the resource implementation.

func (*AddOnResource) Configure added in v0.87.0

func (*AddOnResource) Create added in v0.87.0

TODO: Add support for new fields

func (*AddOnResource) Delete added in v0.87.0

func (*AddOnResource) ImportState added in v0.87.0

func (*AddOnResource) Metadata added in v0.87.0

func (*AddOnResource) Read added in v0.87.0

TODO: Add support for new fields

func (*AddOnResource) Schema added in v0.87.0

TODO: Make most of these computed because they are not used in the protos (Also add variables later)

func (*AddOnResource) Update added in v0.87.0

type AddOnResourceModel added in v0.87.0

type AddOnResourceModel struct {
	ID             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	ProjectID      types.String `tfsdk:"project_id"`
	OrgID          types.String `tfsdk:"organization_id"`
	Summary        types.String `tfsdk:"summary"`
	Labels         types.List   `tfsdk:"labels"`
	Description    types.String `tfsdk:"description"`
	ReadmeMarkdown types.String `tfsdk:"readme_markdown"`
	CreatedBy      types.String `tfsdk:"created_by"`
	Count          types.Int64  `tfsdk:"install_count"`
	Status         types.Int64  `tfsdk:"status"`
	ApplicationID  types.String `tfsdk:"application_id"`
	DefinitionID   types.String `tfsdk:"definition_id"`
	OutputValues   types.List   `tfsdk:"output_values"`

	TerraformNoCodeModule types.Object `tfsdk:"terraform_no_code_module"`

	InputVars                types.Set `tfsdk:"add_on_input_variables"`
	AddOnDefinitionInputVars types.Set `tfsdk:"add_on_definition_input_variables"`
}

AddOnResourceModel describes the resource data model.

type ApplicationDataSourceModel added in v0.91.0

type ApplicationDataSourceModel struct {
	ID             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	ProjectID      types.String `tfsdk:"project_id"`
	OrgID          types.String `tfsdk:"organization_id"`
	ReadmeMarkdown types.String `tfsdk:"readme_markdown"`
	TemplateID     types.String `tfsdk:"template_id"`
	TemplateName   types.String `tfsdk:"template_name"`
	NamespaceID    types.String `tfsdk:"namespace_id"`

	InputVars types.Set `tfsdk:"input_variables"`
}

ApplicationDataSourceModel describes the data source data model

type ApplicationResource added in v0.85.0

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

ApplicationResource defines the resource implementation.

func (*ApplicationResource) Configure added in v0.85.0

func (*ApplicationResource) Create added in v0.85.0

func (*ApplicationResource) Delete added in v0.85.0

func (*ApplicationResource) ImportState added in v0.85.0

func (*ApplicationResource) Metadata added in v0.85.0

func (*ApplicationResource) Read added in v0.85.0

func (*ApplicationResource) Schema added in v0.85.0

func (*ApplicationResource) Update added in v0.85.0

type ApplicationResourceModel added in v0.85.0

type ApplicationResourceModel struct {
	ID             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	ProjectID      types.String `tfsdk:"project_id"`
	OrgID          types.String `tfsdk:"organization_id"`
	ReadmeMarkdown types.String `tfsdk:"readme_markdown"`
	TemplateID     types.String `tfsdk:"template_id"`
	TemplateName   types.String `tfsdk:"template_name"`
	NamespaceID    types.String `tfsdk:"namespace_id"`

	InputVars types.Set `tfsdk:"application_input_variables"`

	// NOTE: At the time of writing this comment, TemplateInputVars is the only
	// struct field that makes ApplicationResourceModel different from ApplicationDataSourceModel.
	// One might see an opportunity here to use an embedded struct to avoid code duplication;
	// however, this is not currently possible in the framework. See this issue for more details:
	// https://github.com/hashicorp/terraform-plugin-framework/issues/242
	TemplateInputVars types.Set `tfsdk:"template_input_variables"`
}

ApplicationResourceModel describes the resource data model.

type DataSourceAction added in v0.93.0

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

func (DataSourceAction) ConfigValidators added in v0.93.0

func (d DataSourceAction) ConfigValidators(ctx context.Context) []datasource.ConfigValidator

func (*DataSourceAction) Configure added in v0.93.0

func (*DataSourceAction) Metadata added in v0.93.0

func (*DataSourceAction) Read added in v0.93.0

func (*DataSourceAction) Schema added in v0.93.0

type DataSourceAddOn added in v0.87.0

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

func (DataSourceAddOn) ConfigValidators added in v0.87.0

func (d DataSourceAddOn) ConfigValidators(ctx context.Context) []datasource.ConfigValidator

func (*DataSourceAddOn) Configure added in v0.87.0

func (*DataSourceAddOn) Metadata added in v0.87.0

func (*DataSourceAddOn) Read added in v0.87.0

TODO: Output values?

func (*DataSourceAddOn) Schema added in v0.87.0

type DataSourceAddOnDefinition

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

func (DataSourceAddOnDefinition) ConfigValidators

func (*DataSourceAddOnDefinition) Configure

func (*DataSourceAddOnDefinition) Metadata

func (*DataSourceAddOnDefinition) Read

func (*DataSourceAddOnDefinition) Schema

type DataSourceAddOnDefinitionModel

type DataSourceAddOnDefinitionModel struct {
	ID                     types.String `tfsdk:"id"`
	Name                   types.String `tfsdk:"name"`
	ProjectID              types.String `tfsdk:"project_id"`
	OrgID                  types.String `tfsdk:"organization_id"`
	Summary                types.String `tfsdk:"summary"`
	Labels                 types.List   `tfsdk:"labels"`
	Description            types.String `tfsdk:"description"`
	ReadmeMarkdownTemplate types.String `tfsdk:"readme_markdown_template"`

	TerraformCloudWorkspace  *tfcWorkspace        `tfsdk:"terraform_cloud_workspace_details"`
	TerraformNoCodeModule    *tfcNoCodeModule     `tfsdk:"terraform_no_code_module"`
	TerraformVariableOptions []*tfcVariableOption `tfsdk:"variable_options"`
}

type DataSourceApplication added in v0.85.0

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

func (DataSourceApplication) ConfigValidators added in v0.85.0

func (*DataSourceApplication) Configure added in v0.85.0

func (*DataSourceApplication) Metadata added in v0.85.0

func (*DataSourceApplication) Read added in v0.85.0

func (*DataSourceApplication) Schema added in v0.85.0

type DataSourceTemplate added in v0.93.0

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

func (DataSourceTemplate) ConfigValidators added in v0.93.0

func (d DataSourceTemplate) ConfigValidators(ctx context.Context) []datasource.ConfigValidator

func (*DataSourceTemplate) Configure added in v0.93.0

func (*DataSourceTemplate) Metadata added in v0.93.0

func (*DataSourceTemplate) Read added in v0.93.0

func (*DataSourceTemplate) Schema added in v0.93.0

type DataSourceTemplateModel added in v0.93.0

type DataSourceTemplateModel struct {
	ID                     types.String `tfsdk:"id"`
	Name                   types.String `tfsdk:"name"`
	ProjectID              types.String `tfsdk:"project_id"`
	OrgID                  types.String `tfsdk:"organization_id"`
	Summary                types.String `tfsdk:"summary"`
	Labels                 types.List   `tfsdk:"labels"`
	Description            types.String `tfsdk:"description"`
	ReadmeMarkdownTemplate types.String `tfsdk:"readme_markdown_template"`

	TerraformCloudWorkspace *tfcWorkspace        `tfsdk:"terraform_cloud_workspace_details"`
	TerraformNoCodeModule   *tfcNoCodeModule     `tfsdk:"terraform_no_code_module"`
	VariableOptions         []*tfcVariableOption `tfsdk:"variable_options"`
}

type InputVar added in v0.91.0

type InputVar struct {
	Name         types.String `tfsdk:"name"`
	VariableType types.String `tfsdk:"variable_type"`
	Value        types.String `tfsdk:"value"`
}

type TemplateResource added in v0.93.0

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

TemplateResource defines the resource implementation.

func (*TemplateResource) Configure added in v0.93.0

func (*TemplateResource) Create added in v0.93.0

func (*TemplateResource) Delete added in v0.93.0

func (*TemplateResource) ImportState added in v0.93.0

func (*TemplateResource) Metadata added in v0.93.0

func (*TemplateResource) Read added in v0.93.0

func (*TemplateResource) Schema added in v0.93.0

func (*TemplateResource) Update added in v0.93.0

type TemplateResourceModel added in v0.93.0

type TemplateResourceModel struct {
	ID                     types.String `tfsdk:"id"`
	Name                   types.String `tfsdk:"name"`
	ProjectID              types.String `tfsdk:"project_id"`
	OrgID                  types.String `tfsdk:"organization_id"`
	Summary                types.String `tfsdk:"summary"`
	Labels                 types.List   `tfsdk:"labels"`
	Description            types.String `tfsdk:"description"`
	ReadmeMarkdownTemplate types.String `tfsdk:"readme_markdown_template"`

	TerraformCloudWorkspace  *tfcWorkspace        `tfsdk:"terraform_cloud_workspace_details"`
	TerraformNoCodeModule    *tfcNoCodeModule     `tfsdk:"terraform_no_code_module"`
	TerraformVariableOptions []*tfcVariableOption `tfsdk:"variable_options"`
}

TemplateResourceModel describes the resource data model.

type TfcConfigResource

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

TfcConfigResource defines the resource implementation.

func (*TfcConfigResource) Configure

func (*TfcConfigResource) Create

func (*TfcConfigResource) Delete

func (*TfcConfigResource) Metadata

func (*TfcConfigResource) Read

func (*TfcConfigResource) Schema

func (*TfcConfigResource) Update

type TfcConfigResourceModel

type TfcConfigResourceModel struct {
	// note: there is no true ID in the TFC Config, and each HCP Waypoint
	// organization has only 1 TFC Config, so we use the TFC Organization name
	// as an ID.
	ID         types.String `tfsdk:"id"`
	ProjectID  types.String `tfsdk:"project_id"`
	Token      types.String `tfsdk:"token"`
	TfcOrgName types.String `tfsdk:"tfc_org_name"`
}

TfcConfigResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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