k8

package
v0.0.0-...-56ddd06 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONTAINER_NAME                = "CONTAINER_NAME"
	CONTAINER_ID_FULL             = "CONTAINER_ID_FULL"
	KubernetesContainerNameRegexp = `^k8s_(?P<container_name>[^\._]+)\.?[^_]*_(?P<pod_name>[^_]+)_(?P<namespace>[^_]+)_[^_]+_[a-f0-9]+$`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(conf Config) *Client

func NewWithTracker

func NewWithTracker(tracker tracker, conf Config) *Client

func (*Client) Transform

func (c *Client) Transform(rec *types.Record) (*types.Record, error)

type Config

type Config struct {
	KubernetesContainerNameRegexp string
	K8ConfigPath                  string
	NodeName                      string
	MaxPodsCache                  int
}

Jump to

Keyboard shortcuts

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