provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddressesFromPool added in v0.1.0

func GetAddressesFromPool(pool *providerDataPool) []providerDataPoolAddress

func New

func New() provider.Provider

func NewIpamAllocateResource added in v0.1.0

func NewIpamAllocateResource() resource.Resource

func ValidateIPAddress added in v0.1.0

func ValidateIPAddress(ip string) bool

func ValidateIPRange added in v0.1.0

func ValidateIPRange(fromIp, toIp string) bool

func ValidatePrefixLength added in v0.1.0

func ValidatePrefixLength(prefixLength int64) bool

Types

type Allocate

type Allocate struct {
	Id    types.String            `tfsdk:"id"`
	Pool  types.String            `tfsdk:"pool"`
	Hosts map[string]AllocateHost `tfsdk:"hosts"`
}

type AllocateHost added in v0.1.0

type AllocateHost struct {
	Ip           types.String `tfsdk:"ip"`
	PrefixLength types.Int64  `tfsdk:"prefix_length"`
	Gateway      types.String `tfsdk:"gateway"`
}

Jump to

Keyboard shortcuts

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