resourcedata

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package resourcedata implements the types and the data sources for the data sourced from the Talos resource API (COSI).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Node     string
	Resource resource.Resource
	Deleted  bool
}

Data contains a resource, whether it is deleted and the node it came from.

type Source

type Source struct {
	COSI state.State

	NodeResourceCh <-chan Data
	// contains filtered or unexported fields
}

Source is the data source for the Talos resources.

func (*Source) Run

func (source *Source) Run(ctx context.Context)

Run starts the data source.

func (*Source) Stop

func (source *Source) Stop() error

Stop stops the data source.

Jump to

Keyboard shortcuts

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