network

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchema

func GetSchema(opts ...networkSchemaOpts) superschema.Schema

networkSchema

This function is used to create the schema for the catalog resource and datasource. Default is to create a resource schema. If you want to create a datasource schema you must pass in the withDataSource() option.

func SetIsolated

func SetIsolated() networkSchemaOpts

Set bool to true to create a schema for an isolated network.

func SetIsolatedVapp

func SetIsolatedVapp() networkSchemaOpts

Set bool to true to create a schema for an isolated vApp network.

func SetRouted

func SetRouted() networkSchemaOpts

Set bool to true to create a schema for a routed network.

func SetRoutedVapp

func SetRoutedVapp() networkSchemaOpts

Types

type GlobalResourceModel

type GlobalResourceModel struct {
	// BASE
	ID                types.String
	Name              types.String
	Description       types.String
	Gateway           types.String
	PrefixLength      types.Int64
	DNS1              types.String
	DNS2              types.String
	DNSSuffix         types.String
	StaticIPPool      types.Set
	VDCIDOrVDCGroupID types.String

	// ROUTED
	EdgeGatewayID   types.String
	EdgegatewayName types.String
	InterfaceType   types.String
}

type Kind

type Kind struct {
	TypeOfNetwork Type
}

func (Kind) SetNetworkAPIObject

SetNetowrkAPIObject set the network object.

type Network

type Network interface {
	SetNetworkAPIObject(ctx context.Context, plan any) (*govcdtypes.OpenApiOrgVdcNetwork, diag.Diagnostics)
}

type StaticIPPool

type StaticIPPool struct {
	StartAddress types.String `tfsdk:"start_address"`
	EndAddress   types.String `tfsdk:"end_address"`
}

type Type

type Type int
const (
	ISOLATED   Type = iota
	NAT_ROUTED      //nolint:revive,stylecheck
	ISOLATEDVAPP
	ROUTEDVAPP
)

Jump to

Keyboard shortcuts

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