Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewAvailableCidrResource() resource.Resource
- type AvailableCidrResource
- func (r *AvailableCidrResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *AvailableCidrResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *AvailableCidrResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *AvailableCidrResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (r *AvailableCidrResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *AvailableCidrResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *AvailableCidrResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *AvailableCidrResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type AvailableCidrResourceModel
- type UtilityProvider
- func (p *UtilityProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *UtilityProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *UtilityProvider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (p *UtilityProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *UtilityProvider) Resources(ctx context.Context) []func() resource.Resource
- type UtilityProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AvailableCidrResource ¶
type AvailableCidrResource struct{}
AvailableCidrResource defines the resource implementation.
func (*AvailableCidrResource) Configure ¶
func (r *AvailableCidrResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*AvailableCidrResource) Create ¶
func (r *AvailableCidrResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*AvailableCidrResource) Delete ¶
func (r *AvailableCidrResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
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 (r *AvailableCidrResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*AvailableCidrResource) ImportState ¶
func (r *AvailableCidrResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*AvailableCidrResource) Metadata ¶
func (r *AvailableCidrResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*AvailableCidrResource) Read ¶
func (r *AvailableCidrResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read does not need to perform any operations as the state in ReadResourceResponse is already populated.
func (*AvailableCidrResource) Update ¶
func (r *AvailableCidrResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (p *UtilityProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*UtilityProvider) DataSources ¶
func (p *UtilityProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*UtilityProvider) GetSchema ¶
func (p *UtilityProvider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*UtilityProvider) Metadata ¶
func (p *UtilityProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
type UtilityProviderModel ¶
type UtilityProviderModel struct{}
UtilityProviderModel describes the provider data model.
Click to show internal directories.
Click to hide internal directories.