Documentation ¶
Index ¶
- func NewNetworkAclResource() resource.Resource
- func NewNetworkForwardResource() resource.Resource
- func NewNetworkLBResource() resource.Resource
- func NewNetworkResource() resource.Resource
- func NewNetworkZoneRecordResource() resource.Resource
- func NewNetworkZoneResource() resource.Resource
- func ToLBBackendList(ctx context.Context, backendsSet types.Set) ([]api.NetworkLoadBalancerBackend, diag.Diagnostics)
- func ToLBBackendSetType(ctx context.Context, backends []api.NetworkLoadBalancerBackend) (types.Set, diag.Diagnostics)
- func ToLBPortList(ctx context.Context, portSet types.Set) ([]api.NetworkLoadBalancerPort, diag.Diagnostics)
- func ToLBPortSetType(ctx context.Context, ports []api.NetworkLoadBalancerPort) (types.Set, diag.Diagnostics)
- func ToNetworkAclRules(ctx context.Context, aclRuleList types.Set) ([]api.NetworkACLRule, diag.Diagnostics)
- func ToNetworkAclRulesListType(networkACLRules []api.NetworkACLRule) (types.Set, diag.Diagnostics)
- func ToNetworkForwardPortList(ctx context.Context, portsSet types.Set) ([]api.NetworkForwardPort, diag.Diagnostics)
- func ToNetworkForwardPortSetType(ctx context.Context, ports []api.NetworkForwardPort) (types.Set, diag.Diagnostics)
- func ToZoneRecordEntryList(ctx context.Context, entrySet types.Set) ([]api.NetworkZoneRecordEntry, diag.Diagnostics)
- func ToZoneRecordEntrySetType(ctx context.Context, entries []api.NetworkZoneRecordEntry) (types.Set, diag.Diagnostics)
- type IncusNetworkLBBackendModel
- type IncusNetworkLBResource
- func (r *IncusNetworkLBResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r IncusNetworkLBResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r IncusNetworkLBResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r IncusNetworkLBResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r IncusNetworkLBResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r IncusNetworkLBResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r IncusNetworkLBResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, ...) diag.Diagnostics
- func (r IncusNetworkLBResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NetworkAclModel
- type NetworkAclResource
- func (r *NetworkAclResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *NetworkAclResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *NetworkAclResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *NetworkAclResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *NetworkAclResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *NetworkAclResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *NetworkAclResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *NetworkAclResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, ...) diag.Diagnostics
- func (r *NetworkAclResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NetworkAclRuleModel
- type NetworkForwardModel
- type NetworkForwardPortModel
- type NetworkForwardResource
- func (r *NetworkForwardResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *NetworkForwardResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *NetworkForwardResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *NetworkForwardResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *NetworkForwardResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *NetworkForwardResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *NetworkForwardResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *NetworkForwardResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, ...) diag.Diagnostics
- func (r *NetworkForwardResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NetworkLBModel
- type NetworkLBPortModel
- type NetworkModel
- type NetworkResource
- func (r *NetworkResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r NetworkResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r NetworkResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r NetworkResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r NetworkResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r NetworkResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r NetworkResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r NetworkResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, ...) diag.Diagnostics
- func (r NetworkResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NetworkZoneModel
- type NetworkZoneRecordEntryModel
- type NetworkZoneRecordModel
- type NetworkZoneRecordResource
- func (r *NetworkZoneRecordResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r NetworkZoneRecordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r NetworkZoneRecordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r NetworkZoneRecordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r NetworkZoneRecordResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r NetworkZoneRecordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r NetworkZoneRecordResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r NetworkZoneRecordResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, ...) diag.Diagnostics
- func (r NetworkZoneRecordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NetworkZoneResource
- func (r *NetworkZoneResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r NetworkZoneResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r NetworkZoneResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r NetworkZoneResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r NetworkZoneResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r NetworkZoneResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r NetworkZoneResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r NetworkZoneResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, ...) diag.Diagnostics
- func (r NetworkZoneResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetworkAclResource ¶ added in v0.1.3
func NewNetworkForwardResource ¶ added in v0.1.3
func NewNetworkLBResource ¶
NewNetworkLBResource returns a new network load balancer resource.
func NewNetworkResource ¶
NewNetworkResource returns a new network resource.
func NewNetworkZoneRecordResource ¶
NewNetworkZoneRecordResource returns a new network zone record resource.
func NewNetworkZoneResource ¶
NewNetworkZoneResource returns a new network zone resource.
func ToLBBackendList ¶
func ToLBBackendList(ctx context.Context, backendsSet types.Set) ([]api.NetworkLoadBalancerBackend, diag.Diagnostics)
ToLBBackendList converts network LB backend from types.Set into list of API backends.
func ToLBBackendSetType ¶
func ToLBBackendSetType(ctx context.Context, backends []api.NetworkLoadBalancerBackend) (types.Set, diag.Diagnostics)
ToLBBackendList converts list of API network LB backends into types.Set.
func ToLBPortList ¶
func ToLBPortList(ctx context.Context, portSet types.Set) ([]api.NetworkLoadBalancerPort, diag.Diagnostics)
ToLBPortList converts network LB backend from types.Set into list of API ports.
func ToLBPortSetType ¶
func ToLBPortSetType(ctx context.Context, ports []api.NetworkLoadBalancerPort) (types.Set, diag.Diagnostics)
ToLBPortList converts list of API network LB ports into types.Set.
func ToNetworkAclRules ¶ added in v0.1.3
func ToNetworkAclRules(ctx context.Context, aclRuleList types.Set) ([]api.NetworkACLRule, diag.Diagnostics)
func ToNetworkAclRulesListType ¶ added in v0.1.3
func ToNetworkAclRulesListType(networkACLRules []api.NetworkACLRule) (types.Set, diag.Diagnostics)
func ToNetworkForwardPortList ¶ added in v0.1.3
func ToNetworkForwardPortList(ctx context.Context, portsSet types.Set) ([]api.NetworkForwardPort, diag.Diagnostics)
func ToNetworkForwardPortSetType ¶ added in v0.1.3
func ToNetworkForwardPortSetType(ctx context.Context, ports []api.NetworkForwardPort) (types.Set, diag.Diagnostics)
func ToZoneRecordEntryList ¶
func ToZoneRecordEntryList(ctx context.Context, entrySet types.Set) ([]api.NetworkZoneRecordEntry, diag.Diagnostics)
ToZoneRecordMap converts network zone record of type types.Map into []IncusNetworkZoneEntryModel.
func ToZoneRecordEntrySetType ¶
func ToZoneRecordEntrySetType(ctx context.Context, entries []api.NetworkZoneRecordEntry) (types.Set, diag.Diagnostics)
ToZoneRecordEntrySetType converts list of network zone records into set of type types.Set.
Types ¶
type IncusNetworkLBResource ¶
type IncusNetworkLBResource struct {
// contains filtered or unexported fields
}
IncusNetworkLBResource represent Incus network load balancer resource.
func (*IncusNetworkLBResource) Configure ¶
func (r *IncusNetworkLBResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (IncusNetworkLBResource) Create ¶
func (r IncusNetworkLBResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (IncusNetworkLBResource) Delete ¶
func (r IncusNetworkLBResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (IncusNetworkLBResource) Metadata ¶
func (r IncusNetworkLBResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (IncusNetworkLBResource) Read ¶
func (r IncusNetworkLBResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (IncusNetworkLBResource) Schema ¶
func (r IncusNetworkLBResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (IncusNetworkLBResource) SyncState ¶
func (r IncusNetworkLBResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, m NetworkLBModel) diag.Diagnostics
SyncState fetches the server's current state for an network load balancer and updates the provided model. It then applies this updated model as the new state in Terraform.
func (IncusNetworkLBResource) Update ¶
func (r IncusNetworkLBResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type NetworkAclModel ¶ added in v0.1.3
type NetworkAclModel struct { Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` Project types.String `tfsdk:"project"` Remote types.String `tfsdk:"remote"` Config types.Map `tfsdk:"config"` Egress types.Set `tfsdk:"egress"` Ingress types.Set `tfsdk:"ingress"` }
NetworkAclModel resource data model that matches the schema.
type NetworkAclResource ¶ added in v0.1.3
type NetworkAclResource struct {
// contains filtered or unexported fields
}
NetworkAclResource represent Incus network ACL resource.
func (*NetworkAclResource) Configure ¶ added in v0.1.3
func (r *NetworkAclResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NetworkAclResource) Create ¶ added in v0.1.3
func (r *NetworkAclResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*NetworkAclResource) Delete ¶ added in v0.1.3
func (r *NetworkAclResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*NetworkAclResource) ImportState ¶ added in v0.1.3
func (r *NetworkAclResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NetworkAclResource) Metadata ¶ added in v0.1.3
func (r *NetworkAclResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*NetworkAclResource) Read ¶ added in v0.1.3
func (r *NetworkAclResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*NetworkAclResource) Schema ¶ added in v0.1.3
func (r *NetworkAclResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*NetworkAclResource) SyncState ¶ added in v0.1.3
func (r *NetworkAclResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, m NetworkAclModel) diag.Diagnostics
func (*NetworkAclResource) Update ¶ added in v0.1.3
func (r *NetworkAclResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type NetworkAclRuleModel ¶ added in v0.1.3
type NetworkAclRuleModel struct { Action types.String `tfsdk:"action"` Destination types.String `tfsdk:"destination"` DestinationPort types.String `tfsdk:"destination_port"` Protocol types.String `tfsdk:"protocol"` Description types.String `tfsdk:"description"` State types.String `tfsdk:"state"` Source types.String `tfsdk:"source"` ICMPType types.String `tfsdk:"icmp_type"` ICMPCode types.String `tfsdk:"icmp_code"` }
NetworkAclRuleModel resource data model that matches the schema.
type NetworkForwardModel ¶ added in v0.1.3
type NetworkForwardModel struct { Network types.String `tfsdk:"network"` ListenAddress types.String `tfsdk:"listen_address"` Ports types.Set `tfsdk:"ports"` Description types.String `tfsdk:"description"` Project types.String `tfsdk:"project"` Remote types.String `tfsdk:"remote"` Config types.Map `tfsdk:"config"` }
NetworkForwardModel resource data model that matches the schema.
type NetworkForwardPortModel ¶ added in v0.1.3
type NetworkForwardPortModel struct { Description types.String `tfsdk:"description"` Protocol types.String `tfsdk:"protocol"` ListenPort types.String `tfsdk:"listen_port"` TargetPort types.String `tfsdk:"target_port"` TargetAddress types.String `tfsdk:"target_address"` }
NetworkForwardModel resource data model that matches the schema.
type NetworkForwardResource ¶ added in v0.1.3
type NetworkForwardResource struct {
// contains filtered or unexported fields
}
NetworkForwardResource represent network forward resource.
func (*NetworkForwardResource) Configure ¶ added in v0.1.3
func (r *NetworkForwardResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NetworkForwardResource) Create ¶ added in v0.1.3
func (r *NetworkForwardResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*NetworkForwardResource) Delete ¶ added in v0.1.3
func (r *NetworkForwardResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*NetworkForwardResource) ImportState ¶ added in v0.1.3
func (r *NetworkForwardResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NetworkForwardResource) Metadata ¶ added in v0.1.3
func (r *NetworkForwardResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*NetworkForwardResource) Read ¶ added in v0.1.3
func (r *NetworkForwardResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*NetworkForwardResource) Schema ¶ added in v0.1.3
func (r *NetworkForwardResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*NetworkForwardResource) SyncState ¶ added in v0.1.3
func (r *NetworkForwardResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, m NetworkForwardModel) diag.Diagnostics
func (*NetworkForwardResource) Update ¶ added in v0.1.3
func (r *NetworkForwardResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type NetworkLBModel ¶
type NetworkLBModel struct { Network types.String `tfsdk:"network"` ListenAddress types.String `tfsdk:"listen_address"` Ports types.Set `tfsdk:"port"` Backends types.Set `tfsdk:"backend"` Description types.String `tfsdk:"description"` Project types.String `tfsdk:"project"` Remote types.String `tfsdk:"remote"` Config types.Map `tfsdk:"config"` }
NetworkLBModel resource data model that matches the schema.
type NetworkLBPortModel ¶
type NetworkModel ¶
type NetworkModel struct { Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` Type types.String `tfsdk:"type"` Project types.String `tfsdk:"project"` Remote types.String `tfsdk:"remote"` Target types.String `tfsdk:"target"` Managed types.Bool `tfsdk:"managed"` Config types.Map `tfsdk:"config"` }
NetworkModel resource data model that matches the schema.
func (NetworkModel) ComputedKeys ¶
func (_ NetworkModel) ComputedKeys() []string
ComputedKeys returns list of computed Incus config keys.
type NetworkResource ¶
type NetworkResource struct {
// contains filtered or unexported fields
}
NetworkResource represent Incus network resource.
func (*NetworkResource) Configure ¶
func (r *NetworkResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (NetworkResource) Create ¶
func (r NetworkResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (NetworkResource) Delete ¶
func (r NetworkResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (NetworkResource) ImportState ¶
func (r NetworkResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (NetworkResource) Metadata ¶
func (r NetworkResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata for network resource.
func (NetworkResource) Read ¶
func (r NetworkResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (NetworkResource) Schema ¶
func (r NetworkResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema for network resource.
func (NetworkResource) SyncState ¶
func (r NetworkResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, m NetworkModel) diag.Diagnostics
SyncState fetches the server's current state for a network and updates the provided model. It then applies this updated model as the new state in Terraform.
func (NetworkResource) Update ¶
func (r NetworkResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type NetworkZoneModel ¶
type NetworkZoneModel struct { Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` Project types.String `tfsdk:"project"` Remote types.String `tfsdk:"remote"` Config types.Map `tfsdk:"config"` }
NetworkZoneModel resource data model that matches the schema.
type NetworkZoneRecordModel ¶
type NetworkZoneRecordModel struct { Name types.String `tfsdk:"name"` Zone types.String `tfsdk:"zone"` Description types.String `tfsdk:"description"` Entries types.Set `tfsdk:"entry"` Project types.String `tfsdk:"project"` Remote types.String `tfsdk:"remote"` Config types.Map `tfsdk:"config"` }
NetworkZoneRecordModel resource data model that matches the schema.
type NetworkZoneRecordResource ¶
type NetworkZoneRecordResource struct {
// contains filtered or unexported fields
}
NetworkZoneRecordResource represent Incus network zone record resource.
func (*NetworkZoneRecordResource) Configure ¶
func (r *NetworkZoneRecordResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (NetworkZoneRecordResource) Create ¶
func (r NetworkZoneRecordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (NetworkZoneRecordResource) Delete ¶
func (r NetworkZoneRecordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (NetworkZoneRecordResource) ImportState ¶
func (r NetworkZoneRecordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (NetworkZoneRecordResource) Metadata ¶
func (r NetworkZoneRecordResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (NetworkZoneRecordResource) Read ¶
func (r NetworkZoneRecordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (NetworkZoneRecordResource) Schema ¶
func (r NetworkZoneRecordResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (NetworkZoneRecordResource) SyncState ¶
func (r NetworkZoneRecordResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, m NetworkZoneRecordModel) diag.Diagnostics
SyncState fetches the server's current state for a network zone record and updates the provided model. It then applies this updated model as the new state in Terraform.
func (NetworkZoneRecordResource) Update ¶
func (r NetworkZoneRecordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type NetworkZoneResource ¶
type NetworkZoneResource struct {
// contains filtered or unexported fields
}
NetworkZoneResource represent Incus network zone resource.
func (*NetworkZoneResource) Configure ¶
func (r *NetworkZoneResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (NetworkZoneResource) Create ¶
func (r NetworkZoneResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (NetworkZoneResource) Delete ¶
func (r NetworkZoneResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (NetworkZoneResource) ImportState ¶
func (r NetworkZoneResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (NetworkZoneResource) Metadata ¶
func (r NetworkZoneResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (NetworkZoneResource) Read ¶
func (r NetworkZoneResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (NetworkZoneResource) Schema ¶
func (r NetworkZoneResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (NetworkZoneResource) SyncState ¶
func (r NetworkZoneResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, m NetworkZoneModel) diag.Diagnostics
SyncState fetches the server's current state for a network zone and updates the provided model. It then applies this updated model as the new state in Terraform.
func (NetworkZoneResource) Update ¶
func (r NetworkZoneResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)