networking

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MPL-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceNetworkingFloatingIP

func DataSourceNetworkingFloatingIP() *schema.Resource

func DataSourceNetworkingNetwork

func DataSourceNetworkingNetwork() *schema.Resource

func DataSourceNetworkingRouter

func DataSourceNetworkingRouter() *schema.Resource

func GetSDN

func GetSDN(d *schema.ResourceData) string

func NetworkingAttributesTags

func NetworkingAttributesTags(d *schema.ResourceData) []string

func NetworkingReadAttributesTags

func NetworkingReadAttributesTags(d *schema.ResourceData, tags []string)

func NetworkingV2UpdateAttributesTags

func NetworkingV2UpdateAttributesTags(d *schema.ResourceData) []string

func NewPortDataSource added in v0.4.0

func NewPortDataSource() datasource.DataSource

func NewSubnetDataSource added in v0.4.0

func NewSubnetDataSource() datasource.DataSource

func ResourceNetworkingFloating

func ResourceNetworkingFloating() *schema.Resource

func ResourceNetworkingFloatingIPAssociate

func ResourceNetworkingFloatingIPAssociate() *schema.Resource

func ResourceNetworkingNetwork

func ResourceNetworkingNetwork() *schema.Resource

func ResourceNetworkingPort

func ResourceNetworkingPort() *schema.Resource

func ResourceNetworkingPortSecGroupAssociate

func ResourceNetworkingPortSecGroupAssociate() *schema.Resource

func ResourceNetworkingRouter

func ResourceNetworkingRouter() *schema.Resource

func ResourceNetworkingRouterInterface

func ResourceNetworkingRouterInterface() *schema.Resource

func ResourceNetworkingRouterRoute

func ResourceNetworkingRouterRoute() *schema.Resource

func ResourceNetworkingSubnet

func ResourceNetworkingSubnet() *schema.Resource

func ResourceNetworkingSubnetRoute

func ResourceNetworkingSubnetRoute() *schema.Resource

func ValidateSDN

func ValidateSDN() schema.SchemaValidateDiagFunc

Types

type FloatingIPCreateOpts

type FloatingIPCreateOpts struct {
	*floatingips.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

FloatingIPCreateOpts represents the attributes used when creating a new floating ip.

func (FloatingIPCreateOpts) ToFloatingIPCreateMap

func (opts FloatingIPCreateOpts) ToFloatingIPCreateMap() (map[string]interface{}, error)

ToFloatingIPCreateMap casts a CreateOpts struct to a map. It overrides floatingips.ToFloatingIPCreateMap to add the ValueSpecs field.

type NetworkCreateOpts

type NetworkCreateOpts struct {
	networks.CreateOpts
	ValueSpecs       map[string]string `json:"value_specs,omitempty"`
	PrivateDNSDomain string            `json:"private_dns_domain,omitempty"`
	ServicesAccess   bool              `json:"enable_shadow_port,omitempty"`
}

NetworkCreateOpts represents the attributes used when creating a new network.

func (NetworkCreateOpts) ToNetworkCreateMap

func (opts NetworkCreateOpts) ToNetworkCreateMap() (map[string]interface{}, error)

ToNetworkCreateMap casts a CreateOpts struct to a map. It overrides networks.ToNetworkCreateMap to add the ValueSpecs field.

type NetworkUpdateOpts

type NetworkUpdateOpts struct {
	networks.UpdateOpts
	ServicesAccess *bool `json:"enable_shadow_port,omitempty"`
}

NetworkUpdateOpts represents the attributes used when updating a network.

func (NetworkUpdateOpts) ToNetworkUpdateMap

func (opts NetworkUpdateOpts) ToNetworkUpdateMap() (map[string]interface{}, error)

ToNetworkUpdateMap casts a UpdateOpts struct to a map. It overrides networks.ToNetworkUpdateMap to add the ServicesAccess field.

type PortCreateOpts

type PortCreateOpts struct {
	ports.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

PortCreateOpts represents the attributes used when creating a new port.

func (PortCreateOpts) ToPortCreateMap

func (opts PortCreateOpts) ToPortCreateMap() (map[string]interface{}, error)

ToPortCreateMap casts a CreateOpts struct to a map. It overrides ports.ToPortCreateMap to add the ValueSpecs field.

type PortDataSource added in v0.4.0

type PortDataSource struct {
	// contains filtered or unexported fields
}

func (*PortDataSource) Configure added in v0.4.0

func (*PortDataSource) Metadata added in v0.4.0

func (*PortDataSource) Read added in v0.4.0

func (*PortDataSource) Schema added in v0.4.0

type PortDataSourceAllowedAddressPairModel added in v0.4.0

type PortDataSourceAllowedAddressPairModel struct {
	IPAddress  types.String `tfsdk:"ip_address"`
	MACAddress types.String `tfsdk:"mac_address"`
}

type PortDataSourceExtraDHCPOptionModel added in v0.4.0

type PortDataSourceExtraDHCPOptionModel struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

type PortDataSourceModel added in v0.4.0

type PortDataSourceModel struct {
	Region types.String `tfsdk:"region"`
	SDN    types.String `tfsdk:"sdn"`

	AdminStateUp        types.Bool                              `tfsdk:"admin_state_up"`
	AllFixedIPs         types.List                              `tfsdk:"all_fixed_ips"`
	AllSecurityGroupIDs types.Set                               `tfsdk:"all_security_group_ids"`
	AllTags             types.Set                               `tfsdk:"all_tags"`
	AllowedAddressPairs []PortDataSourceAllowedAddressPairModel `tfsdk:"allowed_address_pairs"`
	Description         types.String                            `tfsdk:"description"`
	DeviceID            types.String                            `tfsdk:"device_id"`
	DeviceOwner         types.String                            `tfsdk:"device_owner"`
	DNSAssignment       types.List                              `tfsdk:"dns_assignment"`
	DNSName             types.String                            `tfsdk:"dns_name"`
	ExtraDHCPOption     []PortDataSourceExtraDHCPOptionModel    `tfsdk:"extra_dhcp_option"`
	FixedIP             types.String                            `tfsdk:"fixed_ip"`
	ID                  types.String                            `tfsdk:"id"`
	MACAddress          types.String                            `tfsdk:"mac_address"`
	Name                types.String                            `tfsdk:"name"`
	NetworkID           types.String                            `tfsdk:"network_id"`
	PortID              types.String                            `tfsdk:"port_id"`
	ProjectID           types.String                            `tfsdk:"project_id"`
	SecurityGroupIDs    types.Set                               `tfsdk:"security_group_ids"`
	Status              types.String                            `tfsdk:"status"`
	Tags                types.Set                               `tfsdk:"tags"`
	TenantID            types.String                            `tfsdk:"tenant_id"`
}

type PrivateDNSDomainExt

type PrivateDNSDomainExt struct {
	PrivateDNSDomain string `json:"private_dns_domain,omitempty"`
}

type RouterCreateOpts

type RouterCreateOpts struct {
	routers.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

RouterCreateOpts represents the attributes used when creating a new router.

func (RouterCreateOpts) ToRouterCreateMap

func (opts RouterCreateOpts) ToRouterCreateMap() (map[string]interface{}, error)

ToRouterCreateMap casts a CreateOpts struct to a map. It overrides routers.ToRouterCreateMap to add the ValueSpecs field.

type ServicesAccessExt

type ServicesAccessExt struct {
	ServicesAccess *bool `json:"enable_shadow_port,omitempty"`
}

type SubnetCreateOpts

type SubnetCreateOpts struct {
	subnets.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

SubnetCreateOpts represents the attributes used when creating a new subnet.

func (SubnetCreateOpts) ToSubnetCreateMap

func (opts SubnetCreateOpts) ToSubnetCreateMap() (map[string]interface{}, error)

ToSubnetCreateMap casts a CreateOpts struct to a map. It overrides subnets.ToSubnetCreateMap to add the ValueSpecs field.

type SubnetDataSource added in v0.4.0

type SubnetDataSource struct {
	// contains filtered or unexported fields
}

func (*SubnetDataSource) Configure added in v0.4.0

func (*SubnetDataSource) Metadata added in v0.4.0

func (*SubnetDataSource) Read added in v0.4.0

func (*SubnetDataSource) Schema added in v0.4.0

type SubnetDataSourceAllocationPoolModel added in v0.4.0

type SubnetDataSourceAllocationPoolModel struct {
	End   types.String `tfsdk:"end"`
	Start types.String `tfsdk:"start"`
}

type SubnetDataSourceHostRouteModel added in v0.4.0

type SubnetDataSourceHostRouteModel struct {
	DestinationCIDR types.String `tfsdk:"destination_cidr"`
	NextHop         types.String `tfsdk:"next_hop"`
}

type SubnetDataSourceModel added in v0.4.0

type SubnetDataSourceModel struct {
	SDN    types.String `tfsdk:"sdn"`
	Region types.String `tfsdk:"region"`

	AllTags         types.Set                             `tfsdk:"all_tags"`
	AllocationPools []SubnetDataSourceAllocationPoolModel `tfsdk:"allocation_pools"`
	CIDR            types.String                          `tfsdk:"cidr"`
	Description     types.String                          `tfsdk:"description"`
	DHCPEnabled     types.Bool                            `tfsdk:"dhcp_enabled"`
	DNSNameservers  types.Set                             `tfsdk:"dns_nameservers"`
	EnableDHCP      types.Bool                            `tfsdk:"enable_dhcp"`
	GatewayIP       types.String                          `tfsdk:"gateway_ip"`
	HostRoutes      []SubnetDataSourceHostRouteModel      `tfsdk:"host_routes"`
	ID              types.String                          `tfsdk:"id"`
	Name            types.String                          `tfsdk:"name"`
	NetworkID       types.String                          `tfsdk:"network_id"`
	SubnetID        types.String                          `tfsdk:"subnet_id"`
	SubnetPoolID    types.String                          `tfsdk:"subnetpool_id"`
	Tags            types.Set                             `tfsdk:"tags"`
	TenantID        types.String                          `tfsdk:"tenant_id"`
}

Jump to

Keyboard shortcuts

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