utils

package
v0.0.0-...-302a361 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Errorf func(string, ...interface{})

Errorf provides logginf functionality inside plugins

View Source
var Logb func(int) bool

Logb tells whether to log

View Source
var Logf func(int, string, ...interface{})

Logf provides logging functionality inside plugins

View Source
var Warningf func(string, ...interface{})

Warningf provides logging functionality inside plugins

Functions

func AssignMap

func AssignMap(x interface{}, keys interface{}, val interface{})

func CompareContainer

func CompareContainer(cont0 *types.ContainerInfo, cont1 *types.ContainerInfo) bool

func CompareContainers

func CompareContainers(conts0 map[string]types.ContainerInfo, conts1 map[string]types.ContainerInfo) bool

func CompareMapStringString

func CompareMapStringString(x map[string]string, y map[string]string)

func CompareNode

func CompareNode(node0 *types.NodeInfo, node1 *types.NodeInfo) bool

func ComparePod

func ComparePod(pod0 *types.PodInfo, pod1 *types.PodInfo) bool

func Error

func Error(format string, args ...interface{})

func GetMap

func GetMap(x interface{}, keys interface{}) interface{}

func LocalIPsWithoutLoopback

func LocalIPsWithoutLoopback() ([]net.IP, error)

func Log

func Log(level int, format string, args ...interface{})

func LogV

func LogV(level int) bool

func SortedStringKeys

func SortedStringKeys(x interface{}) []string

sorted string keys

func Warning

func Warning(format string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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