registry

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string) (*Registry, error)

func (*Registry) Close

func (r *Registry) Close() error

func (*Registry) CreateSpace

func (r *Registry) CreateSpace(ctx context.Context, s Space) error

func (*Registry) DeleteSpace

func (r *Registry) DeleteSpace(ctx context.Context, codeSpaceID string) error

func (*Registry) GetSpace

func (r *Registry) GetSpace(ctx context.Context, codeSpaceID string) (*Space, error)

func (*Registry) ListSpaces

func (r *Registry) ListSpaces(ctx context.Context) ([]Space, error)

func (*Registry) TouchLastOpened

func (r *Registry) TouchLastOpened(ctx context.Context, codeSpaceID string) error

func (*Registry) UpdateMeta

func (r *Registry) UpdateMeta(ctx context.Context, codeSpaceID string, name string, description string) error

type Space

type Space struct {
	CodeSpaceID        string `json:"code_space_id"`
	WorkspacePath      string `json:"workspace_path"`
	Name               string `json:"name"`
	Description        string `json:"description"`
	CreatedAtUnixMs    int64  `json:"created_at_unix_ms"`
	UpdatedAtUnixMs    int64  `json:"updated_at_unix_ms"`
	LastOpenedAtUnixMs int64  `json:"last_opened_at_unix_ms"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL