providers

package
v0.0.0-...-fd6b471 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudClient

type CloudClient interface {
	// GetProviderName returns the name of the cloud provider.
	GetProviderName() string
	// MaxSourcesPerRule returns the maximum number of source range or IP that a firewall rule can contain.
	MaxSourcesPerRule() int
	// MaxRules returns the maximum number of rule(s) that will be created.
	MaxRules() int
	// Priority returns the lowest priority that will be assigned to generated rules. Defaults to 0.
	Priority() int64
	// GetRules returns the firewall rules that matches the ruleNamePrefix.
	GetRules(ruleNamePrefix string) ([]*models.FirewallRule, error)
	// CreateRule creates the firewall rule at the cloud provider.
	CreateRule(rule *models.FirewallRule) error
	// DeleteRule deletes the firewall rule at the cloud provider that matches the rule name.
	DeleteRule(rule *models.FirewallRule) error
	// PatchRule updates the source ranges of the firewall rule at the cloud provider that matches the rule name.
	PatchRule(rule *models.FirewallRule) error
}

CloudClient is an interface representing cloud providers client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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