provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 21 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 NewAttributeGroupResource

func NewAttributeGroupResource() resource.Resource

func NewAttributeOptionResource

func NewAttributeOptionResource() resource.Resource

func NewAttributeResource

func NewAttributeResource() resource.Resource

func NewFamilyResource

func NewFamilyResource() resource.Resource

func NewFamilyVariantResource

func NewFamilyVariantResource() resource.Resource

Types

type AkeneoProvider

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

AkeneoProvider defines the provider implementation.

func (*AkeneoProvider) Configure

func (*AkeneoProvider) DataSources

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

func (*AkeneoProvider) Metadata

func (*AkeneoProvider) Resources

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

func (*AkeneoProvider) Schema

type AkeneoProviderModel

type AkeneoProviderModel struct {
	Host                types.String `tfsdk:"host"`
	UnsecureApi         types.Bool   `tfsdk:"unsecure_api"`
	ApiUsername         types.String `tfsdk:"api_username"`
	ApiPassword         types.String `tfsdk:"api_password"`
	ApiClientId         types.String `tfsdk:"api_client_id"`
	ApiSecret           types.String `tfsdk:"api_client_secret"`
	ExtraAttributeTypes types.List   `tfsdk:"extra_attribute_types"`
}

AkeneoProviderModel describes the provider data model.

type AttributeGroupResource

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

AttributeGroupResource defines the resource implementation.

func (*AttributeGroupResource) Configure

func (*AttributeGroupResource) Create

func (*AttributeGroupResource) Delete

func (*AttributeGroupResource) ImportState

func (*AttributeGroupResource) Metadata

func (*AttributeGroupResource) Read

func (*AttributeGroupResource) Schema

func (*AttributeGroupResource) Update

type AttributeGroupResourceModel

type AttributeGroupResourceModel struct {
	Code      types.String `tfsdk:"code"`
	SortOrder types.Int64  `tfsdk:"sort_order"`
	Labels    types.Map    `tfsdk:"labels"`
}

AttributeGroupResourceModel describes the resource data model.

type AttributeOptionResource

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

AttributeOptionResource defines the resource implementation.

func (*AttributeOptionResource) Configure

func (*AttributeOptionResource) Create

func (*AttributeOptionResource) Delete

func (*AttributeOptionResource) ImportState

func (*AttributeOptionResource) Metadata

func (*AttributeOptionResource) Read

func (*AttributeOptionResource) Schema

func (*AttributeOptionResource) Update

type AttributeOptionResourceModel

type AttributeOptionResourceModel struct {
	Code      types.String `tfsdk:"code"`
	Attribute types.String `tfsdk:"attribute"`
	SortOrder types.Int64  `tfsdk:"sort_order"`
	Labels    types.Map    `tfsdk:"labels"`
}

AttributeOptionResourceModel describes the resource data model.

type AttributeResource

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

AttributeResource defines the resource implementation.

func (*AttributeResource) Configure

func (*AttributeResource) Create

func (*AttributeResource) Delete

func (*AttributeResource) ImportState

func (*AttributeResource) Metadata

func (*AttributeResource) Read

func (*AttributeResource) Schema

func (*AttributeResource) Update

type AttributeResourceModel

type AttributeResourceModel struct {
	Code                types.String `tfsdk:"code"`
	Type                types.String `tfsdk:"type"`
	Labels              types.Map    `tfsdk:"labels"`
	Group               types.String `tfsdk:"group"`
	GroupLabels         types.Map    `tfsdk:"group_labels"`
	SortOrder           types.Int64  `tfsdk:"sort_order"`
	Localizable         types.Bool   `tfsdk:"localizable"`
	Scopable            types.Bool   `tfsdk:"scopable"`
	AvailableLocales    types.List   `tfsdk:"available_locales"`
	Unique              types.Bool   `tfsdk:"unique"`
	UseableAsGridFilter types.Bool   `tfsdk:"useable_as_grid_filter"`
	MaxCharacters       types.Int64  `tfsdk:"max_characters"`
	ValidationRule      types.String `tfsdk:"validation_rule"`
	ValidationRegexp    types.String `tfsdk:"validation_regexp"`
	WysiwygEnabled      types.Bool   `tfsdk:"wysiwyg_enabled"`
	NumberMin           types.Number `tfsdk:"number_min"`
	NumberMax           types.Number `tfsdk:"number_max"`
	DecimalsAllowed     types.Bool   `tfsdk:"decimals_allowed"`
	NegativeAllowed     types.Bool   `tfsdk:"negative_allowed"`
	MetricFamily        types.String `tfsdk:"metric_family"`
	DefaultMetricUnit   types.String `tfsdk:"default_metric_unit"`
	DateMin             types.String `tfsdk:"date_min"`
	DateMax             types.String `tfsdk:"date_max"`
	AllowedExtensions   types.List   `tfsdk:"allowed_extensions"`
	MaxFileSize         types.Int64  `tfsdk:"max_file_size"`
	ReferenceDataName   types.String `tfsdk:"reference_data_name"`
	DefaultValue        types.Bool   `tfsdk:"default_value"`
	TableConfiguration  types.List   `tfsdk:"table_configuration"`
}

AttributeResourceModel describes the resource data model.

type DataSourceData

type DataSourceData struct {
	Client *goakeneo.Client
}

type FamilyResource

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

FamilyResource defines the resource implementation.

func (*FamilyResource) Configure

func (*FamilyResource) Create

func (*FamilyResource) Delete

func (*FamilyResource) ImportState

func (*FamilyResource) Metadata

func (*FamilyResource) Read

func (*FamilyResource) Schema

func (*FamilyResource) Update

type FamilyResourceModel

type FamilyResourceModel struct {
	Code                  types.String `tfsdk:"code"`
	Labels                types.Map    `tfsdk:"labels"`
	Attributes            types.List   `tfsdk:"attributes"`
	AttributeAsLabel      types.String `tfsdk:"attribute_as_label"`
	AttributeAsImage      types.String `tfsdk:"attribute_as_image"`
	AttributeRequirements types.Map    `tfsdk:"attribute_requirements"`
}

FamilyResourceModel describes the resource data model.

type FamilyVariantResource

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

FamilyVariantResource defines the resource implementation.

func (*FamilyVariantResource) Configure

func (*FamilyVariantResource) Create

func (*FamilyVariantResource) Delete

func (*FamilyVariantResource) ImportState

func (*FamilyVariantResource) Metadata

func (*FamilyVariantResource) Read

func (*FamilyVariantResource) Schema

func (*FamilyVariantResource) Update

type FamilyVariantResourceModel

type FamilyVariantResourceModel struct {
	FamilyCode           types.String               `tfsdk:"family_code"`
	Code                 types.String               `tfsdk:"code"`
	Labels               types.Map                  `tfsdk:"labels"`
	VariantAttributeSets []VariantAttributeSetModel `tfsdk:"variant_attribute_sets"`
}

FamilyVariantResourceModel describes the resource data model.

type ResourceData

type ResourceData struct {
	Client *goakeneo.Client
}

type VariantAttributeSetModel

type VariantAttributeSetModel struct {
	Level      types.Int64 `tfsdk:"level"`
	Axes       types.List  `tfsdk:"axes"`
	Attributes types.List  `tfsdk:"attributes"`
}

Jump to

Keyboard shortcuts

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