common

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConnectionFilter = connectionFilter{
						// contains filtered or unexported fields
	}
	PortFilter *portFilter

	HttpFilter *httpFilter
)
View Source
var ContainerFilter *containerFilter

Functions

func AuthHeaders

func AuthHeaders() map[string]string

func ContainerIdToOtelServiceName

func ContainerIdToOtelServiceName(containerId string) string

func IsIpExternal

func IsIpExternal(ip netaddr.IP) bool

func IsIpPrivate

func IsIpPrivate(ip netaddr.IP) bool

func IsNotExist

func IsNotExist(err error) bool

func NormalizeFQDN

func NormalizeFQDN(fqdn string, requestType string) string

func ParseKubernetesVolumeSource

func ParseKubernetesVolumeSource(source string) string

func ReadIntFromFile

func ReadIntFromFile(filePath string) (int64, error)

func ReadUintFromFile

func ReadUintFromFile(filePath string) (uint64, error)

func SetKernelVersion

func SetKernelVersion(version string) error

func TruncateUtf8

func TruncateUtf8(s string, maxLength int) string

Types

type DestinationKey

type DestinationKey struct {
	// contains filtered or unexported fields
}

func NewDestinationKey

func NewDestinationKey(dst, actualDst netaddr.IPPort, domain *Domain) DestinationKey

func (DestinationKey) ActualDestination

func (dk DestinationKey) ActualDestination() HostPort

func (DestinationKey) ActualDestinationIfKnown

func (dk DestinationKey) ActualDestinationIfKnown() HostPort

func (DestinationKey) ActualDestinationLabelValue

func (dk DestinationKey) ActualDestinationLabelValue() string

func (DestinationKey) Destination

func (dk DestinationKey) Destination() HostPort

func (DestinationKey) DestinationLabelValue

func (dk DestinationKey) DestinationLabelValue() string

func (DestinationKey) String

func (dk DestinationKey) String() string

type Domain

type Domain struct {
	FQDN      string
	SpecifyIP bool
}

func NewDomain

func NewDomain(fqdn string, ips []netaddr.IP) *Domain

func (*Domain) String

func (d *Domain) String() string

type HostPort

type HostPort struct {
	// contains filtered or unexported fields
}

func HostPortFromIPPort

func HostPortFromIPPort(ipPort netaddr.IPPort) HostPort

func HostPortWithEmptyIP

func HostPortWithEmptyIP(host string, port uint16) HostPort

func (HostPort) Host

func (hp HostPort) Host() string

func (HostPort) IP

func (hp HostPort) IP() netaddr.IP

func (HostPort) IPPort

func (hp HostPort) IPPort() netaddr.IPPort

func (HostPort) Port

func (hp HostPort) Port() uint16

func (HostPort) String

func (hp HostPort) String() string

type Version

type Version struct {
	Major, Minor, Patch int
}

func GetKernelVersion

func GetKernelVersion() Version

func NewVersion

func NewVersion(major, minor, patch int) Version

func VersionFromString

func VersionFromString(version string) (Version, error)

func (Version) GreaterOrEqual

func (v Version) GreaterOrEqual(other Version) bool

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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