firewall

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RuleObjectType = types.ObjectType{
	AttrTypes: map[string]attr.Type{
		"label":    types.StringType,
		"action":   types.StringType,
		"ports":    types.StringType,
		"protocol": types.StringType,
		"ipv4":     types.ListType{ElemType: types.StringType},
		"ipv6":     types.ListType{ElemType: types.StringType},
	},
}

Functions

func AggregateEntityIDs

func AggregateEntityIDs(devices []linodego.FirewallDevice, entityType linodego.FirewallDeviceType) []int

func NewDataSource

func NewDataSource() datasource.DataSource

func ParseFirewallRules added in v2.14.0

func ParseFirewallRules(
	ctx context.Context,
	rules []linodego.FirewallRule,
) (*basetypes.ListValue, diag.Diagnostics)

func Resource

func Resource() *schema.Resource

Types

type DataSource

type DataSource struct {
	helper.BaseDataSource
}

func (*DataSource) Read

type FirewallModel

type FirewallModel struct {
	ID             types.Int64  `tfsdk:"id"`
	Label          types.String `tfsdk:"label"`
	Tags           types.Set    `tfsdk:"tags"`
	Disabled       types.Bool   `tfsdk:"disabled"`
	Inbound        types.List   `tfsdk:"inbound"`
	InboundPolicy  types.String `tfsdk:"inbound_policy"`
	Outbound       types.List   `tfsdk:"outbound"`
	OutboundPolicy types.String `tfsdk:"outbound_policy"`
	Linodes        types.Set    `tfsdk:"linodes"`
	NodeBalancers  types.Set    `tfsdk:"nodebalancers"`
	Devices        types.List   `tfsdk:"devices"`
	Status         types.String `tfsdk:"status"`
	Created        types.String `tfsdk:"created"`
	Updated        types.String `tfsdk:"updated"`
}

FirewallModel describes the Terraform resource data model to match the resource schema.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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