provider

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildComputedFieldsSchema

func BuildComputedFieldsSchema() schema.ListNestedAttribute

func BuildFieldsSchema

func BuildFieldsSchema() schema.SetNestedAttribute

func New

func New(version, commit, date string) func() provider.Provider

func NewEnvironmentDataSource added in v0.3.0

func NewEnvironmentDataSource() datasource.DataSource

func NewEnvironmentResource added in v0.3.0

func NewEnvironmentResource() resource.Resource

func NewGlobalFieldDataSource

func NewGlobalFieldDataSource() datasource.DataSource

func NewGlobalFieldResource

func NewGlobalFieldResource() resource.Resource

Types

type ContentStackProvider

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

ContentStackProvider defines the provider implementation.

func (*ContentStackProvider) Configure

func (*ContentStackProvider) DataSources

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

func (*ContentStackProvider) Metadata

func (*ContentStackProvider) Resources

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

func (*ContentStackProvider) Schema

type ContentStackProviderModel

type ContentStackProviderModel struct {
	Host            types.String `tfsdk:"host"`
	ApiKey          types.String `tfsdk:"api_key"`
	ManagementToken types.String `tfsdk:"management_token"`
	Debug           types.Bool   `tfsdk:"debug"`
}

ContentStackProviderModel describes the provider data model.

type EnvironmentDataSource added in v0.3.0

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

EnvironmentDataSource defines the data source implementation.

func (*EnvironmentDataSource) Configure added in v0.3.0

func (*EnvironmentDataSource) Metadata added in v0.3.0

func (*EnvironmentDataSource) Read added in v0.3.0

func (*EnvironmentDataSource) Schema added in v0.3.0

type EnvironmentDataSourceModel added in v0.3.0

type EnvironmentDataSourceModel struct {
	Name          types.String `tfsdk:"name"`
	URLs          types.Map    `tfsdk:"urls"`
	ID            types.String `tfsdk:"id"`
	UID           types.String `tfsdk:"uid"`
	CreatedAt     types.String `tfsdk:"created_at"`
	UpdatedAt     types.String `tfsdk:"updated_at"`
	Version       types.Int64  `tfsdk:"version"`
	DeployContent types.Bool   `tfsdk:"deploy_content"`
}

EnvironmentDataSourceModel describes the data source data model.

type EnvironmentResource added in v0.3.0

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

EnvironmentResource defines the resource implementation.

func (*EnvironmentResource) Configure added in v0.3.0

func (*EnvironmentResource) Create added in v0.3.0

func (*EnvironmentResource) Delete added in v0.3.0

func (*EnvironmentResource) ImportState added in v0.3.0

func (*EnvironmentResource) Metadata added in v0.3.0

func (*EnvironmentResource) Read added in v0.3.0

func (*EnvironmentResource) Schema added in v0.3.0

func (*EnvironmentResource) Update added in v0.3.0

type EnvironmentResourceModel added in v0.3.0

type EnvironmentResourceModel struct {
	Name          types.String `tfsdk:"name"`
	URLsByLocale  types.Map    `tfsdk:"urls"`
	ID            types.String `tfsdk:"id"`
	UID           types.String `tfsdk:"uid"`
	CreatedAt     types.String `tfsdk:"created_at"`
	UpdatedAt     types.String `tfsdk:"updated_at"`
	Version       types.Int64  `tfsdk:"version"`
	DeployContent types.Bool   `tfsdk:"deploy_content"`
}

EnvironmentResourceModel describes the resource data model.

func (*EnvironmentResourceModel) Export added in v0.3.0

func (*EnvironmentResourceModel) Update added in v0.3.0

type GlobalFieldDataSource

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

GlobalFieldDataSource defines the data source implementation.

func (*GlobalFieldDataSource) Configure

func (*GlobalFieldDataSource) Metadata

func (*GlobalFieldDataSource) Read

func (*GlobalFieldDataSource) Schema

type GlobalFieldDataSourceModel

type GlobalFieldDataSourceModel struct {
	CreatedAt   types.String                 `tfsdk:"created_at"`
	Description types.String                 `tfsdk:"description"`
	Fields      []SchemaFieldDataSourceModel `tfsdk:"field"`
	ID          types.String                 `tfsdk:"id"`
	Title       types.String                 `tfsdk:"title"`
	UID         types.String                 `tfsdk:"uid"`
	UpdatedAt   types.String                 `tfsdk:"updated_at"`
}

GlobalFieldDataSourceModel describes the data source data model.

type GlobalFieldResource

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

GlobalFieldResource defines the resource implementation.

func (*GlobalFieldResource) Configure

func (*GlobalFieldResource) Create

func (*GlobalFieldResource) Delete

func (*GlobalFieldResource) ImportState

func (*GlobalFieldResource) Metadata

func (*GlobalFieldResource) Read

func (*GlobalFieldResource) Schema

func (*GlobalFieldResource) Update

type GlobalFieldResourceModel

type GlobalFieldResourceModel struct {
	Description types.String                          `tfsdk:"description"`
	Fields      []GlobalFieldSchemaFieldResourceModel `tfsdk:"fields"`
	ID          types.String                          `tfsdk:"id"`
	Title       types.String                          `tfsdk:"title"`
	UID         types.String                          `tfsdk:"uid"`
}

GlobalFieldResourceModel describes the resource data model.

func (*GlobalFieldResourceModel) Export

func (*GlobalFieldResourceModel) Update

func (data *GlobalFieldResourceModel) Update(g *cschema.GlobalField)

type GlobalFieldSchemaFieldResourceModel

type GlobalFieldSchemaFieldResourceModel struct {
	DataType    types.String `tfsdk:"data_type"`
	Description types.String `tfsdk:"description"`
	DisplayName types.String `tfsdk:"display_name"`
	DefaultText types.String `tfsdk:"default_text"`
	DefaultBool types.Bool   `tfsdk:"default_bool"`
	Format      types.String `tfsdk:"format"`
	Mandatory   types.Bool   `tfsdk:"mandatory"`
	Multiple    types.Bool   `tfsdk:"multiple"`
	Placeholder types.String `tfsdk:"placeholder"`
	Instruction types.String `tfsdk:"instruction"`
	Uid         types.String `tfsdk:"uid"`
	Unique      types.Bool   `tfsdk:"unique"`
}

func (*GlobalFieldSchemaFieldResourceModel) Export

func (*GlobalFieldSchemaFieldResourceModel) Update

type SchemaFieldDataSourceModel

type SchemaFieldDataSourceModel struct {
	//Blocks         []BlockSet     `tfsdk:"blocks,omitempty"`
	DataType    string             `tfsdk:"data_type"`
	DisplayName string             `tfsdk:"display_name"`
	DisplayType *string            `tfsdk:"display_type,omitempty"`
	Enum        *cschema.EnumField `tfsdk:"enum,omitempty"`
	//ErrorMessages  *ErrorMessages `tfsdk:"error_messages,omitempty"`
	//FieldMetadata  FieldMetadata  `tfsdk:"field_metadata"`
	Format         *string `tfsdk:"format,omitempty"`
	InbuiltModel   *bool   `tfsdk:"inbuilt_model,omitempty"`
	Indexed        *bool   `tfsdk:"indexed,omitempty"`
	Mandatory      bool    `tfsdk:"mandatory"`
	Multiple       bool    `tfsdk:"multiple"`
	NonLocalizable *bool   `tfsdk:"non_localizable,omitempty"`
	//ReferenceTo    StrArray       `tfsdk:"reference_to,omitempty"`
	Uid    string `tfsdk:"uid"`
	Unique *bool  `tfsdk:"unique,omitempty"`
}

Jump to

Keyboard shortcuts

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