Documentation
¶
Overview ¶
Package engine is the facade the CLI plugin and the workbench call.
Index ¶
- type Connection
- type Engine
- func (e *Engine) Apply(ctx context.Context, p *plan.Plan, approve string, allowDestructive bool, ...) error
- func (e *Engine) ConfigureStore(ctx context.Context, options persistence.Options, expected string) error
- func (e *Engine) ConnectRegistry(ctx context.Context, name, host, user, token string) error
- func (e *Engine) Connections(ctx context.Context) ([]Connection, error)
- func (e *Engine) Destroy(ctx context.Context, target, env string, deleteData bool) error
- func (e *Engine) DestroyApproved(ctx context.Context, target, env string, deleteData bool, approval string) error
- func (e *Engine) Doctor(ctx context.Context, target, env string, online bool) (output.Diagnostics, error)
- func (e *Engine) Export(ctx context.Context, p *plan.Plan, b *render.Bundle, dir string, force bool) (render.WriteResult, error)
- func (e *Engine) Files(ctx context.Context) (SettingsView, error)
- func (e *Engine) History(ctx context.Context, target, env string) (state.Snapshot, error)
- func (e *Engine) Init(ctx context.Context, answers map[string]string, write bool) (*InspectResult, map[string][]byte, error)
- func (e *Engine) InitWithOptions(ctx context.Context, answers map[string]string, opts InitOptions) (*InspectResult, map[string][]byte, error)
- func (e *Engine) Inspect(ctx context.Context, target, env string) (*InspectResult, error)
- func (e *Engine) InspectWithOptions(ctx context.Context, target, env string, options InspectOptions) (*InspectResult, error)
- func (e *Engine) LifecycleState(ctx context.Context, target, env string) (LifecycleState, error)
- func (e *Engine) LoadPlan(ctx context.Context, hash string) (*plan.Plan, error)
- func (e *Engine) Logs(ctx context.Context, target, env, service string, opts provider.LogOptions) (io.ReadCloser, error)
- func (e *Engine) Plan(ctx context.Context, target, env string) (*plan.Plan, *render.Bundle, error)
- func (e *Engine) PlanPath(p *plan.Plan) string
- func (e *Engine) PlanWithOptions(ctx context.Context, target, env string, opts PlanOptions) (*plan.Plan, *render.Bundle, error)
- func (e *Engine) Providers(ctx context.Context) []ProviderInfo
- func (e *Engine) PublishImages(ctx context.Context, p *plan.Plan, approved string, ...) (map[string]model.Image, error)
- func (e *Engine) Rollback(ctx context.Context, target, env, release string) error
- func (e *Engine) RollbackApproved(ctx context.Context, target, env, release, approval string) error
- func (e *Engine) Root() string
- func (e *Engine) Save(ctx context.Context, expected string, ops []spec.Op) error
- func (e *Engine) SaveInit(ctx context.Context, res *InspectResult, files map[string][]byte) error
- func (e *Engine) Status(ctx context.Context, target, env string) (provider.Status, error)
- type FileView
- type InitOptions
- type InspectOptions
- type InspectResult
- type LifecycleState
- type Options
- type PlanOptions
- type ProviderInfo
- type SettingsView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection = images.Connection
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) ConfigureStore ¶
func (*Engine) ConnectRegistry ¶
func (*Engine) Connections ¶
func (e *Engine) Connections(ctx context.Context) ([]Connection, error)
func (*Engine) DestroyApproved ¶
func (*Engine) Doctor ¶
func (e *Engine) Doctor(ctx context.Context, target, env string, online bool) (output.Diagnostics, error)
Doctor runs preflight. Offline checks: config, decisions, tools on PATH, secret resolution through resolvers that need no network. online adds provider checks in plan 03 and later.
func (*Engine) Init ¶
func (e *Engine) Init(ctx context.Context, answers map[string]string, write bool) (*InspectResult, map[string][]byte, error)
Init writes the suggested deploy block. answers maps a decision path to its chosen option. With write false it returns the bytes it would write.
func (*Engine) InitWithOptions ¶
func (e *Engine) InitWithOptions(ctx context.Context, answers map[string]string, opts InitOptions) (*InspectResult, map[string][]byte, error)
func (*Engine) InspectWithOptions ¶
func (e *Engine) InspectWithOptions(ctx context.Context, target, env string, options InspectOptions) (*InspectResult, error)
func (*Engine) LifecycleState ¶
func (*Engine) Logs ¶
func (e *Engine) Logs(ctx context.Context, target, env, service string, opts provider.LogOptions) (io.ReadCloser, error)
func (*Engine) PlanWithOptions ¶
func (*Engine) PublishImages ¶
func (e *Engine) PublishImages(ctx context.Context, p *plan.Plan, approved string, events chan<- provider.Event) (map[string]model.Image, error)
PublishImages verifies or publishes immutable images without changing workloads.
func (*Engine) RollbackApproved ¶
type InitOptions ¶
type InitOptions struct{ Force, Write bool }
type InspectOptions ¶
type InspectResult ¶
type InspectResult struct {
Config *config.ForgeConfig
Revision uint64
Authority persistence.Options
Selection []string
Project string
InputHashes map[string]string
Doc *spec.Document
Discovery *discover.Result
Catalog *catalog.Catalog
Deployment *model.Deployment
Target string
Environment string
Diagnostics output.Diagnostics
}
type LifecycleState ¶
type PlanOptions ¶
type PlanOptions struct{ Services []string }
type ProviderInfo ¶
type SettingsView ¶
Click to show internal directories.
Click to hide internal directories.