helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, message ...interface{})

Debug prints debug messages to logs

func GetMtime

func GetMtime() (uint64, error)

GetMtime gets a timestamp which can be compared with the output of bpf_ktime_get_ns() helper. Taken from cilium...

func Htonl

func Htonl(i uint32) uint32

Htonl converts to network byte order long uint32.

func Htons

func Htons(i uint16) uint16

Htons converts to network byte order short uint16.

func IP4toDec

func IP4toDec(IPv4Addr string) uint32

IP4toDec transforms and IPv4 to decimal

func InClusterAuth

func InClusterAuth() (config *rest.Config)

InClusterAuth creates config and creds for out of cluster auth

func Ntohl

func Ntohl(i uint32) uint32

Ntohl converts from network byte order to host uint32.

func Ntohs

func Ntohs(i uint16) uint16

Ntohs converts from network byte order to host uint16.

func OpenRawSock

func OpenRawSock(index int) (int, error)

OpenRawSock opens a raw socket

func OutOfClusterAuth

func OutOfClusterAuth() (config *rest.Config)

OutOfClusterAuth creates config and creds for out of cluster auth

func Ping

func Ping(ip string)

Ping checks ip thus populating ARP and bridge MAC table

Types

This section is empty.

Jump to

Keyboard shortcuts

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