Documentation ¶
Index ¶
- func DataSourceNetworkingFloatingIP() *schema.Resource
- func DataSourceNetworkingNetwork() *schema.Resource
- func DataSourceNetworkingRouter() *schema.Resource
- func GetSDN(d *schema.ResourceData) string
- func NetworkingAttributesTags(d *schema.ResourceData) []string
- func NetworkingReadAttributesTags(d *schema.ResourceData, tags []string)
- func NetworkingV2UpdateAttributesTags(d *schema.ResourceData) []string
- func NewPortDataSource() datasource.DataSource
- func NewSubnetDataSource() datasource.DataSource
- func ResourceNetworkingFloating() *schema.Resource
- func ResourceNetworkingFloatingIPAssociate() *schema.Resource
- func ResourceNetworkingNetwork() *schema.Resource
- func ResourceNetworkingPort() *schema.Resource
- func ResourceNetworkingPortSecGroupAssociate() *schema.Resource
- func ResourceNetworkingRouter() *schema.Resource
- func ResourceNetworkingRouterInterface() *schema.Resource
- func ResourceNetworkingRouterRoute() *schema.Resource
- func ResourceNetworkingSubnet() *schema.Resource
- func ResourceNetworkingSubnetRoute() *schema.Resource
- func ValidateSDN() schema.SchemaValidateDiagFunc
- type FloatingIPCreateOpts
- type NetworkCreateOpts
- type NetworkUpdateOpts
- type PortCreateOpts
- type PortDataSource
- func (d *PortDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *PortDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *PortDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *PortDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type PortDataSourceAllowedAddressPairModel
- type PortDataSourceExtraDHCPOptionModel
- type PortDataSourceModel
- type PrivateDNSDomainExt
- type RouterCreateOpts
- type ServicesAccessExt
- type SubnetCreateOpts
- type SubnetDataSource
- func (d *SubnetDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *SubnetDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *SubnetDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *SubnetDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type SubnetDataSourceAllocationPoolModel
- type SubnetDataSourceHostRouteModel
- type SubnetDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ResourceNetworkingPort ¶
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 (d *PortDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*PortDataSource) Metadata ¶ added in v0.4.0
func (d *PortDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*PortDataSource) Read ¶ added in v0.4.0
func (d *PortDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*PortDataSource) Schema ¶ added in v0.4.0
func (d *PortDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type PortDataSourceAllowedAddressPairModel ¶ added in v0.4.0
type PortDataSourceExtraDHCPOptionModel ¶ added in v0.4.0
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 (d *SubnetDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*SubnetDataSource) Metadata ¶ added in v0.4.0
func (d *SubnetDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*SubnetDataSource) Read ¶ added in v0.4.0
func (d *SubnetDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*SubnetDataSource) Schema ¶ added in v0.4.0
func (d *SubnetDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type SubnetDataSourceAllocationPoolModel ¶ added in v0.4.0
type SubnetDataSourceHostRouteModel ¶ added in v0.4.0
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"` }
Source Files ¶
- data_source_floatingip.go
- data_source_network.go
- data_source_port.go
- data_source_router.go
- data_source_subnet.go
- floatingip.go
- network.go
- port.go
- resource_floatingip.go
- resource_floatingip_associate.go
- resource_network.go
- resource_port.go
- resource_port_secgroup_associate.go
- resource_router.go
- resource_router_interface.go
- resource_router_route.go
- resource_subnet.go
- resource_subnet_route.go
- router.go
- router_interface.go
- router_route.go
- shared.go
- subnet.go
- subnet_route.go