Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Firewall ¶
type Firewall interface { // EnsureChain checks if the specified chain exists and, if not, creates it. If the chain existed, return true. EnsureChain(table, chain, policy string) (bool, error) // DeleteChain deletes the specified chain. If the chain did not exist, return error. DeleteChain(table, chain string) error // EnsureRule checks if the specified rule is present and, if not, creates it. If the rule existed, return true. EnsureRule(pos int, table, chain string, rulespec ...string) (bool, error) // DeleteRule checks if the specified rule is present and, if so, deletes it. DeleteRule(table, chain string, rulespec ...string) error // CheckRule checks if the specified rule is present and return bool status and err. CheckRule(table, chain string, rulespec ...string) (bool, error) }
type IpsetResources ¶
type Repository ¶
type Repository interface { CreateOrUpdate(c *IpsetResources) error GetIpsetResources(name string) (*IpsetResources, error) GetIpsetTimestamp(name string) (time.Time, error) GetBoolKV(bucket, key string) (bool, error) SetBoolKV(bucket, key string, val bool) error GetRule(bucket, key string) ([]string, error) StoreRule(bucket, key string, rule []string) error GetStringKV(bucket, key string) (string, error) SetStringKV(bucket, key, val string) error ListBuckets() (map[string]struct{}, error) ListBucketsForDeletion() (map[string]struct{}, error) DeleteBucket(bucket string) error }
Click to show internal directories.
Click to hide internal directories.