firewall

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MPL-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// MkRule defines the name of the rule resource in the schema.
	MkRule = "rule"
)

Variables

This section is empty.

Functions

func Alias

func Alias() *schema.Resource

Alias returns a resource to manage aliases.

func IPSet

func IPSet() *schema.Resource

IPSet returns a resource to manage IP sets.

func Options

func Options() *schema.Resource

Options returns a resource to manage firewall options.

func Rules

func Rules() *schema.Resource

Rules returns a resource that manages firewall rules.

func RulesCreate

func RulesCreate(ctx context.Context, api firewall.Rule, d *schema.ResourceData) diag.Diagnostics

RulesCreate creates new firewall rules.

func RulesDelete

func RulesDelete(ctx context.Context, api firewall.Rule, d *schema.ResourceData) diag.Diagnostics

RulesDelete deletes all rules.

func RulesRead

RulesRead reads rules from the API and updates the state.

func RulesUpdate

func RulesUpdate(ctx context.Context, api firewall.Rule, d *schema.ResourceData) diag.Diagnostics

RulesUpdate updates rules.

Types

This section is empty.

Jump to

Keyboard shortcuts

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