Documentation ¶
Overview ¶
Package adapter exports top-level adapter logic.
Index ¶
Constants ¶
View Source
const ( // Name of the adapter. Name = "newrelic-k8s-metrics-adapter" // DefaultSecurePort is a default port adapter will be listening on using HTTPS. DefaultSecurePort = 6443 )
Variables ¶
This section is empty.
Functions ¶
func ParseFlags ¶
ParseFlags parses given arguments as custom custom-metrics-apiserver into given adapter base.
It also allows specifying extra flags if one wants to add extra flags to API server built on top of adapter base.
If adapter is nil, temporary adapter will be used.
Extra flags are also optional.
Types ¶
type Adapter ¶
type Adapter interface {
Run(<-chan struct{}) error
}
Adapter represents adapter functionality.
func NewAdapter ¶
NewAdapter validates given adapter options and creates new runnable adapter instance.
Click to show internal directories.
Click to hide internal directories.