kubernetes/vendor/github.com/google/cadvisor/container/factory.go

type ContainerHandlerFactory

type MetricKind

const CpuUsageMetrics

const ProcessSchedulerMetrics

const PerCpuUsageMetrics

const MemoryUsageMetrics

const MemoryNumaMetrics

const CpuLoadMetrics

const DiskIOMetrics

const DiskUsageMetrics

const NetworkUsageMetrics

const NetworkTcpUsageMetrics

const NetworkAdvancedTcpUsageMetrics

const NetworkUdpUsageMetrics

const AppMetrics

const ProcessMetrics

const HugetlbUsageMetrics

const PerfMetrics

const ReferencedMemoryMetrics

const CPUTopologyMetrics

const ResctrlMetrics

const CPUSetMetrics

const OOMMetrics

var AllMetrics

var AllNetworkMetrics

func (mk MetricKind) String() string {}

type MetricSet

func (ms MetricSet) Has(mk MetricKind) bool {}

func (ms MetricSet) HasAny(ms1 MetricSet) bool {}

func (ms MetricSet) add(mk MetricKind) {}

func (ms MetricSet) String() string {}

// Not thread-safe, exported only for https://pkg.go.dev/flag#Value
func (ms *MetricSet) Set(value string) error {}

func (ms MetricSet) Difference(ms1 MetricSet) MetricSet {}

func (ms MetricSet) Append(ms1 MetricSet) MetricSet {}

var pluginsLock

var plugins

type Plugin

func RegisterPlugin(name string, plugin Plugin) error {}

func InitializeFSContext(context *fs.Context) error {}

func InitializePlugins(factory info.MachineInfoFactory, fsInfo fs.FsInfo, includedMetrics MetricSet) []watcher.ContainerWatcher {}

var factories

var factoriesLock

// Register a ContainerHandlerFactory. These should be registered from least general to most general
// as they will be asked in order whether they can handle a particular container.
func RegisterContainerHandlerFactory(factory ContainerHandlerFactory, watchTypes []watcher.ContainerWatchSource) {}

// Returns whether there are any container handler factories registered.
func HasFactories() bool {}

// Create a new ContainerHandler for the specified container.
func NewContainerHandler(name string, watchType watcher.ContainerWatchSource, metadataEnvAllowList []string, inHostNamespace bool) (ContainerHandler, bool, error) {}

// Clear the known factories.
func ClearContainerHandlerFactories() {}

func DebugInfo() map[string][]string {}

// GetReorderedFactoryList returns the list of ContainerHandlerFactory where the
// RawContainerHandler is always the last element.
func GetReorderedFactoryList(watchType watcher.ContainerWatchSource) []ContainerHandlerFactory {}