Documentation ¶
Index ¶
- Variables
- func AggregateEntityIDs(devices []linodego.FirewallDevice, entityType linodego.FirewallDeviceType) []int
- func NewDataSource() datasource.DataSource
- func ParseFirewallRules(ctx context.Context, rules []linodego.FirewallRule) (*basetypes.ListValue, diag.Diagnostics)
- func Resource() *schema.Resource
- type DataSource
- type FirewallModel
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)
Types ¶
type DataSource ¶
type DataSource struct {
helper.BaseDataSource
}
func (*DataSource) Read ¶
func (d *DataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.