Files
o11y-foundry/internal/casting/casting.go
zeekay 4e3a8ef9ca merge: upstream/main (preserve Hanzo brand, 50 commits)
# Conflicts:
#	api/v1alpha1/casting.go
#	api/v1alpha1/installation/signoz.go
#	docs/casting.md
#	docs/examples/docker/compose/pours/deployment/configs/ingester/opamp.yaml
#	docs/examples/systemd/binary/pours/deployment/signoz-ingester.service
#	docs/examples/systemd/binary/pours/deployment/signoz-signoz.service
#	docs/examples/systemd/binary/pours/deployment/signoz-telemetrystore-migrator.service
#	docs/schemas/v1alpha1.yaml
#	internal/foundry/registry.go
#	internal/instrumentation/handler.go
#	internal/molding/signozmolding/signoz.go
2026-06-02 09:59:25 -07:00

25 lines
805 B
Go

package casting
import (
"context"
"github.com/hanzoai/o11y-foundry/api/v1alpha1"
"github.com/hanzoai/o11y-foundry/internal/molding"
"github.com/hanzoai/o11y-foundry/internal/types"
)
// DeploymentDir is the subdirectory within the pours directory where
// deployment-specific materials (compose files, service units, configs) are written.
const DeploymentDir = "deployment"
type Casting interface {
// Returns the enricher for the casting.
Enricher(ctx context.Context, config *installation.Casting) (molding.MoldingEnricher, error)
// Generates all the files needed for casting.
Forge(ctx context.Context, config installation.Casting, poursPath string) ([]domain.Material, error)
// Runs the forged files.
Cast(ctx context.Context, config installation.Casting, poursPath string) error
}