Documentation
¶
Overview ¶
Package hosted exports ctrlplane-compatible workload contracts without account-side mutation.
Index ¶
- func Factory(_ execx.Runner, root string) provider.Provider
- type Export
- type HealthCheck
- type Hosted
- func (*Hosted) Capabilities(context.Context, spec.Target) (model.Capabilities, error)
- func (*Hosted) Operations(context.Context, *model.Deployment, *render.Bundle, state.Snapshot) ([]plan.Operation, error)
- func (p *Hosted) Render(ctx context.Context, d *model.Deployment) (*render.Bundle, error)
- func (p *Hosted) Validate(ctx context.Context, d *model.Deployment) output.Diagnostics
- type Port
- type Resources
- type SecretBinding
- type SecretRef
- type Service
- type Workload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Export ¶
type Export struct {
Schema string `json:"schema"`
Project string `json:"project"`
Environment string `json:"environment"`
Workloads []Workload `json:"workloads"`
}
Export carries provider-compatible fields. The hosted authority supplies account identity and applies bindings.
type HealthCheck ¶
type Hosted ¶
type Hosted struct{ provider.ExportOnly }
func (*Hosted) Capabilities ¶
func (*Hosted) Operations ¶
func (*Hosted) Validate ¶
func (p *Hosted) Validate(ctx context.Context, d *model.Deployment) output.Diagnostics
type SecretBinding ¶
type Service ¶
type Service struct {
Name string `json:"name"`
Image string `json:"image"`
Role string `json:"role"`
Resources Resources `json:"resources"`
Env map[string]string `json:"env,omitempty"`
Ports []Port `json:"ports,omitempty"`
HealthCheck *HealthCheck `json:"health_check,omitempty"`
Secrets []SecretRef `json:"secrets,omitempty"`
ConfigFiles []model.ConfigFile `json:"config_files,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.