ipaddress

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Range

type Range struct {
	SubNetMask *int32  `json:"subnetMask,omitempty"` // The subnet mask of the IP address range. Valid values range from 0 to 128.
	Address    string  `json:"address"`              // The IP address to be mapped. \n\nFor an IP address range, this is the **from** address.
	ToAddress  *string `json:"addressTo,omitempty"`  // The **to** address of the IP address range.
}

Range The IP address or the IP address range to be mapped to the location

func (*Range) MarshalHCL

func (me *Range) MarshalHCL(properties hcl.Properties) error

func (*Range) Schema

func (me *Range) Schema() map[string]*schema.Schema

func (*Range) UnmarshalHCL

func (me *Range) UnmarshalHCL(decoder hcl.Decoder) error

type Ranges

type Ranges []*Range

func (Ranges) MarshalHCL

func (me Ranges) MarshalHCL(properties hcl.Properties) error

func (*Ranges) Schema

func (me *Ranges) Schema() map[string]*schema.Schema

func (*Ranges) UnmarshalHCL

func (me *Ranges) UnmarshalHCL(decoder hcl.Decoder) error

type RestrictionSettings

type RestrictionSettings struct {
	Mode         restriction.Mode `json:"mode"`                            // The mode of the list of ip address restrictions. Possible values area `EXCLUDE` and `INCLUDE`.
	Restrictions Ranges           `json:"ipAddressRestrictions,omitempty"` // The IP addresses or the IP address ranges to be mapped to the location
}

RestrictionSettings Settings for restricting certain ip addresses and for introducing subnet mask. It also restricts the mode

func (*RestrictionSettings) MarshalHCL

func (me *RestrictionSettings) MarshalHCL(properties hcl.Properties) error

func (*RestrictionSettings) Schema

func (me *RestrictionSettings) Schema() map[string]*schema.Schema

func (*RestrictionSettings) UnmarshalHCL

func (me *RestrictionSettings) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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