Documentation ¶
Overview ¶
Package edgegw provides a Terraform datasource.
Package edgegw provides a Terraform resource.
Package edgegw provides a Terraform resource to manage edge gateways.
Package edgegw provides a Terraform resource to manage edge gateways.
Package edgegw provides a Terraform resource to manage edge gateways.
Package edgegw provides a Terraform resource to manage edge gateways.
Package edgegw provides a Terraform resource to manage edge gateways.
Package edgegw provides a Terraform datasource.
Package edgegw provides a Terraform resource.
Package edgegw provides a Terraform datasource.
Package edgegw provides a Terraform resource.
Package edgegw provides a Terraform datasource.
Package edgegw provides a Terraform resource.
Package edgegw provides a Terraform datasource.
Package edgegw provides a Terraform resource.
Package edgegw provides a Terraform datasource.
Package edgegw provides a Terraform resource.
Package edgegw provides a Terraform datasource.
Package edgegw provides a Terraform resource.
Index ¶
- Variables
- func NewAppPortProfileDataSource() datasource.DataSource
- func NewAppPortProfileResource() resource.Resource
- func NewDhcpForwardingDataSource() datasource.DataSource
- func NewDhcpForwardingResource() resource.Resource
- func NewEdgeGatewayDataSource() datasource.DataSource
- func NewEdgeGatewayResource() resource.Resource
- func NewEdgeGatewaysDataSource() datasource.DataSource
- func NewFirewallDataSource() datasource.DataSource
- func NewFirewallResource() resource.Resource
- func NewIPSetDataSource() datasource.DataSource
- func NewIPSetResource() resource.Resource
- func NewNATRuleDataSource() datasource.DataSource
- func NewNATRuleResource() resource.Resource
- func NewSecurityGroupDataSource() datasource.DataSource
- func NewSecurityGroupResource() resource.Resource
- func NewStaticRouteDataSource() datasource.DataSource
- func NewStaticRouteResource() resource.Resource
- func NewVPNIPSecDataSource() datasource.DataSource
- func NewVPNIPSecResource() resource.Resource
- type AppPortProfileModel
- type AppPortProfileModelADatasource
- type AppPortProfileModelAppPort
- type DhcpForwardingModel
- func (rm *DhcpForwardingModel) Copy() *DhcpForwardingModel
- func (rm *DhcpForwardingModel) GetDhcpServers(ctx context.Context) (values DhcpForwardingModelDhcpServers, diags diag.Diagnostics)
- func (rm *DhcpForwardingModel) ToNsxtEdgeGatewayDhcpForwarder(ctx context.Context) (*govcdtypes.NsxtEdgeGatewayDhcpForwarder, diag.Diagnostics)
- type DhcpForwardingModelDhcpServers
- type EdgeGatewayConfig
- type IPSetModel
- type IPSetModelIPAddresses
- type NATRuleModel
- type StaticRouteModel
- func (rm *StaticRouteModel) Copy() *StaticRouteModel
- func (rm *StaticRouteModel) GetNextHops(ctx context.Context) (values StaticRouteModelNextHops, diags diag.Diagnostics)
- func (rm *StaticRouteModel) ToNsxtEdgeGatewayStaticRoute(ctx context.Context) (*govcdtypes.NsxtEdgeGatewayStaticRoute, diag.Diagnostics)
- type StaticRouteModelNextHop
- type StaticRouteModelNextHops
- type VPNIPSecModel
- func (rm *VPNIPSecModel) Copy() *VPNIPSecModel
- func (rm *VPNIPSecModel) GetLocalNetworks(ctx context.Context) (values VPNIPSecModelLocalNetworks, diags diag.Diagnostics)
- func (rm *VPNIPSecModel) GetNsxtIPSecVPNTunnelSecurityProfile(ctx context.Context) (values *govcdtypes.NsxtIpSecVpnTunnelSecurityProfile, diags diag.Diagnostics)
- func (rm *VPNIPSecModel) GetRemoteNetworks(ctx context.Context) (values VPNIPSecModelRemoteNetworks, diags diag.Diagnostics)
- func (rm *VPNIPSecModel) GetSecurityProfile(ctx context.Context) (values VPNIPSecModelSecurityProfile, diags diag.Diagnostics)
- func (rm *VPNIPSecModel) ToNsxtIPSecVPNTunnel(ctx context.Context) (values *govcdtypes.NsxtIpSecVpnTunnel, diags diag.Diagnostics)
- type VPNIPSecModelLocalNetworks
- type VPNIPSecModelRemoteNetworks
- type VPNIPSecModelSecurityProfile
Constants ¶
This section is empty.
Variables ¶
var ( // ConfigEdgeGateway is the default configuration for edge gateway. ConfigEdgeGateway setDefaultEdgeGateway = func() EdgeGatewayConfig { return EdgeGatewayConfig{ CheckJobDelay: defaultCheckJobDelayEdgeGateway, } } )
Ensure the implementation satisfies the expected interfaces.
Functions ¶
func NewAppPortProfileDataSource ¶ added in v0.17.0
func NewAppPortProfileDataSource() datasource.DataSource
func NewAppPortProfileResource ¶ added in v0.17.0
NewAppPortProfileResource is a helper function to simplify the provider implementation.
func NewDhcpForwardingDataSource ¶ added in v0.8.0
func NewDhcpForwardingDataSource() datasource.DataSource
func NewDhcpForwardingResource ¶ added in v0.8.0
NewDhcpForwardingResource is a helper function to simplify the provider implementation.
func NewEdgeGatewayDataSource ¶
func NewEdgeGatewayDataSource() datasource.DataSource
NewEdgeGatewayDataSource returns a new datasource implementing the edge_gateway data source.
func NewEdgeGatewayResource ¶
NewEdgeGatewayResource returns a new resource implementing the edge_gateway data source.
func NewEdgeGatewaysDataSource ¶
func NewEdgeGatewaysDataSource() datasource.DataSource
NewEdgeGatewaysDataSource returns a new resource implementing the edge_gateways data source.
func NewFirewallDataSource ¶ added in v0.5.0
func NewFirewallDataSource() datasource.DataSource
func NewFirewallResource ¶ added in v0.5.0
NewFirewallResource is a helper function to simplify the provider implementation.
func NewIPSetDataSource ¶ added in v0.7.0
func NewIPSetDataSource() datasource.DataSource
func NewIPSetResource ¶ added in v0.7.0
NewIpSetResource is a helper function to simplify the provider implementation.
func NewNATRuleDataSource ¶ added in v0.8.0
func NewNATRuleDataSource() datasource.DataSource
func NewNATRuleResource ¶ added in v0.8.0
NewNATRuleResource is a helper function to simplify the provider implementation.
func NewSecurityGroupDataSource ¶ added in v0.6.0
func NewSecurityGroupDataSource() datasource.DataSource
func NewSecurityGroupResource ¶ added in v0.6.0
NewSecurityGroupResource is a helper function to simplify the provider implementation.
func NewStaticRouteDataSource ¶ added in v0.8.0
func NewStaticRouteDataSource() datasource.DataSource
func NewStaticRouteResource ¶ added in v0.8.0
NewStaticRouteResource is a helper function to simplify the provider implementation.
func NewVPNIPSecDataSource ¶ added in v0.10.0
func NewVPNIPSecDataSource() datasource.DataSource
func NewVPNIPSecResource ¶ added in v0.10.0
NewVpnIpsecResource is a helper function to simplify the provider implementation.
Types ¶
type AppPortProfileModel ¶ added in v0.17.0
type AppPortProfileModel struct { ID supertypes.StringValue `tfsdk:"id"` Name supertypes.StringValue `tfsdk:"name"` VDC supertypes.StringValue `tfsdk:"vdc"` // Deprecated EdgeGatewayID supertypes.StringValue `tfsdk:"edge_gateway_id"` EdgeGatewayName supertypes.StringValue `tfsdk:"edge_gateway_name"` Description supertypes.StringValue `tfsdk:"description"` AppPorts supertypes.ListNestedObjectValueOf[AppPortProfileModelAppPort] `tfsdk:"app_ports"` }
func (*AppPortProfileModel) Copy ¶ added in v0.17.0
func (rm *AppPortProfileModel) Copy() *AppPortProfileModel
type AppPortProfileModelADatasource ¶ added in v0.17.0
type AppPortProfileModelADatasource struct { ID supertypes.StringValue `tfsdk:"id"` Name supertypes.StringValue `tfsdk:"name"` Description supertypes.StringValue `tfsdk:"description"` AppPorts supertypes.ListNestedObjectValueOf[AppPortProfileModelAppPort] `tfsdk:"app_ports"` }
type AppPortProfileModelAppPort ¶ added in v0.17.0
type AppPortProfileModelAppPort struct { Protocol supertypes.StringValue `tfsdk:"protocol"` Ports supertypes.SetValueOf[string] `tfsdk:"ports"` }
type DhcpForwardingModel ¶ added in v0.8.0
type DhcpForwardingModel struct { DhcpServers supertypes.SetValue `tfsdk:"dhcp_servers"` EdgeGatewayID supertypes.StringValue `tfsdk:"edge_gateway_id"` EdgeGatewayName supertypes.StringValue `tfsdk:"edge_gateway_name"` Enabled supertypes.BoolValue `tfsdk:"enabled"` ID supertypes.StringValue `tfsdk:"id"` }
func NewDhcpForwarding ¶ added in v0.8.0
func NewDhcpForwarding(t any) *DhcpForwardingModel
func (*DhcpForwardingModel) Copy ¶ added in v0.8.0
func (rm *DhcpForwardingModel) Copy() *DhcpForwardingModel
func (*DhcpForwardingModel) GetDhcpServers ¶ added in v0.8.0
func (rm *DhcpForwardingModel) GetDhcpServers(ctx context.Context) (values DhcpForwardingModelDhcpServers, diags diag.Diagnostics)
GetDhcpServers returns the value of the DhcpServers field.
func (*DhcpForwardingModel) ToNsxtEdgeGatewayDhcpForwarder ¶ added in v0.8.0
func (rm *DhcpForwardingModel) ToNsxtEdgeGatewayDhcpForwarder(ctx context.Context) (*govcdtypes.NsxtEdgeGatewayDhcpForwarder, diag.Diagnostics)
ToNsxtEdgeGatewayDhcpForwarder returns the NSX-T Edge Gateway DHCP Forwarder representation of the model.
type DhcpForwardingModelDhcpServers ¶ added in v0.8.0
type DhcpForwardingModelDhcpServers []supertypes.StringValue
func (*DhcpForwardingModelDhcpServers) Get ¶ added in v0.8.0
func (r *DhcpForwardingModelDhcpServers) Get() []string
type EdgeGatewayConfig ¶
EdgeGatewayConfig is the configuration for edge gateway.
type IPSetModel ¶ added in v0.7.0
type IPSetModel struct { Description supertypes.StringValue `tfsdk:"description"` EdgeGatewayID supertypes.StringValue `tfsdk:"edge_gateway_id"` EdgeGatewayName supertypes.StringValue `tfsdk:"edge_gateway_name"` ID supertypes.StringValue `tfsdk:"id"` IPAddresses supertypes.SetValue `tfsdk:"ip_addresses"` Name supertypes.StringValue `tfsdk:"name"` }
func NewIPSet ¶ added in v0.7.0
func NewIPSet(t any) *IPSetModel
func (*IPSetModel) Copy ¶ added in v0.7.0
func (rm *IPSetModel) Copy() *IPSetModel
func (*IPSetModel) GetIPAddresses ¶ added in v0.7.0
func (rm *IPSetModel) GetIPAddresses(ctx context.Context) (values IPSetModelIPAddresses, diags diag.Diagnostics)
GetIpAddresses returns the value of the IpAddresses field.
func (*IPSetModel) ToNsxtFirewallGroup ¶ added in v0.7.0
func (rm *IPSetModel) ToNsxtFirewallGroup(ctx context.Context, ownerID string) (values *govcdtypes.NsxtFirewallGroup, diags diag.Diagnostics)
ToNsxtFirewallGroup transform the IPSetModel to a govcdtypes.NsxtFirewallGroup.
type IPSetModelIPAddresses ¶ added in v0.7.0
type IPSetModelIPAddresses []supertypes.StringValue
type NATRuleModel ¶ added in v0.8.0
type NATRuleModel struct { // Option not implemented - see schema comment // AppPortProfileID supertypes.StringValue `tfsdk:"app_port_profile_id"` Description supertypes.StringValue `tfsdk:"description"` DnatExternalPort supertypes.StringValue `tfsdk:"dnat_external_port"` EdgeGatewayID supertypes.StringValue `tfsdk:"edge_gateway_id"` EdgeGatewayName supertypes.StringValue `tfsdk:"edge_gateway_name"` Enabled supertypes.BoolValue `tfsdk:"enabled"` ExternalAddress supertypes.StringValue `tfsdk:"external_address"` FirewallMatch supertypes.StringValue `tfsdk:"firewall_match"` ID supertypes.StringValue `tfsdk:"id"` InternalAddress supertypes.StringValue `tfsdk:"internal_address"` // Option not available in CloudAvenue // Logging supertypes.BoolValue `tfsdk:"logging"` Name supertypes.StringValue `tfsdk:"name"` Priority supertypes.Int64Value `tfsdk:"priority"` RuleType supertypes.StringValue `tfsdk:"rule_type"` SnatDestinationAddress supertypes.StringValue `tfsdk:"snat_destination_address"` }
func NewNATRule ¶ added in v0.8.0
func NewNATRule(t any) *NATRuleModel
func (*NATRuleModel) Copy ¶ added in v0.8.0
func (rm *NATRuleModel) Copy() *NATRuleModel
func (*NATRuleModel) ToNsxtNATRule ¶ added in v0.8.0
func (rm *NATRuleModel) ToNsxtNATRule(ctx context.Context) (values *govcdtypes.NsxtNatRule, err error)
type StaticRouteModel ¶ added in v0.8.0
type StaticRouteModel struct { Description supertypes.StringValue `tfsdk:"description"` EdgeGatewayID supertypes.StringValue `tfsdk:"edge_gateway_id"` EdgeGatewayName supertypes.StringValue `tfsdk:"edge_gateway_name"` ID supertypes.StringValue `tfsdk:"id"` Name supertypes.StringValue `tfsdk:"name"` NetworkCidr supertypes.StringValue `tfsdk:"network_cidr"` NextHops supertypes.SetNestedValue `tfsdk:"next_hops"` }
func NewStaticRoute ¶ added in v0.8.0
func NewStaticRoute(t any) *StaticRouteModel
func (*StaticRouteModel) Copy ¶ added in v0.8.0
func (rm *StaticRouteModel) Copy() *StaticRouteModel
func (*StaticRouteModel) GetNextHops ¶ added in v0.8.0
func (rm *StaticRouteModel) GetNextHops(ctx context.Context) (values StaticRouteModelNextHops, diags diag.Diagnostics)
GetNextHops returns the value of the NextHops field.
func (*StaticRouteModel) ToNsxtEdgeGatewayStaticRoute ¶ added in v0.8.0
func (rm *StaticRouteModel) ToNsxtEdgeGatewayStaticRoute(ctx context.Context) (*govcdtypes.NsxtEdgeGatewayStaticRoute, diag.Diagnostics)
type StaticRouteModelNextHop ¶ added in v0.8.0
type StaticRouteModelNextHop struct { AdminDistance supertypes.Int64Value `tfsdk:"admin_distance"` IPAddress supertypes.StringValue `tfsdk:"ip_address"` }
* NextHop.
type StaticRouteModelNextHops ¶ added in v0.8.0
type StaticRouteModelNextHops []StaticRouteModelNextHop
* NextHops.
type VPNIPSecModel ¶ added in v0.10.0
type VPNIPSecModel struct { Description supertypes.StringValue `tfsdk:"description"` EdgeGatewayID supertypes.StringValue `tfsdk:"edge_gateway_id"` EdgeGatewayName supertypes.StringValue `tfsdk:"edge_gateway_name"` Enabled supertypes.BoolValue `tfsdk:"enabled"` ID supertypes.StringValue `tfsdk:"id"` LocalIPAddress supertypes.StringValue `tfsdk:"local_ip_address"` LocalNetworks supertypes.SetValue `tfsdk:"local_networks"` Name supertypes.StringValue `tfsdk:"name"` RemoteIPAddress supertypes.StringValue `tfsdk:"remote_ip_address"` RemoteNetworks supertypes.SetValue `tfsdk:"remote_networks"` SecurityProfile supertypes.SingleNestedValue `tfsdk:"security_profile"` SecurityType supertypes.StringValue `tfsdk:"security_type"` }
func (*VPNIPSecModel) Copy ¶ added in v0.10.0
func (rm *VPNIPSecModel) Copy() *VPNIPSecModel
func (*VPNIPSecModel) GetLocalNetworks ¶ added in v0.10.0
func (rm *VPNIPSecModel) GetLocalNetworks(ctx context.Context) (values VPNIPSecModelLocalNetworks, diags diag.Diagnostics)
GetLocalNetworks returns the value of the LocalNetworks field.
func (*VPNIPSecModel) GetNsxtIPSecVPNTunnelSecurityProfile ¶ added in v0.10.0
func (rm *VPNIPSecModel) GetNsxtIPSecVPNTunnelSecurityProfile(ctx context.Context) (values *govcdtypes.NsxtIpSecVpnTunnelSecurityProfile, diags diag.Diagnostics)
func (*VPNIPSecModel) GetRemoteNetworks ¶ added in v0.10.0
func (rm *VPNIPSecModel) GetRemoteNetworks(ctx context.Context) (values VPNIPSecModelRemoteNetworks, diags diag.Diagnostics)
GetRemoteNetworks returns the value of the RemoteNetworks field.
func (*VPNIPSecModel) GetSecurityProfile ¶ added in v0.10.0
func (rm *VPNIPSecModel) GetSecurityProfile(ctx context.Context) (values VPNIPSecModelSecurityProfile, diags diag.Diagnostics)
GetSecurityProfile returns the value of the SecurityProfile field.
func (*VPNIPSecModel) ToNsxtIPSecVPNTunnel ¶ added in v0.10.0
func (rm *VPNIPSecModel) ToNsxtIPSecVPNTunnel(ctx context.Context) (values *govcdtypes.NsxtIpSecVpnTunnel, diags diag.Diagnostics)
type VPNIPSecModelLocalNetworks ¶ added in v0.10.0
type VPNIPSecModelLocalNetworks []supertypes.StringValue
func (VPNIPSecModelLocalNetworks) Get ¶ added in v0.10.0
func (rm VPNIPSecModelLocalNetworks) Get() []string
type VPNIPSecModelRemoteNetworks ¶ added in v0.10.0
type VPNIPSecModelRemoteNetworks []supertypes.StringValue
func (VPNIPSecModelRemoteNetworks) Get ¶ added in v0.10.0
func (rm VPNIPSecModelRemoteNetworks) Get() []string
type VPNIPSecModelSecurityProfile ¶ added in v0.10.0
type VPNIPSecModelSecurityProfile struct { IkeDhGroups supertypes.StringValue `tfsdk:"ike_dh_groups"` IkeDigestAlgorithm supertypes.StringValue `tfsdk:"ike_digest_algorithm"` IkeEncryptionAlgorithm supertypes.StringValue `tfsdk:"ike_encryption_algorithm"` IkeSaLifetime supertypes.Int64Value `tfsdk:"ike_sa_lifetime"` IkeVersion supertypes.StringValue `tfsdk:"ike_version"` TunnelDfPolicy supertypes.StringValue `tfsdk:"tunnel_df_policy"` TunnelDhGroups supertypes.StringValue `tfsdk:"tunnel_dh_groups"` TunnelDigestAlgorithms supertypes.StringValue `tfsdk:"tunnel_digest_algorithms"` TunnelDpd supertypes.Int64Value `tfsdk:"tunnel_dpd"` TunnelEncryptionAlgorithms supertypes.StringValue `tfsdk:"tunnel_encryption_algorithms"` TunnelPfs supertypes.BoolValue `tfsdk:"tunnel_pfs"` TunnelSaLifetime supertypes.Int64Value `tfsdk:"tunnel_sa_lifetime"` }
* SecurityProfile.
Source Files ¶
- app_port_profile_datasource.go
- app_port_profile_resource.go
- app_port_profile_schema.go
- app_port_profile_type.go
- base.go
- dhcp_forwarding_datasource.go
- dhcp_forwarding_resource.go
- dhcp_forwarding_schema.go
- dhcp_forwarding_types.go
- edgegateway_datasource.go
- edgegateway_resource.go
- edgegateway_schema.go
- edgegateway_types.go
- edgegateways_datasource.go
- edgegateways_schema.go
- edgegateways_types.go
- firewall_datasource.go
- firewall_resource.go
- firewall_schema.go
- firewall_types.go
- ip_set_datasource.go
- ip_set_resource.go
- ip_set_schema.go
- ip_set_types.go
- nat_rule_datasource.go
- nat_rule_resource.go
- nat_rule_schema.go
- nat_rule_types.go
- security_group_datasource.go
- security_group_resource.go
- security_group_schema.go
- security_group_types.go
- static_route_datasource.go
- static_route_resource.go
- static_route_schema.go
- static_route_types.go
- vpn_ipsec_datasource.go
- vpn_ipsec_resource.go
- vpn_ipsec_schema.go
- vpn_ipsec_types.go