provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MPL-2.0 Imports: 17 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 NewAvailableCidrResource

func NewAvailableCidrResource() resource.Resource

Types

type AvailableCidrResource

type AvailableCidrResource struct{}

AvailableCidrResource defines the resource implementation.

func (*AvailableCidrResource) Configure

func (*AvailableCidrResource) Create

func (*AvailableCidrResource) Delete

Delete does not need to explicitly call resp.State.RemoveResource() as this is automatically handled by the [framework](https://github.com/hashicorp/terraform-plugin-framework/pull/301).

func (*AvailableCidrResource) GetSchema

func (*AvailableCidrResource) ImportState

func (*AvailableCidrResource) Metadata

func (*AvailableCidrResource) Read

Read does not need to perform any operations as the state in ReadResourceResponse is already populated.

func (*AvailableCidrResource) Update

Update ensures the plan value is copied to the state to complete the update.

type AvailableCidrResourceModel

type AvailableCidrResourceModel struct {
	Id        types.String `tfsdk:"id"`
	Keepers   types.Map    `tfsdk:"keepers"`
	FromCidrs types.List   `tfsdk:"from_cidrs"`
	UsedCidrs types.List   `tfsdk:"used_cidrs"`
	Mask      types.Int64  `tfsdk:"mask"`
	Result    types.String `tfsdk:"result"`
}

AvailableCidrResourceModel describes the resource data model.

type UtilityProvider

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

UtilityProvider defines the provider implementation.

func (*UtilityProvider) Configure

func (*UtilityProvider) DataSources

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

func (*UtilityProvider) GetSchema

func (*UtilityProvider) Metadata

func (*UtilityProvider) Resources

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

type UtilityProviderModel

type UtilityProviderModel struct{}

UtilityProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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