Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...CollectorOption) metadatax.Collector
Types ¶
type CollectorOption ¶
type CollectorOption func(*collector)
func CollectorWithExtractENVs ¶
func CollectorWithExtractENVs() CollectorOption
func CollectorWithMetadataContainerInitFunc ¶
func CollectorWithMetadataContainerInitFunc(fn func() metadatax.MetadataContainer) CollectorOption
func CollectorWithProcessInfoFunc ¶
func CollectorWithProcessInfoFunc(fn ProcessInfoFunc) CollectorOption
type ProcessInfo ¶
type ProcessInfo interface { NameWithContext(ctx context.Context) (string, error) CmdlineWithContext(ctx context.Context) (string, error) UidsWithContext(ctx context.Context) ([]int32, error) GidsWithContext(ctx context.Context) ([]int32, error) GroupsWithContext(ctx context.Context) ([]int32, error) EnvironWithContext(ctx context.Context) ([]string, error) ExeWithContext(ctx context.Context) (string, error) }
type ProcessInfoFunc ¶
type ProcessInfoFunc func(ctx context.Context, pid int32) (ProcessInfo, error)
Click to show internal directories.
Click to hide internal directories.