forge

package
v0.0.0-...-e28121d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Port = 80

Variables

This section is empty.

Functions

func CreateService

func CreateService(ctx context.Context, client kubernetes.Interface, namespace string) (string, error)

func RetrieveOutboundIP

func RetrieveOutboundIP(dstip net.IP) (net.IP, error)

localIPPort gets the local ip and port based on the destination IP

func RetrieveServiceIP

func RetrieveServiceIP(ctx context.Context, client kubernetes.Interface, namespace string, create bool) (string, error)

func SynPacket

func SynPacket(srcip, dstip net.IP, srcport, dstport uint) ([]byte, error)

SynPacket forges a new syn packet towards a given destination.

func WatchService

func WatchService(ctx context.Context, client kubernetes.Interface, namespace string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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