domain

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseStreamFunc

type CloseStreamFunc func() error

type CollectorType

type CollectorType string
const (
	CollectorTypeLog         CollectorType = "Logs"
	CollectorTypeVolumeInfo  CollectorType = "VolumeInfo"
	CollectorTypeNodeInfo    CollectorType = "NodeInfo"
	CollectorTypeSecret      CollectorType = "Resources/Secrets"
	CollectorTypeSystemState CollectorType = "Resources/SystemState"
	CollectorTypeEvents      CollectorType = "Events"
)

func (CollectorType) GetConditionType

func (c CollectorType) GetConditionType() string

type CollectorUnionDataType

type CollectorUnionDataType interface {
	LogLine | VolumeInfo | LabeledSample | SecretYaml | UnstructuredResource
}

type LabeledSample added in v1.0.0

type LabeledSample struct {
	MetricName string
	ID         string
	Value      float64
	Time       time.Time
}

func (*LabeledSample) GetHeader added in v1.0.0

func (ls *LabeledSample) GetHeader() []string

func (*LabeledSample) GetRow added in v1.0.0

func (ls *LabeledSample) GetRow() []string

type LogLine added in v1.0.0

type LogLine struct {
	Timestamp time.Time
	Value     string
}

type SecretYaml added in v1.0.0

type SecretYaml struct {
	ApiVersion string             `yaml:"apiVersion,omitempty"`
	Kind       string             `yaml:"kind,omitempty"`
	SecretType string             `yaml:"type,omitempty"`
	Data       map[string]string  `yaml:"data,omitempty"`
	Metadata   SecretYamlMetaData `yaml:"metadata,omitempty"`
}

type SecretYamlMetaData added in v1.0.0

type SecretYamlMetaData struct {
	Name              string            `yaml:"name,omitempty"`
	Namespace         string            `yaml:"namespace,omitempty"`
	UID               string            `yaml:"uid,omitempty"`
	CreationTimestamp string            `yaml:"creationTimestamp,omitempty"`
	Labels            map[string]string `yaml:"labels,omitempty"`
}

type Stream

type Stream struct {
	Data chan StreamData
}

type StreamConstructor

type StreamConstructor func() (io.Reader, CloseStreamFunc, error)

type StreamData

type StreamData struct {
	ID                string
	StreamConstructor StreamConstructor
}

type SupportArchiveID

type SupportArchiveID struct {
	Namespace string
	Name      string
}

type UnstructuredResource added in v1.0.0

type UnstructuredResource struct {
	Name string `yaml:"name,omitempty"`
	// Path represents e.g. gvk in kubernetes
	Path    string                 `json:"path,omitempty"`
	Content map[string]interface{} `yaml:"content,omitempty"`
}

type VolumeInfo

type VolumeInfo struct {
	Name      string
	Timestamp time.Time        `yaml:"timestamp"`
	Items     []VolumeInfoItem `yaml:"items"`
}

type VolumeInfoItem

type VolumeInfoItem struct {
	Name            string `yaml:"name"`
	Capacity        int64  `yaml:"capacity"`
	Used            int64  `yaml:"used"`
	PercentageUsage string `yaml:"percentageUsage"`
	Phase           string `yaml:"phase"`
}

Jump to

Keyboard shortcuts

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