Documentation
¶
Overview ¶
Package registry stores flow definitions immutably in KV: key "<name>.<hash>" holds the definition, "<name>.latest" the hash of the most recently registered version. Every execution records the hash it started with, so deploying a new version never changes executions in flight.
Index ¶
- Variables
- type Registry
- func (r *Registry) Get(ctx context.Context, name, hash string) (*flow.Flow, error)
- func (r *Registry) Latest(ctx context.Context, name string) (string, error)
- func (r *Registry) List(ctx context.Context) ([]Version, error)
- func (r *Registry) Register(ctx context.Context, def *flow.Flow) (string, error)
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownFlow = errors.New("registry: unknown flow")
ErrUnknownFlow is returned for a flow (or version) that is not registered.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry reads and writes flow definitions, caching immutable versions.
Click to show internal directories.
Click to hide internal directories.