collectionagent

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Schema

func Schema() *jsonschema.Resolved

Schema returns the resolved JSON schema for a CollectionAgent casting.

Types

type Casting

type Casting struct {
	v1alpha1.CastingMeta `json:",inline" yaml:",inline"`
	Spec                 Spec `json:"spec" yaml:"spec" required:"true" description:"CollectionAgent specification"`
	// contains filtered or unexported fields
}

Casting is the CollectionAgent kind.

func Default

func Default() *Casting

Default returns a CollectionAgent with the collector molding initialised from its default.

func Example

func Example() *Casting

Example returns a minimal CollectionAgent; the forge pipeline fills in defaults.

func (*Casting) Kind

func (c *Casting) Kind() v1alpha1.Kind

Kind reports the casting kind. Shadows the embedded CastingMeta.Kind field; the field stays reachable as c.CastingMeta.Kind.

func (*Casting) MergeStatusIntoSpec

func (c *Casting) MergeStatusIntoSpec() error

MergeStatusIntoSpec folds the collector molding's Status into its Spec.

func (*Casting) TrackableProperties

func (c *Casting) TrackableProperties() domain.Properties

TrackableProperties returns analytics tags for the casting.

type Collector

type Collector struct {
	// Kind of the collector to use.
	Kind CollectorKind `json:"kind,omitzero" yaml:"kind,omitempty" description:"Kind of the collector to use" examples:"[\"agent\"]"`

	// Specification for the collector.
	Spec v1alpha1.MoldingSpec `json:"spec" yaml:"spec" description:"Specification for the collector"`

	// Status of the collector.
	Status CollectorStatus `json:"status" yaml:"status,omitempty" description:"Status of the collector"`
	// contains filtered or unexported fields
}

func DefaultCollector

func DefaultCollector() Collector

type CollectorKind

type CollectorKind struct {
	// contains filtered or unexported fields
}
var (
	CollectorKindAgent CollectorKind = CollectorKind{/* contains filtered or unexported fields */}
)

func CollectorKinds

func CollectorKinds() []CollectorKind

func (CollectorKind) Enum

func (kind CollectorKind) Enum() []any

func (CollectorKind) MarshalJSON

func (kind CollectorKind) MarshalJSON() ([]byte, error)

func (CollectorKind) MarshalText

func (kind CollectorKind) MarshalText() ([]byte, error)

func (CollectorKind) MarshalYAML

func (kind CollectorKind) MarshalYAML() (any, error)

func (CollectorKind) String

func (kind CollectorKind) String() string

func (*CollectorKind) UnmarshalJSON

func (kind *CollectorKind) UnmarshalJSON(text []byte) error

func (*CollectorKind) UnmarshalText

func (kind *CollectorKind) UnmarshalText(text []byte) error

func (*CollectorKind) UnmarshalYAML

func (kind *CollectorKind) UnmarshalYAML(node *yaml.Node) error

type CollectorStatus

type CollectorStatus struct {
	v1alpha1.MoldingStatus `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

type Spec

type Spec struct {
	Deployment v1alpha1.TypeDeployment `json:"deployment" yaml:"deployment" required:"true" description:"Deployment configuration for the platform"`
	Patches    []v1alpha1.PatchEntry   `json:"patches,omitempty" yaml:"patches,omitempty" description:"Patch operations to apply to generated materials"`
	Collector  Collector               `json:"collector,omitzero" yaml:"collector,omitempty" description:"The configuration for the collector molding"`
	// contains filtered or unexported fields
}

Spec is the CollectionAgent-specific configuration.

Jump to

Keyboard shortcuts

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