Documentation
¶
Overview ¶
Package collectors contains all standard Talos/Kubernetes state collectors used in the support bundle generator.
Index ¶
- Constants
- type Collect
- type Collector
- func GetForOptions(ctx context.Context, options *bundle.Options) ([]*Collector, error)
- func GetKubernetesCollectors(client *kubernetes.Clientset) []*Collector
- func GetTalosNodeCollectors(ctx context.Context, client *client.Client) ([]*Collector, error)
- func NewCollector(path string, c Collect) *Collector
- func WithFolder(collectors []*Collector, path string) []*Collector
- func WithNode(collectors []*Collector, node string) []*Collector
- func WithSource(collectors []*Collector, source string) []*Collector
Constants ¶
const Cluster = "cluster"
Cluster is the const for the top level cluster collectors.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collect ¶
Collect defines a single collect call which returns data blob to be written in the file.
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector unifies implementation of a the data collector with it's path in the archive.
func GetForOptions ¶
GetForOptions creates all collectors for the provided bundle options.
func GetKubernetesCollectors ¶
func GetKubernetesCollectors(client *kubernetes.Clientset) []*Collector
GetKubernetesCollectors creates all kubernetes API related collectors.
func GetTalosNodeCollectors ¶
GetTalosNodeCollectors creates all collectors that rely on using Talos API.
func NewCollector ¶
NewCollector creates new collector.
func WithFolder ¶
WithFolder appends path prefix to all collectors.
func WithSource ¶
WithSource returns collectors which custom source name.