sd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryTarget

type DiscoveryTarget map[string]string

func (*DiscoveryTarget) DebugString

func (t *DiscoveryTarget) DebugString() string

DebugString return unsorted labels as a string.

type Target

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

func NewTarget

func NewTarget(cid containerID, target DiscoveryTarget) (*Target, error)

func (*Target) Labels

func (t *Target) Labels() (uint64, labels.Labels)

func (*Target) ServiceName

func (t *Target) ServiceName() string

type TargetFinder

type TargetFinder interface {
	FindTarget(pid uint32) *Target
	DebugInfo() []string
	Update(args TargetsOptions)
}

func NewTargetFinder

func NewTargetFinder(fs fs.FS, l log.Logger, options TargetsOptions) (TargetFinder, error)

type TargetsOptions

type TargetsOptions struct {
	Targets            []DiscoveryTarget
	TargetsOnly        bool
	DefaultTarget      DiscoveryTarget
	ContainerCacheSize int
}

Jump to

Keyboard shortcuts

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