Documentation
¶
Index ¶
- func EnsureDefault(path, projectName string) (bool, error)
- func Save(path string, contract *Contract) error
- type AgentTarget
- type Bootstrap
- type BootstrapOutput
- type BootstrapStep
- type Contract
- type Doctor
- type DoctorCheck
- type EnvSpec
- type EnvVar
- type MCPConfig
- type MCPServer
- type Policies
- type Project
- type RunConfig
- type RunTarget
- type Runtime
- type Service
- type ValidationReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDefault ¶
Types ¶
type AgentTarget ¶
type Bootstrap ¶
type Bootstrap struct {
Steps []BootstrapStep `yaml:"steps"`
Outputs []BootstrapOutput `yaml:"outputs,omitempty"`
}
type BootstrapOutput ¶
type BootstrapStep ¶
type BootstrapStep struct {
Name string `yaml:"name,omitempty"`
Run string `yaml:"run"`
Shell string `yaml:"shell,omitempty"`
Optional bool `yaml:"optional,omitempty"`
Description string `yaml:"description,omitempty"`
}
func (*BootstrapStep) UnmarshalYAML ¶
func (s *BootstrapStep) UnmarshalYAML(node *yaml.Node) error
type Contract ¶
type Contract struct {
Version int `yaml:"version"`
Project Project `yaml:"project"`
Env EnvSpec `yaml:"env"`
Runtimes []Runtime `yaml:"runtimes"`
Services []Service `yaml:"services"`
Bootstrap Bootstrap `yaml:"bootstrap"`
Doctor Doctor `yaml:"doctor"`
Agents map[string]AgentTarget `yaml:"agents"`
MCP MCPConfig `yaml:"mcp"`
Policies Policies `yaml:"policies"`
Run RunConfig `yaml:"run"`
}
func LoadProject ¶
func (*Contract) AllEnvNames ¶
func (*Contract) EffectiveAgentTarget ¶
func (c *Contract) EffectiveAgentTarget(name string) (AgentTarget, bool)
func (*Contract) Validate ¶
func (c *Contract) Validate() *ValidationReport
type Doctor ¶
type Doctor struct {
Checks []DoctorCheck `yaml:"checks,omitempty"`
}
type DoctorCheck ¶
type EnvVar ¶
type Runtime ¶
type ValidationReport ¶
func (*ValidationReport) AddError ¶
func (r *ValidationReport) AddError(format string, args ...any)
func (*ValidationReport) AddWarning ¶
func (r *ValidationReport) AddWarning(format string, args ...any)
func (*ValidationReport) OK ¶
func (r *ValidationReport) OK() bool
Click to show internal directories.
Click to hide internal directories.