collector

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterCollector

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

func NewClusterCollector

func NewClusterCollector(restConfig *rest.Config, opts *ClusterOpts, additionalKinds []string) (*ClusterCollector, error)

func (*ClusterCollector) Get

func (c *ClusterCollector) Get() ([]map[string]interface{}, error)

func (ClusterCollector) GetRestConfig

func (c ClusterCollector) GetRestConfig() *rest.Config

func (ClusterCollector) GetServerVersion

func (c ClusterCollector) GetServerVersion() (*judge.Version, error)

func (ClusterCollector) Name

func (c ClusterCollector) Name() string

type ClusterOpts

type ClusterOpts struct {
	ClientSet       dynamic.Interface
	DiscoveryClient discovery.DiscoveryInterface
}

type Collector

type Collector interface {
	Get() ([]map[string]interface{}, error)
	Name() string
}

func InitCollectors

func InitCollectors(config *Config, restConfig *rest.Config) []Collector

type Config

type Config struct {
	// AdditionalKinds yet to be implemented
	AdditionalKinds []string
	Cluster         bool
	Output          string
	TargetVersion   *judge.Version
}

func NewCollectorConfig

func NewCollectorConfig() (*Config, error)

type VersionCollector

type VersionCollector interface {
	GetServerVersion() (*judge.Version, error)
}

Jump to

Keyboard shortcuts

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