Load campaign and session imports from their sources
This commit is contained in:
@@ -5,12 +5,14 @@ import configkit "go.maximumdirect.net/configkit"
|
||||
// Config is the resolved combined configuration from pipeline.yml,
|
||||
// campaign.yml, and session.yml.
|
||||
type Config struct {
|
||||
Pipeline *PipelineConfig
|
||||
Campaign *CampaignConfig
|
||||
Session *SessionConfig
|
||||
PipelinePath string
|
||||
CampaignPath string
|
||||
SessionPath string
|
||||
Pipeline *PipelineConfig
|
||||
Campaign *CampaignConfig
|
||||
Session *SessionConfig
|
||||
PipelinePath string
|
||||
CampaignPath string
|
||||
SessionPath string
|
||||
CampaignDocument *CampaignConfig
|
||||
SessionDocument *SessionConfig
|
||||
|
||||
StableInputs ResolvedStableInputs
|
||||
SessionSource SessionSource
|
||||
@@ -58,6 +60,7 @@ type CampaignConfig struct {
|
||||
CampaignID string `yaml:"campaign_id" json:"campaign_id"`
|
||||
SessionTemplateFile string `yaml:"session_template_file" json:"session_template_file"`
|
||||
Inputs CampaignInputsConfig `yaml:"inputs" json:"inputs"`
|
||||
resolution *documentResolution
|
||||
}
|
||||
|
||||
// CampaignInputsConfig contains stable campaign-level input file references.
|
||||
@@ -77,6 +80,7 @@ type SessionConfig struct {
|
||||
Date string `yaml:"date" json:"date"`
|
||||
Title string `yaml:"title" json:"title"`
|
||||
Inputs SessionInputsConfig `yaml:"inputs" json:"inputs"`
|
||||
resolution *documentResolution
|
||||
}
|
||||
|
||||
// WorkspaceConfig configures local workspace behavior.
|
||||
|
||||
Reference in New Issue
Block a user