network

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError added in v0.0.5

func IsNotFoundError(err error) bool

func NetworkRBACPolicyType added in v0.0.5

func NetworkRBACPolicyType() types.ObjectType

func NewOpenstackNetworkDataSource

func NewOpenstackNetworkDataSource() datasource.DataSource

func NewOpenstackNetworkList

func NewOpenstackNetworkList() list.ListResource

func NewOpenstackNetworkPullAction

func NewOpenstackNetworkPullAction() action.Action

func NewOpenstackNetworkResource

func NewOpenstackNetworkResource() resource.Resource

func NewOpenstackNetworkUnlinkAction

func NewOpenstackNetworkUnlinkAction() action.Action

func OpenStackNestedSubNetType added in v0.0.5

func OpenStackNestedSubNetType() types.ObjectType

func OpenStackSubNetAllocationPoolType added in v0.0.5

func OpenStackSubNetAllocationPoolType() types.ObjectType

Types

type OpenstackNetworkClient added in v0.0.5

type OpenstackNetworkClient struct {
	Client *client.Client
}

func NewOpenstackNetworkClient added in v0.0.5

func NewOpenstackNetworkClient(c *client.Client) *OpenstackNetworkClient

func (*OpenstackNetworkClient) Configure added in v0.0.5

func (c *OpenstackNetworkClient) Configure(ctx context.Context, providerData interface{}) error

func (*OpenstackNetworkClient) Create added in v0.0.5

func (*OpenstackNetworkClient) Delete added in v0.0.5

func (c *OpenstackNetworkClient) Delete(ctx context.Context, id string) error

func (*OpenstackNetworkClient) Get added in v0.0.5

func (*OpenstackNetworkClient) List added in v0.0.5

func (*OpenstackNetworkClient) Pull added in v0.0.5

func (*OpenstackNetworkClient) SetMtu added in v0.0.5

func (c *OpenstackNetworkClient) Unlink(ctx context.Context, id string) error

func (*OpenstackNetworkClient) Update added in v0.0.5

type OpenstackNetworkCreateRequest

type OpenstackNetworkCreateRequest struct {
	Description *string `json:"description,omitempty" tfsdk:"description"`

	Name *string `json:"name" tfsdk:"name"`
}

type OpenstackNetworkDataSource

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

func (*OpenstackNetworkDataSource) Configure

func (*OpenstackNetworkDataSource) Metadata

func (*OpenstackNetworkDataSource) Read

func (*OpenstackNetworkDataSource) Schema

type OpenstackNetworkDataSourceModel

type OpenstackNetworkDataSourceModel struct {
	OpenstackNetworkModel
	Filters *OpenstackNetworkFiltersModel `tfsdk:"filters"`
}

type OpenstackNetworkFiltersModel

type OpenstackNetworkFiltersModel struct {
	BackendId            types.String `tfsdk:"backend_id"`
	CanManage            types.Bool   `tfsdk:"can_manage"`
	Customer             types.String `tfsdk:"customer"`
	CustomerAbbreviation types.String `tfsdk:"customer_abbreviation"`
	CustomerName         types.String `tfsdk:"customer_name"`
	CustomerNativeName   types.String `tfsdk:"customer_native_name"`
	CustomerUuid         types.String `tfsdk:"customer_uuid"`
	Description          types.String `tfsdk:"description"`
	DirectOnly           types.Bool   `tfsdk:"direct_only"`
	ExternalIp           types.String `tfsdk:"external_ip"`
	IsExternal           types.Bool   `tfsdk:"is_external"`
	Name                 types.String `tfsdk:"name"`
	NameExact            types.String `tfsdk:"name_exact"`
	Project              types.String `tfsdk:"project"`
	ProjectName          types.String `tfsdk:"project_name"`
	ProjectUuid          types.String `tfsdk:"project_uuid"`
	RbacOnly             types.Bool   `tfsdk:"rbac_only"`
	ServiceSettingsName  types.String `tfsdk:"service_settings_name"`
	ServiceSettingsUuid  types.String `tfsdk:"service_settings_uuid"`
	Tenant               types.String `tfsdk:"tenant"`
	TenantUuid           types.String `tfsdk:"tenant_uuid"`
	Type                 types.String `tfsdk:"type"`
	Uuid                 types.String `tfsdk:"uuid"`
}

func (*OpenstackNetworkFiltersModel) GetSchema added in v0.0.5

type OpenstackNetworkList

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

func (*OpenstackNetworkList) Configure

func (*OpenstackNetworkList) List

func (*OpenstackNetworkList) ListResourceConfigSchema

func (*OpenstackNetworkList) Metadata

type OpenstackNetworkListModel

type OpenstackNetworkListModel struct {
	Filters *OpenstackNetworkFiltersModel `tfsdk:"filters"`
}

type OpenstackNetworkModel

type OpenstackNetworkModel struct {
	UUID                    types.String `tfsdk:"id"`
	BackendId               types.String `tfsdk:"backend_id"`
	Customer                types.String `tfsdk:"customer"`
	Description             types.String `tfsdk:"description"`
	ErrorMessage            types.String `tfsdk:"error_message"`
	IsExternal              types.Bool   `tfsdk:"is_external"`
	MarketplaceResourceUuid types.String `tfsdk:"marketplace_resource_uuid"`
	Mtu                     types.Int64  `tfsdk:"mtu"`
	Name                    types.String `tfsdk:"name"`
	Project                 types.String `tfsdk:"project"`
	RbacPolicies            types.List   `tfsdk:"rbac_policies"`
	ResourceType            types.String `tfsdk:"resource_type"`
	SegmentationId          types.Int64  `tfsdk:"segmentation_id"`
	State                   types.String `tfsdk:"state"`
	Subnets                 types.List   `tfsdk:"subnets"`
	Tenant                  types.String `tfsdk:"tenant"`
	TenantName              types.String `tfsdk:"tenant_name"`
	TenantUuid              types.String `tfsdk:"tenant_uuid"`
	Type                    types.String `tfsdk:"type"`
	Url                     types.String `tfsdk:"url"`
}

func (*OpenstackNetworkModel) CopyFrom

CopyFrom maps the API response to the model fields.

type OpenstackNetworkPullAction

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

func (*OpenstackNetworkPullAction) Configure

func (*OpenstackNetworkPullAction) Invoke

func (*OpenstackNetworkPullAction) Metadata

func (*OpenstackNetworkPullAction) Schema

type OpenstackNetworkPullModel

type OpenstackNetworkPullModel struct {
	Uuid    types.String `tfsdk:"uuid"`
	Timeout types.String `tfsdk:"timeout"`
}

type OpenstackNetworkRbacPoliciesResponse

type OpenstackNetworkRbacPoliciesResponse struct {
	BackendId *string `json:"backend_id,omitempty" tfsdk:"backend_id"`

	Network *string `json:"network,omitempty" tfsdk:"network"`

	NetworkName *string `json:"network_name,omitempty" tfsdk:"network_name"`

	PolicyType *string `json:"policy_type,omitempty" tfsdk:"policy_type"`

	TargetTenant *string `json:"target_tenant,omitempty" tfsdk:"target_tenant"`

	TargetTenantName *string `json:"target_tenant_name,omitempty" tfsdk:"target_tenant_name"`

	Url *string `json:"url,omitempty" tfsdk:"url"`

	Uuid *string `json:"uuid,omitempty" tfsdk:"uuid"`
}

type OpenstackNetworkResource

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

OpenstackNetworkResource defines the resource implementation.

func (*OpenstackNetworkResource) Configure

func (*OpenstackNetworkResource) Create

func (*OpenstackNetworkResource) Delete

func (*OpenstackNetworkResource) ImportState

func (*OpenstackNetworkResource) Metadata

func (*OpenstackNetworkResource) Read

func (*OpenstackNetworkResource) Schema

func (*OpenstackNetworkResource) Update

type OpenstackNetworkResourceModel

type OpenstackNetworkResourceModel struct {
	OpenstackNetworkModel
	Timeouts timeouts.Value `tfsdk:"timeouts"`
}

OpenstackNetworkResourceModel describes the resource data model.

type OpenstackNetworkResponse

type OpenstackNetworkResponse struct {
	UUID *string `json:"uuid"`

	BackendId *string `json:"backend_id,omitempty" tfsdk:"backend_id"`

	Customer *string `json:"customer,omitempty" tfsdk:"customer"`

	Description *string `json:"description,omitempty" tfsdk:"description"`

	ErrorMessage *string `json:"error_message,omitempty" tfsdk:"error_message"`

	IsExternal *bool `json:"is_external,omitempty" tfsdk:"is_external"`

	MarketplaceResourceUuid *string `json:"marketplace_resource_uuid,omitempty" tfsdk:"marketplace_resource_uuid"`

	Mtu *int64 `json:"mtu,omitempty" tfsdk:"mtu"`

	Name *string `json:"name" tfsdk:"name"`

	Project *string `json:"project,omitempty" tfsdk:"project"`

	RbacPolicies *[]common.NetworkRBACPolicy `json:"rbac_policies,omitempty" tfsdk:"rbac_policies"`

	ResourceType *string `json:"resource_type,omitempty" tfsdk:"resource_type"`

	SegmentationId *int64 `json:"segmentation_id,omitempty" tfsdk:"segmentation_id"`

	State *string `json:"state,omitempty" tfsdk:"state"`

	Subnets *[]common.OpenStackNestedSubNet `json:"subnets,omitempty" tfsdk:"subnets"`

	Tenant *string `json:"tenant" tfsdk:"tenant"`

	TenantName *string `json:"tenant_name,omitempty" tfsdk:"tenant_name"`

	TenantUuid *string `json:"tenant_uuid,omitempty" tfsdk:"tenant_uuid"`

	Type *string `json:"type,omitempty" tfsdk:"type"`

	Url *string `json:"url,omitempty" tfsdk:"url"`
}

func (*OpenstackNetworkResponse) GetErrorMessage

func (r *OpenstackNetworkResponse) GetErrorMessage() string

func (*OpenstackNetworkResponse) GetState

func (r *OpenstackNetworkResponse) GetState() string

type OpenstackNetworkSetMtuActionRequest

type OpenstackNetworkSetMtuActionRequest struct {
	Mtu *int64 `json:"mtu,omitempty"`
}

type OpenstackNetworkSubnetsAllocationPoolsResponse

type OpenstackNetworkSubnetsAllocationPoolsResponse struct {
	End *string `json:"end,omitempty" tfsdk:"end"`

	Start *string `json:"start,omitempty" tfsdk:"start"`
}

type OpenstackNetworkSubnetsResponse

type OpenstackNetworkSubnetsResponse struct {
	AllocationPools *[]common.OpenStackSubNetAllocationPool `json:"allocation_pools,omitempty" tfsdk:"allocation_pools"`

	Cidr *string `json:"cidr,omitempty" tfsdk:"cidr"`

	Description *string `json:"description,omitempty" tfsdk:"description"`

	EnableDhcp *bool `json:"enable_dhcp,omitempty" tfsdk:"enable_dhcp"`

	GatewayIp *string `json:"gateway_ip,omitempty" tfsdk:"gateway_ip"`

	IpVersion *int64 `json:"ip_version,omitempty" tfsdk:"ip_version"`

	Name *string `json:"name,omitempty" tfsdk:"name"`

	Uuid *string `json:"uuid,omitempty" tfsdk:"uuid"`
}

type OpenstackNetworkUnlinkAction

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

func (*OpenstackNetworkUnlinkAction) Configure

func (*OpenstackNetworkUnlinkAction) Invoke

func (*OpenstackNetworkUnlinkAction) Metadata

func (*OpenstackNetworkUnlinkAction) Schema

type OpenstackNetworkUnlinkModel

type OpenstackNetworkUnlinkModel struct {
	Uuid    types.String `tfsdk:"uuid"`
	Timeout types.String `tfsdk:"timeout"`
}

type OpenstackNetworkUpdateRequest

type OpenstackNetworkUpdateRequest struct {
	Description *string `json:"description,omitempty" tfsdk:"description"`

	Name *string `json:"name,omitempty" tfsdk:"name"`
}

Jump to

Keyboard shortcuts

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