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.
Click to show internal directories.
Click to hide internal directories.