provider

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateSignature added in v0.0.8

func CalculateSignature(req *http.Request, apiKey, secretKey string, timestamp time.Time) string

Calculate the HMAC signature for the request.

func New

func New(version string) func() provider.Provider

func NewAssetDataSource added in v0.0.5

func NewAssetDataSource() datasource.DataSource

func NewAssetResource added in v0.0.5

func NewAssetResource() resource.Resource

func NewExampleDataSource

func NewExampleDataSource() datasource.DataSource

func NewExampleResource

func NewExampleResource() resource.Resource

Types

type AssetDataSource added in v0.0.5

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

ExampleDataSource defines the data source implementation.

func (*AssetDataSource) Configure added in v0.0.5

func (*AssetDataSource) Metadata added in v0.0.5

func (*AssetDataSource) Read added in v0.0.5

func (*AssetDataSource) Schema added in v0.0.5

type AssetDataSourceModel added in v0.0.5

type AssetDataSourceModel struct {
	ConfigurableAttribute types.String `tfsdk:"configurable_attribute"`
	Id                    types.String `tfsdk:"id"`
}

ExampleDataSourceModel describes the data source data model.

type AssetResource added in v0.0.5

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

AssetResource defines the resource implementation.

func (*AssetResource) Configure added in v0.0.5

func (*AssetResource) Create added in v0.0.5

func (*AssetResource) Delete added in v0.0.5

func (*AssetResource) ImportState added in v0.0.5

func (*AssetResource) Metadata added in v0.0.5

func (*AssetResource) Read added in v0.0.5

func (*AssetResource) Schema added in v0.0.5

func (*AssetResource) Update added in v0.0.5

type AssetResourceModel added in v0.0.5

type AssetResourceModel struct {
	ConfigurableAttribute types.String `tfsdk:"configurable_attribute"`
	Defaulted             types.String `tfsdk:"defaulted"`
	Id                    types.String `tfsdk:"id"`
}

AssetResourceModel describes the resource data model.

type DetectifyProvider added in v0.0.5

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

DetectifyProvider defines the provider implementation.

func (*DetectifyProvider) Configure added in v0.0.5

func (*DetectifyProvider) DataSources added in v0.0.5

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

DataSources defines the data sources implemented in the provider.

func (*DetectifyProvider) Metadata added in v0.0.5

func (*DetectifyProvider) Resources added in v0.0.5

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

Resources defines the resources implemented in the provider.

func (*DetectifyProvider) Schema added in v0.0.5

type DetectifyProviderData added in v0.0.8

type DetectifyProviderData struct {
	Client *http.Client
	Secret string
}

DetectifyProviderData is used by resources and datasources to complete requests.

type DetectifyProviderModel added in v0.0.5

type DetectifyProviderModel struct {
	APIKey types.String `tfsdk:"api_key"`
	Secret types.String `tfsdk:"secret"`
}

DetectifyProviderModel describes the provider data model.

type ExampleDataSource

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

ExampleDataSource defines the data source implementation.

func (*ExampleDataSource) Configure

func (*ExampleDataSource) Metadata

func (*ExampleDataSource) Read

func (*ExampleDataSource) Schema

type ExampleDataSourceModel

type ExampleDataSourceModel struct {
	ConfigurableAttribute types.String `tfsdk:"configurable_attribute"`
	Id                    types.String `tfsdk:"id"`
}

ExampleDataSourceModel describes the data source data model.

type ExampleResource

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

ExampleResource defines the resource implementation.

func (*ExampleResource) Configure

func (*ExampleResource) Create

func (*ExampleResource) Delete

func (*ExampleResource) ImportState

func (*ExampleResource) Metadata

func (*ExampleResource) Read

func (*ExampleResource) Schema

func (*ExampleResource) Update

type ExampleResourceModel

type ExampleResourceModel struct {
	ConfigurableAttribute types.String `tfsdk:"configurable_attribute"`
	Defaulted             types.String `tfsdk:"defaulted"`
	Id                    types.String `tfsdk:"id"`
}

ExampleResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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