Documentation
¶
Index ¶
- func ContainsPort(ports []PortWhitelist, target PortWhitelist) bool
- func LegacySystemPortKey(port SystemPort) string
- func NormalizeSystemPorts(ports []SystemPort) (map[string]SystemPort, error)
- func PortWhitelistKey(item PortWhitelist) string
- func PortWhitelistMap(items []PortWhitelist) map[string]struct{}
- func RuleForSystemPort(provider filter.Provider, port SystemPort) filter.FirewallRule
- func SortedSystemPortKeys(ports map[string]SystemPort) []string
- func SystemPortKey(port SystemPort) string
- func WrapBatchCommandError(command, input string, err error) error
- type BaseOperation
- type PortWhitelist
- type SystemPort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsPort ¶
func ContainsPort(ports []PortWhitelist, target PortWhitelist) bool
func LegacySystemPortKey ¶
func LegacySystemPortKey(port SystemPort) string
func NormalizeSystemPorts ¶
func NormalizeSystemPorts(ports []SystemPort) (map[string]SystemPort, error)
func PortWhitelistKey ¶
func PortWhitelistKey(item PortWhitelist) string
func PortWhitelistMap ¶
func PortWhitelistMap(items []PortWhitelist) map[string]struct{}
func RuleForSystemPort ¶
func RuleForSystemPort(provider filter.Provider, port SystemPort) filter.FirewallRule
func SortedSystemPortKeys ¶
func SortedSystemPortKeys(ports map[string]SystemPort) []string
func SystemPortKey ¶
func SystemPortKey(port SystemPort) string
func WrapBatchCommandError ¶
WrapBatchCommandError keeps successful task logs compact while making failed generated firewall batches directly diagnosable from the task log.
Types ¶
type BaseOperation ¶
type BaseOperation string
const ( BaseOperationInit BaseOperation = "init-base" BaseOperationBind BaseOperation = "bind-base" BaseOperationBindWithoutInit BaseOperation = "bind-base-without-init" BaseOperationUnbind BaseOperation = "unbind-base" )
type PortWhitelist ¶
type PortWhitelist = filter.PortWhitelist
func ExcludePorts ¶
func ExcludePorts(ports, excluded []PortWhitelist) []PortWhitelist
func NormalizePortWhitelist ¶
func NormalizePortWhitelist(items []PortWhitelist) []PortWhitelist
func ParsePortWhitelist ¶
func ParsePortWhitelist(value string) ([]PortWhitelist, error)
type SystemPort ¶
Click to show internal directories.
Click to hide internal directories.