Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventTypeDaggerOutput = partybus.EventType("dagger.output") EventTypeDaggerError = partybus.EventType("dagger.error") EventTypeRenderPlan = partybus.EventType("plan.render") EventTypeApplyPlan = partybus.EventType("plan.apply") )
View Source
const ( MasonDirName = ".mason" WorkDirPrefix = ".work" BlueprintDirPrefix = "blueprint" PlanDirPrefix = "plan" )
Variables ¶
View Source
var Phases = map[string]string{
"test": "Run tests",
"lint": "Run linters",
"package": "Package artifacts",
"publish": "Publish artifacts",
"run": "Run the application",
"review": "Review the source code",
}
Functions ¶
This section is empty.
Types ¶
type Blueprint ¶
type Blueprint struct {
Bricks []Brick
// contains filtered or unexported fields
}
func (Blueprint) RenderPlan ¶
type Brick ¶
type Brick struct {
Kind string `json:"kind"`
ModuleRef ModuleRef `json:"moduleRef"`
Metadata BrickMetadata `json:"metadata"`
Spec any `json:"spec"`
}
type BrickMetadata ¶
type Mason ¶
type Mason struct {
RootPath string
IgnoredDirs []string
DaggerEnv []string
DaggerArgs []string
DaggerBinary string
DaggerOutputDisabled bool
EventBus *partybus.Bus
Logger logger.Logger
// contains filtered or unexported fields
}
func (Mason) CleanWorkDirs ¶
func (*Mason) DetectWorkspaces ¶
type Plan ¶
type Plan struct {
DirPath string
SourceScripts []Script
Phase string
MergedScript string
PostRunOnSuccessScript string
PostRunOnFailureScript string
// contains filtered or unexported fields
}
func ParsePlanFromDir ¶
type Script ¶
type Script struct {
ModuleName string
Phase string
PostRun PostRun
Name string
Content dagger.Script
}
func ScriptFromFile ¶
Click to show internal directories.
Click to hide internal directories.