data

package
v2.13.15 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorGroup

type ErrorGroup struct {
	Recoverable bool
	Errors      []error
}

ErrorGroup groups errors that can be recoverable (the execution can continue) or not

func (*ErrorGroup) Append

func (g *ErrorGroup) Append(errs ...error)

Append appends the errors passed as argument to the errors slice of the receiver object.

func (ErrorGroup) Error

func (g ErrorGroup) Error() string

Error implements error interface.

func (ErrorGroup) String

func (g ErrorGroup) String() string

String shows a comma-separated string representation of all the error messages

type FetchFunc

type FetchFunc func() (definition.RawGroups, error)

FetchFunc fetches data from a source.

type Grouper

type Grouper interface {
	Group(definition.SpecGroups) (definition.RawGroups, *ErrorGroup)
}

Grouper groups raw data by any desired label such object (pod, container...).

type PopulateResult

type PopulateResult struct {
	Errors    []error
	Populated bool
}

PopulateResult represents an error or a bunch of errors during populate.

func (PopulateResult) Error

func (e PopulateResult) Error() string

Error implements error interface

type Populator

Populator populates a given integration with grouped raw data.

Jump to

Keyboard shortcuts

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