edgegw

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MPL-2.0 Imports: 47 Imported by: 0

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.

Index

Constants

This section is empty.

Variables

View Source
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 NewDhcpForwardingDataSource added in v0.8.0

func NewDhcpForwardingDataSource() datasource.DataSource

func NewDhcpForwardingResource added in v0.8.0

func NewDhcpForwardingResource() resource.Resource

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

func NewEdgeGatewayResource() resource.Resource

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

func NewFirewallResource() resource.Resource

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

func NewIPSetResource() resource.Resource

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

func NewNATRuleResource() resource.Resource

NewNATRuleResource is a helper function to simplify the provider implementation.

func NewPortProfilesResource added in v0.5.1

func NewPortProfilesResource() resource.Resource

NewPortProfilesResource 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

func NewSecurityGroupResource() resource.Resource

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

func NewStaticRouteResource() resource.Resource

NewStaticRouteResource is a helper function to simplify the provider implementation.

Types

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 (*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

type EdgeGatewayConfig

type EdgeGatewayConfig struct {
	CheckJobDelay time.Duration
}

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.

Jump to

Keyboard shortcuts

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