Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewAllocationResource() resource.Resource
- func NewPoolResource() resource.Resource
- type AllocationResource
- func (r *AllocationResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *AllocationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *AllocationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *AllocationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *AllocationResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *AllocationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *AllocationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *AllocationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type AllocationResourceModel
- type IPAMProvider
- func (p *IPAMProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *IPAMProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *IPAMProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *IPAMProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *IPAMProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type IPAMProviderModel
- type PoolResource
- func (r *PoolResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *PoolResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *PoolResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *PoolResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *PoolResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *PoolResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *PoolResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *PoolResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PoolResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAllocationResource ¶
func NewPoolResource ¶
Types ¶
type AllocationResource ¶
type AllocationResource struct {
// contains filtered or unexported fields
}
AllocationResource defines the resource implementation.
func (*AllocationResource) Configure ¶
func (r *AllocationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*AllocationResource) Create ¶
func (r *AllocationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*AllocationResource) Delete ¶
func (r *AllocationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*AllocationResource) ImportState ¶
func (r *AllocationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*AllocationResource) Metadata ¶
func (r *AllocationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*AllocationResource) Read ¶
func (r *AllocationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*AllocationResource) Schema ¶
func (r *AllocationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*AllocationResource) Update ¶
func (r *AllocationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type AllocationResourceModel ¶
type AllocationResourceModel struct { PoolId types.String `tfsdk:"pool_id"` Size types.Int64 `tfsdk:"size"` Id types.String `tfsdk:"id"` CIDR types.String `tfsdk:"cidr"` }
AllocationResourceModel describes the resource data model.
type IPAMProvider ¶
type IPAMProvider struct {
// contains filtered or unexported fields
}
IPAMProvider defines the provider implementation.
func (*IPAMProvider) Configure ¶
func (p *IPAMProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*IPAMProvider) DataSources ¶
func (p *IPAMProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*IPAMProvider) Metadata ¶
func (p *IPAMProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*IPAMProvider) Resources ¶
func (p *IPAMProvider) Resources(ctx context.Context) []func() resource.Resource
func (*IPAMProvider) Schema ¶
func (p *IPAMProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type IPAMProviderModel ¶
IPAMProviderModel describes the provider data model.
type PoolResource ¶
type PoolResource struct {
// contains filtered or unexported fields
}
PoolResource defines the resource implementation.
func (*PoolResource) Configure ¶
func (r *PoolResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*PoolResource) Create ¶
func (r *PoolResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*PoolResource) Delete ¶
func (r *PoolResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*PoolResource) ImportState ¶
func (r *PoolResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*PoolResource) Metadata ¶
func (r *PoolResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*PoolResource) Read ¶
func (r *PoolResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*PoolResource) Schema ¶
func (r *PoolResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*PoolResource) Update ¶
func (r *PoolResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.