Files
zeekay ea0026d172 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

19 lines
559 B
Go

package config
import (
"context"
"github.com/hanzoai/o11y-foundry/api/v1alpha1"
)
type Config interface {
// GetV1Alpha1 reads, dispatches, and validates a v1alpha1 casting from disk.
GetV1Alpha1(ctx context.Context, path string) (v1alpha1.Machinery, error)
// CreateV1Alpha1Lock writes the resolved casting to the lock file.
CreateV1Alpha1Lock(ctx context.Context, machinery v1alpha1.Machinery, path string) error
// GetV1Alpha1Lock reads the lock file from disk.
GetV1Alpha1Lock(ctx context.Context, path string) (v1alpha1.Machinery, error)
}