category

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCategory

func DeleteCategory(ctx context.Context, client pim.ClientWithResponsesInterface, resource *Category) diag.Diagnostic

func NewDataSource

func NewDataSource() datasource.DataSource

func NewResource

func NewResource() resource.Resource

Types

type Category

type Category struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Number      types.String `tfsdk:"number"`
	Description types.String `tfsdk:"description"`
	ParentId    types.String `tfsdk:"parent_id"`
}

Category describes the data source data model.

func CreateCategory

func CreateCategory(ctx context.Context, client pim.ClientWithResponsesInterface, resource *Category) (*Category, diag.Diagnostic)

func UpdateCategory

func UpdateCategory(ctx context.Context, client pim.ClientWithResponsesInterface, current *Category, planned *Category) (*Category, diag.Diagnostic)

type DataSource

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

DataSource defines the data source implementation.

func (*DataSource) Configure

func (*DataSource) Metadata

func (*DataSource) Read

func (*DataSource) Schema

type Resource

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

func (*Resource) Configure

Configure adds the provider configured client to the data source.

func (*Resource) Create

Create creates the resource and sets the initial Terraform state.

func (*Resource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*Resource) ImportState

func (*Resource) Metadata

Metadata returns the data source type name.

func (*Resource) Read

Read refreshes the Terraform state with the latest data.

func (*Resource) Schema

Schema defines the schema for the data source.

func (*Resource) Update

Update updates the resource and sets the updated Terraform state on success.

Jump to

Keyboard shortcuts

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