Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerSecurity ¶
type ContainerSecurity struct { ID string Pid int Pretend bool SecurityGroups map[string][]uint16 // ipgroup name -> ports // contains filtered or unexported fields }
func NewContainerSecurity ¶
func (ContainerSecurity) String ¶
func (c ContainerSecurity) String() string
type NetworkSecurity ¶
type NetworkSecurity struct { sync.Mutex Pretend bool SaveFile string // where to save state DeniedIPs map[string]bool // list of denied IPs. map for easy existence check IPGroups map[string][]string // group name -> list of infrastructure IPs to blanket deny Containers map[string]*ContainerSecurity // container id -> ContainerSecurity }
func New ¶
func New(saveFile string, pretend bool) *NetworkSecurity
func (*NetworkSecurity) AddContainerSecurity ¶
func (*NetworkSecurity) DeleteIPGroup ¶
func (n *NetworkSecurity) DeleteIPGroup(name string) error
func (*NetworkSecurity) RemoveContainerSecurity ¶
func (n *NetworkSecurity) RemoveContainerSecurity(id string) error
func (*NetworkSecurity) UpdateIPGroup ¶
func (n *NetworkSecurity) UpdateIPGroup(name string, ips []string) error
Click to show internal directories.
Click to hide internal directories.