Versions in this module Expand all Collapse all v1 v1.119.0 Jul 29, 2026 Changes in this version + type ConflictError struct + Current int + Expected int + Name string + func (e *ConflictError) Error() string + type CorruptError struct + Err error + Name string + Scope Scope + func (e *CorruptError) Error() string + func (e *CorruptError) Unwrap() error + type CreateRequest struct + Author string + Content string + Ref Ref + Status string + Title string + type DeleteRequest struct + ExpectedVersion *int + Ref Ref + type ExportRequest struct + Force bool + Path string + Ref Ref + type ExportResult struct + BytesWritten int + Name string + Path string + Scope Scope + Version *int + type ListOptions struct + SessionID string + type ListResult struct + Plans []Plan + Warnings []string + type NotFoundError struct + Name string + Scope Scope + func (e *NotFoundError) Error() string + type Option func(*service) + func WithSessionDir(dir string) Option + type Plan struct + Author string + Content string + Name string + Path string + Scope Scope + SessionID string + Status string + Title string + UpdatedAt time.Time + Version *int + type Ref struct + Name string + Scope Scope + SessionID string + func SessionRef(sessionID string) Ref + func SharedRef(name string) Ref + type Scope string + const ScopeSession + const ScopeShared + func (s Scope) Mutable() bool + type Service interface + Create func(ctx context.Context, req CreateRequest) (Plan, error) + Delete func(ctx context.Context, req DeleteRequest) error + Export func(ctx context.Context, req ExportRequest) (ExportResult, error) + Get func(ctx context.Context, ref Ref) (Plan, error) + List func(ctx context.Context, opts ListOptions) (ListResult, error) + SetStatus func(ctx context.Context, req SetStatusRequest) (Plan, error) + Update func(ctx context.Context, req UpdateRequest) (Plan, error) + func NewService(storage plan.Storage, opts ...Option) Service + type SetStatusRequest struct + ExpectedVersion *int + Ref Ref + Status string + type StorageError struct + Err error + Op string + Scope Scope + func (e *StorageError) Error() string + func (e *StorageError) Unwrap() error + type UnsupportedError struct + Op string + Reason string + Scope Scope + func (e *UnsupportedError) Error() string + type UpdateRequest struct + Author *string + Content string + ExpectedVersion *int + Ref Ref + Status *string + Title *string + type ValidationError struct + Message string + func (e *ValidationError) Error() string