shared

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RouteDestinationTypes = map[string]attr.Type{
	"type":  types.StringType,
	"value": types.StringType,
}

RouteDestinationTypes Types corresponding to routeDestination

View Source
var RouteNextHopTypes = map[string]attr.Type{
	"type":  types.StringType,
	"value": types.StringType,
}

RouteNextHopTypes Types corresponding to routeNextHop

Functions

func GetDatasourceGetAttributes

func GetDatasourceGetAttributes() map[string]schema.Attribute

func GetRouteDataSourceAttributes

func GetRouteDataSourceAttributes() map[string]schema.Attribute

func GetRoutesDataSourceAttributes

func GetRoutesDataSourceAttributes() map[string]schema.Attribute

func MapRouteDestination

func MapRouteDestination(routeResp *iaasalpha.Route) (types.Object, error)

func MapRouteModel

func MapRouteModel(ctx context.Context, route *iaasalpha.Route, model *RouteModel, region string) error

func MapRouteNextHop

func MapRouteNextHop(routeResp *iaasalpha.Route) (types.Object, error)

func MapRouteReadModel

func MapRouteReadModel(ctx context.Context, route *iaasalpha.Route, model *RouteReadModel) error

func MapRoutingTableReadModel

func MapRoutingTableReadModel(ctx context.Context, routingTable *iaasalpha.RoutingTable, model *RoutingTableReadModel) error

func RouteModelTypes

func RouteModelTypes() map[string]attr.Type

func RouteReadModelTypes

func RouteReadModelTypes() map[string]attr.Type

func RouteResponseAttributes

func RouteResponseAttributes() map[string]schema.Attribute

func RoutingTableReadModelTypes

func RoutingTableReadModelTypes() map[string]attr.Type

func RoutingTableResponseAttributes

func RoutingTableResponseAttributes() map[string]schema.Attribute

Types

type RouteDestination

type RouteDestination struct {
	Type  types.String `tfsdk:"type"`
	Value types.String `tfsdk:"value"`
}

RouteDestination is the struct corresponding to RouteReadModel.Destination

type RouteModel

type RouteModel struct {
	RouteReadModel
	Id             types.String `tfsdk:"id"` // needed by TF
	OrganizationId types.String `tfsdk:"organization_id"`
	RoutingTableId types.String `tfsdk:"routing_table_id"`
	NetworkAreaId  types.String `tfsdk:"network_area_id"`
	Region         types.String `tfsdk:"region"`
}

type RouteNextHop

type RouteNextHop struct {
	Type  types.String `tfsdk:"type"`
	Value types.String `tfsdk:"value"`
}

RouteNextHop is the struct corresponding to RouteReadModel.NextHop

type RouteReadModel

type RouteReadModel struct {
	RouteId     types.String `tfsdk:"route_id"`
	Destination types.Object `tfsdk:"destination"`
	NextHop     types.Object `tfsdk:"next_hop"`
	Labels      types.Map    `tfsdk:"labels"`
	CreatedAt   types.String `tfsdk:"created_at"`
	UpdatedAt   types.String `tfsdk:"updated_at"`
}

type RoutingTableDataSourceModel

type RoutingTableDataSourceModel struct {
	RoutingTableReadModel
	Id             types.String `tfsdk:"id"` // needed by TF
	OrganizationId types.String `tfsdk:"organization_id"`
	NetworkAreaId  types.String `tfsdk:"network_area_id"`
	Region         types.String `tfsdk:"region"`
}

type RoutingTableReadModel

type RoutingTableReadModel struct {
	RoutingTableId types.String `tfsdk:"routing_table_id"`
	Name           types.String `tfsdk:"name"`
	Description    types.String `tfsdk:"description"`
	Labels         types.Map    `tfsdk:"labels"`
	CreatedAt      types.String `tfsdk:"created_at"`
	UpdatedAt      types.String `tfsdk:"updated_at"`
	Default        types.Bool   `tfsdk:"default"`
	SystemRoutes   types.Bool   `tfsdk:"system_routes"`
}

Jump to

Keyboard shortcuts

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