firewall

package
v0.0.0-...-151872f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Name string
	Role string
	CIDR *net.IPNet
}

type Port

type Port struct {
	Identifier *string
	RangeFrom  *uint16
	RangeTo    *uint16
	Single     *uint16
}

type Rule

type Rule struct {
	Comment      string
	Services     []Service
	Direction    string
	Sources      []Host
	Destinations []Host
}

func Rules

func Rules() (rules []*Rule)

type Service

type Service struct {
	Name     string
	Protocol string
	Ports    []Port
}

Jump to

Keyboard shortcuts

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