mirror of
https://github.com/hanzoai/o11y-foundry.git
synced 2026-10-30 18:26:45 +00:00
25 lines
819 B
Go
25 lines
819 B
Go
package casting
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/hanzoai/o11y-foundry/api/v1alpha1/installation"
|
|
"github.com/hanzoai/o11y-foundry/internal/domain"
|
|
"github.com/hanzoai/o11y-foundry/internal/molding"
|
|
)
|
|
|
|
// 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
|
|
}
|