common

package
v1.23.11 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func AuthHeaders added in v1.18.4

func AuthHeaders() map[string]string

func ContainerIdToOtelServiceName added in v1.13.3

func ContainerIdToOtelServiceName(containerId string) string

func IsIpExternal added in v1.23.9

func IsIpExternal(ip netaddr.IP) bool

func IsIpPrivate

func IsIpPrivate(ip netaddr.IP) bool

func IsNotExist

func IsNotExist(err error) bool

func NormalizeFQDN added in v1.22.2

func NormalizeFQDN(fqdn string, requestType string) string

func ParseKubernetesVolumeSource added in v1.0.16

func ParseKubernetesVolumeSource(source string) string

func ReadIntFromFile added in v1.22.9

func ReadIntFromFile(filePath string) (int64, error)

func ReadUintFromFile added in v1.22.9

func ReadUintFromFile(filePath string) (uint64, error)

func SetKernelVersion added in v1.22.3

func SetKernelVersion(version string) error

Types

type DestinationKey added in v1.21.10

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

func NewDestinationKey added in v1.21.10

func NewDestinationKey(dst, actualDst netaddr.IPPort, fqdn string) DestinationKey

func (DestinationKey) ActualDestination added in v1.21.10

func (dk DestinationKey) ActualDestination() HostPort

func (DestinationKey) ActualDestinationIfKnown added in v1.21.10

func (dk DestinationKey) ActualDestinationIfKnown() HostPort

func (DestinationKey) ActualDestinationLabelValue added in v1.21.10

func (dk DestinationKey) ActualDestinationLabelValue() string

func (DestinationKey) Destination added in v1.21.10

func (dk DestinationKey) Destination() HostPort

func (DestinationKey) DestinationLabelValue added in v1.21.10

func (dk DestinationKey) DestinationLabelValue() string

func (DestinationKey) String added in v1.21.10

func (dk DestinationKey) String() string

type HostPort added in v1.21.10

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

func HostPortFromIPPort added in v1.21.10

func HostPortFromIPPort(ipPort netaddr.IPPort) HostPort

func HostPortWithEmptyIP added in v1.21.10

func HostPortWithEmptyIP(host string, port uint16) HostPort

func (HostPort) Host added in v1.21.10

func (hp HostPort) Host() string

func (HostPort) IP added in v1.21.10

func (hp HostPort) IP() netaddr.IP

func (HostPort) IPPort added in v1.21.10

func (hp HostPort) IPPort() netaddr.IPPort

func (HostPort) Port added in v1.21.10

func (hp HostPort) Port() uint16

func (HostPort) String added in v1.21.10

func (hp HostPort) String() string

type Version added in v1.22.3

type Version struct {
	Major, Minor, Patch int
}

func GetKernelVersion added in v1.22.3

func GetKernelVersion() Version

func NewVersion added in v1.22.3

func NewVersion(major, minor, patch int) Version

func VersionFromString added in v1.22.3

func VersionFromString(version string) (Version, error)

func (Version) GreaterOrEqual added in v1.22.3

func (v Version) GreaterOrEqual(other Version) bool

func (Version) String added in v1.22.3

func (v Version) String() string

Jump to

Keyboard shortcuts

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