Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResourceLister ¶
func NewResourceLister(pl v1listers.PodLister, sl v1listers.ServiceLister, nl v1listers.NodeLister) discovery.ResourceLister
Types ¶
type AuthChecker ¶
type AuthChecker struct {
// contains filtered or unexported fields
}
func NewAuthChecker ¶
func NewAuthChecker(accessGetter authv1.SelfSubjectAccessReviewInterface, namespace string, refreshInterval time.Duration, reportInterval time.Duration) *AuthChecker
func TestAuthChecker ¶
func TestAuthChecker(accessGetter authv1.SelfSubjectAccessReviewInterface, namespace string, refreshInterval time.Duration, reportInterval time.Duration, logger func(format string, args ...interface{})) *AuthChecker
func (*AuthChecker) CanListSecrets ¶
func (checker *AuthChecker) CanListSecrets() bool
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the discovery of kubernetes targets based on annotations or configuration rules.
func NewDiscoveryManager ¶
NewDiscoveryManager creates a new instance of a discovery manager based on the given configuration.
type RunConfig ¶
type RunConfig struct { KubeClient kubernetes.Interface DiscoveryConfig discovery.Config Handler metrics.ProviderHandler Lister discovery.ResourceLister ScrapeCluster bool }
RunConfig encapsulates the runtime configuration required for a discovery manager
Source Files ¶
Click to show internal directories.
Click to hide internal directories.