provider

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MPL-2.0 Imports: 19 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 NewObjectResource

func NewObjectResource() resource.Resource

func NewTypeDataSource

func NewTypeDataSource() datasource.DataSource

Types

type COPProvider

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

COPProvider defines the provider implementation.

func (*COPProvider) Configure

func (*COPProvider) DataSources

func (p *COPProvider) DataSources(_ context.Context) []func() datasource.DataSource

func (*COPProvider) Functions

func (p *COPProvider) Functions(_ context.Context) []func() function.Function

func (*COPProvider) Metadata

func (*COPProvider) Resources

func (p *COPProvider) Resources(_ context.Context) []func() resource.Resource

func (*COPProvider) Schema

Schema defines the provider-level schema for configuration data.

type COPProviderModel

type COPProviderModel struct {
	Username    types.String `tfsdk:"username"`
	Password    types.String `tfsdk:"password"`
	URL         types.String `tfsdk:"url"`
	AuthMethod  types.String `tfsdk:"auth_method"`
	Tenant      types.String `tfsdk:"tenant"`
	SecretsFile types.String `tfsdk:"secrets_file"`
}

COPProviderModel describes the provider data model.

type IsValidJSONString added in v0.0.2

type IsValidJSONString struct {
	JSONString string
}

func (IsValidJSONString) Description added in v0.0.2

func (v IsValidJSONString) Description(_ context.Context) string

func (IsValidJSONString) MarkdownDescription added in v0.0.2

func (v IsValidJSONString) MarkdownDescription(ctx context.Context) string

func (IsValidJSONString) ValidateString added in v0.0.2

func (v IsValidJSONString) ValidateString(ctx context.Context, request validator.StringRequest, response *validator.StringResponse)

type ObjectResource

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

ObjectResource defines the resource implementation.

func (*ObjectResource) Configure

func (*ObjectResource) Create

func (*ObjectResource) Delete

func (*ObjectResource) ImportState

func (*ObjectResource) Metadata

func (*ObjectResource) Read

func (*ObjectResource) Schema

Schema defines the schema for the resource.

func (*ObjectResource) Update

type ObjectResourceModel

type ObjectResourceModel struct {
	TypeName  types.String `tfsdk:"type_name"`
	ObjectID  types.String `tfsdk:"object_id"`
	LayerID   types.String `tfsdk:"layer_id"`
	LayerType types.String `tfsdk:"layer_type"`
	Data      types.String `tfsdk:"data"`
	ImportID  types.String `tfsdk:"import_id"`
	ID        types.String `tfsdk:"id"`
}

ObjectResourceModel describes the resource data model.

type TypeDataSource

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

TypeDataSource defines the data source implementation.

func (*TypeDataSource) Configure

func (*TypeDataSource) Metadata

func (*TypeDataSource) Read

func (*TypeDataSource) Schema

Schema defines the schema for the data source.

type TypeDataSourceModel

type TypeDataSourceModel struct {
	Typename types.String  `tfsdk:"type_name"`
	Data     types.Dynamic `tfsdk:"data"`
	ID       types.String  `tfsdk:"id"`
}

TypeDataSourceModel describes the data source data model.

Jump to

Keyboard shortcuts

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