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