ufwhandler

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(client *client.Client, ctx *context.Context)

func CreateUfwRule

func CreateUfwRule(ch <-chan *types.ContainerJSON, c *cache.Cache)

func DeleteUfwRule

func DeleteUfwRule(containerID <-chan string, c *cache.Cache)

func Sync added in v0.9.0

func Sync(createChannel chan *types.ContainerJSON, client *client.Client, ctx *context.Context)

Types

type TrackedContainer

type TrackedContainer struct {
	Name             string
	IPAddress        string
	Labels           map[string]string
	UfwInboundRules  []UfwRule
	UfwOutboundRules []UfwRule
}

type UfwRule

type UfwRule struct {
	CIDR    string
	Port    string
	Proto   string
	Comment string
}

Jump to

Keyboard shortcuts

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