generic

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firewall

type Firewall struct {
	// Name of the firewall
	Name string
	// Allowed IPv4 Addresses
	AllowedIPv4Addresses []string
	// Misc key/value pair field. Any extra information needed by the Provider implementation to
	// perform the basic firewall operations can be stored here.
	Misc map[string]any
}

Firewall is a general type to represent a unique firewall from any provider implementing the Provider interface.

type Provider

type Provider interface {
	List(ctx context.Context) ([]Firewall, error)
	Get(ctx context.Context, name string) (*Firewall, error)
	Update(ctx context.Context, name string, sourceRanges []string) error
}

Provider describes the behavior that a provider should implement in order to be usable by fwsync.

Jump to

Keyboard shortcuts

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