collector

package
v0.10.0-alpha.2-cloud Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterRegionTitle = "Cluster Region"
	ClusterRegionPath  = "host-collectors/extend/region_name.json"
)
View Source
const DefaultHostUtilityName = "Host Utility"
View Source
const DefaultHostUtilityPath = "utility"
View Source
const UtilityPathFormat = "host-collectors/utility/%s.json"

Variables

View Source
var RestConfigFn = func() (*rest.Config, error) {

	return cmdutil.NewFactory(cmdutil.NewMatchVersionFlags(cliutil.NewConfigFlagNoWarnings())).ToRESTConfig()
}

Functions

func GetExtendHostCollector

func GetExtendHostCollector(kbCollector *preflightv1beta2.ExtendHostCollect, bundlePath string) (collect.HostCollector, bool)

func ResolveRegionNameByEndPoint

func ResolveRegionNameByEndPoint(providerName, endPoint string) string

Types

type ClusterRegionInfo

type ClusterRegionInfo struct {
	RegionName string `json:"regionName"`
}

type CollectClusterRegion

type CollectClusterRegion struct {
	HostCollector *preflightv1beta2.ClusterRegion
	BundlePath    string
}

func (*CollectClusterRegion) Collect

func (c *CollectClusterRegion) Collect(progressChan chan<- interface{}) (map[string][]byte, error)

func (*CollectClusterRegion) IsExcluded

func (c *CollectClusterRegion) IsExcluded() (bool, error)

func (*CollectClusterRegion) Title

func (c *CollectClusterRegion) Title() string

type CollectHostUtility

type CollectHostUtility struct {
	HostCollector *preflightv1beta2.HostUtility
	BundlePath    string
}

func (*CollectHostUtility) Collect

func (c *CollectHostUtility) Collect(progressChan chan<- interface{}) (map[string][]byte, error)

func (*CollectHostUtility) IsExcluded

func (c *CollectHostUtility) IsExcluded() (bool, error)

func (*CollectHostUtility) Title

func (c *CollectHostUtility) Title() string

type HostUtilityInfo

type HostUtilityInfo struct {
	Name  string `json:"name"`
	Path  string `json:"path"`
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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