collector

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 23 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FAKE_VERSION        = "1.2.3"
	FAKE_COLLECTOR_NAME = "Fake"
)
View Source
const CLUSTER_COLLECTOR_NAME = "Cluster"
View Source
const FILE_COLLECTOR_NAME = "File"
View Source
const HELM_V3_COLLECTOR_NAME = "Helm v3"

Variables

This section is empty.

Functions

func NewFakeCollector

func NewFakeCollector() *fakeCollector

Types

type ClusterCollector

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

func NewClusterCollector

func NewClusterCollector(opts *ClusterOpts, additionalKinds []string, additionalAnnotations []string, userAgent 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 {
	Kubeconfig      string
	KubeContext     string
	ClientSet       dynamic.Interface
	DiscoveryClient discovery.DiscoveryInterface
}

type Collector

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

type FileCollector

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

func NewFileCollector

func NewFileCollector(opts *FileOpts) (*FileCollector, error)

func (*FileCollector) Get

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

func (FileCollector) Name

func (c FileCollector) Name() string

type FileOpts

type FileOpts struct {
	Filenames []string
}

type HelmV3Collector

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

func NewHelmV3Collector

func NewHelmV3Collector(opts *HelmV3Opts, userAgent string) (*HelmV3Collector, error)

func (*HelmV3Collector) Get

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

func (HelmV3Collector) GetRestConfig

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

func (HelmV3Collector) GetServerVersion

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

func (HelmV3Collector) Name

func (c HelmV3Collector) Name() string

type HelmV3Opts

type HelmV3Opts struct {
	Kubeconfig      string
	KubeContext     string
	DiscoveryClient discovery.DiscoveryInterface
	CoreClient      corev1.CoreV1Interface
}

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