versionchecker

package
v0.1.31 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// the version checker dg will also gather pods and so has the same options
	// as the dynamic datagatherer
	DynamicPod k8s.ConfigDynamic
	// the nodes information is also gathered by the version checker datagatherer
	DynamicNode                 k8s.ConfigDynamic
	VersionCheckerClientOptions vcclient.Options
	// Currently unused, but keeping to allow future config of VersionChecker
	VersionCheckerCheckerOptions vcapi.Options
}

Config is the configuration for a VersionChecker DataGatherer.

func (*Config) NewDataGatherer

func (c *Config) NewDataGatherer(ctx context.Context) (datagatherer.DataGatherer, error)

NewDataGatherer creates a new VersionChecker DataGatherer

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML unmarshals the ConfigDynamic resolving GroupVersionResource.

type DataGatherer

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

DataGatherer is a VersionChecker DataGatherer

func (*DataGatherer) Delete added in v0.1.29

func (g *DataGatherer) Delete() error

func (*DataGatherer) Fetch

func (g *DataGatherer) Fetch() (interface{}, error)

Fetch retrieves cluster information from GKE.

func (*DataGatherer) Run added in v0.1.29

func (g *DataGatherer) Run(stopCh <-chan struct{}) error

Run starts the version checker data gatherer's dynamic informers for resource collection. Returns error if the pod and node data gatherers haven't been correctly initialized

func (*DataGatherer) WaitForCacheSync added in v0.1.29

func (g *DataGatherer) WaitForCacheSync(stopCh <-chan struct{}) error

WaitForCacheSync waits for the data gatherer's informers cache to sync before collecting the resources.

type PodResult

type PodResult struct {
	Pod     v1.Pod            `json:"pod"`
	Results []containerResult `json:"results"`
}

PodResult wraps a pod and a version checker result for an image found in one of the containers for that pod. Exported so the backend can destructure json.

Jump to

Keyboard shortcuts

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